34 lines
606 B
C
34 lines
606 B
C
#ifdef _WIN32
|
|
|
|
#ifndef PLTF_WIN32_INTERNAL_H_
|
|
#define PLTF_WIN32_INTERNAL_H_
|
|
|
|
#include <windef.h>
|
|
|
|
#include "../pltf.h"
|
|
#include "DynArray.h"
|
|
|
|
typedef struct {
|
|
HGLRC gl_ctx;
|
|
} WinState;
|
|
|
|
typedef struct {
|
|
const wchar_t* wc_name;
|
|
HMODULE exe_module;
|
|
HWND hwnd;
|
|
HDC hdc;
|
|
DynArray_DynString wgl_extensions;
|
|
WinState window_state;
|
|
PltfKeyCallback key_cb;
|
|
} PltfStateWin32;
|
|
|
|
extern PltfStateWin32 pltf_state;
|
|
extern HMODULE opengl_module;
|
|
|
|
bool pltf_has_wgl_extension(const char* name);
|
|
unsigned int vk_to_pltf_key(WPARAM key);
|
|
|
|
#endif // PLTF_WIN32_INTERNAL_H_
|
|
|
|
#endif // _WIN32
|