summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo/window.h
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-06-04 02:35:00 -0400
committerrealtradam <[email protected]>2023-06-04 02:35:00 -0400
commit35558b39040d37c939bd68b56985d6cb5385a451 (patch)
treeb10516557ba530d96799a8c4bed94b7644938811 /include/rodeo/window.h
parent856ce67eb21f64d86ecf6bb3651985f10e6236c3 (diff)
downloadRodeoKit-35558b39040d37c939bd68b56985d6cb5385a451.tar.gz
RodeoKit-35558b39040d37c939bd68b56985d6cb5385a451.zip
refactor to have graphics and windowing seperategfx-rewrite
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() \
+ )
+