aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/window/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mgl/window/window.h')
-rw-r--r--include/mgl/window/window.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index c1542b4..b30583b 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -5,6 +5,7 @@
#include "../system/vec.h"
#include <stdbool.h>
+typedef struct __GLXcontextRec *GLXContext;
typedef struct mgl_event mgl_event;
/* x11 window handle. TODO: Add others when wayland, etc is added */
typedef unsigned long mgl_window_handle;
@@ -13,6 +14,7 @@ typedef struct mgl_window mgl_window;
struct mgl_window {
mgl_window_handle window;
+ GLXContext glx_context;
mgl_vec2i size;
mgl_vec2i cursor_position;
};