diff options
| author | Enrique | 2025-01-06 00:50:11 +0100 |
|---|---|---|
| committer | Enrique | 2025-01-06 00:50:11 +0100 |
| commit | 789169d70d24ff2c1c9804f0149d0508de6dfcfa (patch) | |
| tree | 088ec2ce664a13aeeb3603d0eee6c737caff7190 /display/display.h | |
| download | soikk-libs-789169d70d24ff2c1c9804f0149d0508de6dfcfa.tar.xz soikk-libs-789169d70d24ff2c1c9804f0149d0508de6dfcfa.tar.zst | |
First upload
Diffstat (limited to 'display/display.h')
| -rwxr-xr-x | display/display.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/display/display.h b/display/display.h new file mode 100755 index 0000000..23d6908 --- /dev/null +++ b/display/display.h @@ -0,0 +1,19 @@ +#ifndef DISPLAY_H +#define DISPLAY_H + +#define WIN32_LEAN_AND_MEAN // so winsock1 isnt included, mainly + +#include <windows.h> +#include "ogl/ogl.h" + + +typedef struct WindowContext { + WNDCLASSEX windowClass; + HWND window; + HDC windowDC; +} WindowContext; + +int InitializeWindowContext(char className[], char windowName[], WNDPROC WindowProc, WindowContext *WContext); +int InitializeOpenGL(HWND window, HGLRC *renderingContext); + +#endif |
