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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index b30583b..297ccb9 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -5,6 +5,8 @@
#include "../system/vec.h"
#include <stdbool.h>
+/* Vsync is automatically set for windows created, if supported by the system */
+
typedef struct __GLXcontextRec *GLXContext;
typedef struct mgl_event mgl_event;
/* x11 window handle. TODO: Add others when wayland, etc is added */
@@ -16,6 +18,7 @@ struct mgl_window {
mgl_window_handle window;
GLXContext glx_context;
mgl_vec2i size;
+ /* relative to the top left of the window. only updates when the cursor is inside the window */
mgl_vec2i cursor_position;
};