internal.h 606 B

123456789101112131415161718192021222324252627282930313233
  1. #ifdef _WIN32
  2. #ifndef PLTF_WIN32_INTERNAL_H_
  3. #define PLTF_WIN32_INTERNAL_H_
  4. #include <windef.h>
  5. #include "../pltf.h"
  6. #include "DynArray.h"
  7. typedef struct {
  8. HGLRC gl_ctx;
  9. } WinState;
  10. typedef struct {
  11. const wchar_t* wc_name;
  12. HMODULE exe_module;
  13. HWND hwnd;
  14. HDC hdc;
  15. DynArray_DynString wgl_extensions;
  16. WinState window_state;
  17. PltfKeyCallback key_cb;
  18. } PltfStateWin32;
  19. extern PltfStateWin32 pltf_state;
  20. extern HMODULE opengl_module;
  21. bool pltf_has_wgl_extension(const char* name);
  22. unsigned int vk_to_pltf_key(WPARAM key);
  23. #endif // PLTF_WIN32_INTERNAL_H_
  24. #endif // _WIN32