SBgl 0.1.0
A graphics framework in C99
Loading...
Searching...
No Matches
win32_internal.h
Go to the documentation of this file.
1#ifndef WIN32_INTERNAL_H
2#define WIN32_INTERNAL_H
3
4#ifndef UNICODE
5#define UNICODE
6#endif
7#define WIN32_LEAN_AND_MEAN
8#include "core/sbgl_input.h"
9#include "sbgl_types.h"
10#include <windows.h>
11
15struct sbgl_Window {
16 HINSTANCE hinstance;
17 HWND hwnd;
18 bool shouldClose;
19 bool resized;
20 bool focused;
23 int width, height;
25
26 /* Raw input accumulation for high-precision mouse deltas */
29
30 /* Window class name for unregistration */
31 wchar_t className[256];
32};
33
34// Internal event processing
35void win32_internal_process_message(sbgl_InputState* input, UINT msg, WPARAM wparam, LPARAM lparam);
37
38#endif // WIN32_INTERNAL_H
Internal Input Abstraction Layer (HAL).
Represents the real-time state of physical inputs.
Definition sbgl_input.h:165
Native X11 window state.
sbgl_InputState * input
wchar_t className[256]
HINSTANCE hinstance
void win32_internal_process_message(sbgl_InputState *input, UINT msg, WPARAM wparam, LPARAM lparam)
Definition input.c:98
void win32_internal_update_input_states(sbgl_InputState *input, struct sbgl_Window *window)
Definition input.c:142