summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rodeo/window.h')
-rw-r--r--include/rodeo/window.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/include/rodeo/window.h b/include/rodeo/window.h
new file mode 100644
index 0000000..dd505f2
--- /dev/null
+++ b/include/rodeo/window.h
@@ -0,0 +1,50 @@
+#pragma once
+
+// -- internal --
+// public
+//#include "rodeo/window_t.h"
+
+// -- external --
+#include "stc/cstr.h"
+
+// -- system --
+#include <inttypes.h>
+
+
+void
+rodeo_window_init(
+ uint16_t screen_height,
+ uint16_t screen_width,
+ cstr title
+);
+
+void
+rodeo_window_deinit(void);
+
+uint16_t
+rodeo_window_screen_width_get(void);
+
+uint16_t
+rodeo_window_screen_height_get(void);
+
+bool
+rodeo_window_shouldQuit(void);
+
+void
+rodeo_window_quit(void);
+
+#define \
+mrodeo_window_do( \
+ screen_height, \
+ screen_width, \
+ title \
+) \
+ mrodeo_defer_do( \
+ rodeo_window_init( \
+ screen_height, \
+ screen_width, \
+ title \
+ ), \
+ rodeo_window_deinit() \
+ )
+