summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo/gfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rodeo/gfx.h')
-rw-r--r--include/rodeo/gfx.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/include/rodeo/gfx.h b/include/rodeo/gfx.h
index a10e901..151bdda 100644
--- a/include/rodeo/gfx.h
+++ b/include/rodeo/gfx.h
@@ -8,7 +8,7 @@
#include "stc/cstr.h"
void
-rodeo_gfx_init(void);
+rodeo_gfx_init(float width, float height);
void
rodeo_gfx_deinit(void);
@@ -79,19 +79,21 @@ rodeo_gfx_frame_limit_set(uint32_t limit);
uint32_t
rodeo_gfx_frame_limit_get(void);
-#define \
-mrodeo_gfx_do( \
-) \
- mrodeo_defer_do( \
- rodeo_gfx_init(), \
- rodeo_gfx_deinit() \
- )
-
-
#define \
-mrodeo_gfx_frame_do( \
+mrodeo_gfx_do( \
+ width, \
+ height \
) \
mrodeo_defer_do( \
+ rodeo_gfx_init(width, height), \
+ rodeo_gfx_deinit() \
+ )
+
+
+#define \
+mrodeo_gfx_frame_do( \
+) \
+ mrodeo_defer_do( \
rodeo_gfx_frame_begin(), \
rodeo_gfx_frame_end() \
)