summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo.h
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-01-03 17:42:06 -0500
committerrealtradam <[email protected]>2023-01-03 17:42:06 -0500
commit6e4540372bb862afb4fc084d5c5e68ba0ae9c67a (patch)
treea0a97f322e08918b7a03bd976732404b4a03ab6b /include/rodeo.h
parente38a5adeccdde8def46b6aa03d99d0b16bf15a60 (diff)
downloadRodeoKit-6e4540372bb862afb4fc084d5c5e68ba0ae9c67a.tar.gz
RodeoKit-6e4540372bb862afb4fc084d5c5e68ba0ae9c67a.zip
convert to library
Diffstat (limited to 'include/rodeo.h')
-rw-r--r--include/rodeo.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/rodeo.h b/include/rodeo.h
new file mode 100644
index 0000000..e468c11
--- /dev/null
+++ b/include/rodeo.h
@@ -0,0 +1,42 @@
+#include <stdbool.h>
+#include "SDL2/SDL.h"
+#include "SDL2/SDL_syswm.h"
+
+typedef
+struct
+Rodeo__\
+Data_t
+{
+ SDL_Window* window;
+ SDL_Surface* screen_surface;
+ SDL_SysWMinfo wmi;
+ int screen_width;
+ int screen_height;
+ SDL_Event sdl_event;
+ bool quit;
+} Rodeo__Data_t;
+
+void
+Rodeo__\
+init_window(
+ Rodeo__Data_t* state,
+ int screen_height,
+ int screen_width,
+ char* title
+ );
+
+void
+Rodeo__\
+deinit_window(Rodeo__Data_t* state);
+
+void
+Rodeo__\
+quit();
+
+void
+Rodeo__\
+begin(Rodeo__Data_t* state);
+
+void
+Rodeo__\
+end(Rodeo__Data_t* state);