summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-10-25 10:43:43 -0500
committersanine-a <sanine.not@pm.me>2020-10-25 10:43:43 -0500
commit6162a18f445b89400be521fdeeb0d6a812a03c35 (patch)
treeceac6ed3692d863966408e5991e7075d87a6f7b3 /src/common.h
parent9699a814395dd6344c0f2fab1965b8bed30967b2 (diff)
move honey_window_information to common.h and add mouse movement functions
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 2e6a60b..9027712 100644
--- a/src/common.h
+++ b/src/common.h
@@ -35,6 +35,19 @@
typedef GLFWwindow* honey_window;
+typedef struct {
+ honey_window window;
+ int width;
+ int height;
+ bool fullscreen;
+} honey_window_information;
+
+extern int honey_window_info_ref;
+extern int honey_window_resize_callback_ref;
+extern int honey_window_resize_callback_data_ref;
+extern int honey_window_focus_callback_ref;
+extern int honey_window_focus_callback_data_ref;
+
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
typedef enum {