From 6162a18f445b89400be521fdeeb0d6a812a03c35 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sun, 25 Oct 2020 10:43:43 -0500 Subject: move honey_window_information to common.h and add mouse movement functions --- src/common.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/common.h') 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 { -- cgit v1.2.1