summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo.h
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-01-11 22:09:48 -0500
committerrealtradam <[email protected]>2023-01-11 22:09:48 -0500
commitb172c2a6b22796dc16c059979d2ec6108b0402e4 (patch)
tree9eda4db6d584b4c0415d30c9b5295aaf541f938b /include/rodeo.h
parentb4bc89485ab18ccdc2e381e3e3f2c3bb5e346e1e (diff)
downloadRodeoKit-b172c2a6b22796dc16c059979d2ec6108b0402e4.tar.gz
RodeoKit-b172c2a6b22796dc16c059979d2ec6108b0402e4.zip
isolated dependencies into seperate compilation unit, added basic logging
Diffstat (limited to 'include/rodeo.h')
-rw-r--r--include/rodeo.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/include/rodeo.h b/include/rodeo.h
index 4686cb5..7b29d17 100644
--- a/include/rodeo.h
+++ b/include/rodeo.h
@@ -1,19 +1,19 @@
+
+// public internal
+#include "rodeo_types.h"
+
+// system
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
-#include "SDL2/SDL.h"
-#include "SDL2/SDL_syswm.h"
-#include "bgfx/c99/bgfx.h"
-
-#include "rodeo_types.h"
void
Rodeo__\
init_window(
- Rodeo__data_t* state,
+ Rodeo__data_p *state,
int screen_height,
int screen_width,
char* title
@@ -21,7 +21,7 @@ init_window(
void
Rodeo__\
-deinit_window(Rodeo__data_t* state);
+deinit_window(Rodeo__data_p state);
void
Rodeo__\
@@ -29,15 +29,19 @@ quit();
void
Rodeo__\
-begin(Rodeo__data_t* state);
+begin(Rodeo__data_p state);
void
Rodeo__\
-end(Rodeo__data_t* state);
+end(Rodeo__data_p state);
+
+bool
+Rodeo__\
+should_quit(Rodeo__data_p state);
void
Rodeo__\
-draw_debug_text(u_int16_t x, u_int16_t y, const char *format, ...);
+draw_debug_text(uint16_t x, uint16_t y, const char *format, ...);
const char *
Rodeo__\
@@ -45,19 +49,16 @@ get_renderer_name_as_string();
void
Rodeo__\
-flush_batch(Rodeo__data_t *state);
+flush_batch(Rodeo__data_p state);
void
Rodeo__\
draw_rectangle(
- Rodeo__data_t *state,
- u_int16_t x,
- u_int16_t y,
- u_int16_t width,
- u_int16_t height,
- struct Rodeo__color_rgba_t color
+ Rodeo__data_p state,
+ uint16_t x,
+ uint16_t y,
+ uint16_t width,
+ uint16_t height,
+ Rodeo__color_rgba_t color
);
-bgfx_shader_handle_t
-Rodeo__\
-load_shader(const char* path);