From 789169d70d24ff2c1c9804f0149d0508de6dfcfa Mon Sep 17 00:00:00 2001 From: Enrique Date: Mon, 6 Jan 2025 00:50:11 +0100 Subject: First upload --- display/display.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 display/display.h (limited to 'display/display.h') 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 +#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 -- cgit v1.2.3