Working glx pltf implementation

This commit is contained in:
2026-08-07 14:31:06 +03:00
parent 06acff4dba
commit dc65a5c07e
17 changed files with 592 additions and 527 deletions

View File

@@ -12,10 +12,6 @@ typedef struct {
HGLRC gl_ctx;
} WinState;
#define PLTF_KEYS_X(lower, upper) \
PltfKeyCallback key_##lower##_cb; \
void* key_##lower##_cb_user_data;
typedef struct {
const wchar_t* wc_name;
HMODULE exe_module;
@@ -23,13 +19,10 @@ typedef struct {
HDC hdc;
DynArray_DynString wgl_extensions;
WinState window_state;
PltfKeyCallback key_cb;
} PltfStateWin32;
PLTF_KEYS(PLTF_KEYS_X);
} PltfWin32State;
#undef PLTF_KEYS_X
extern PltfWin32State pltf_state;
extern PltfStateWin32 pltf_state;
extern HMODULE opengl_module;
bool pltf_has_wgl_extension(const char* name);