diff options
| author | realtradam <[email protected]> | 2023-07-04 21:16:41 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-07-04 21:16:41 -0400 |
| commit | 8c2ef4e65b80aa6da080e68b64776d7c1a088d2d (patch) | |
| tree | 0648d580050f0d916f30388f24933ef5d1d7762e /include/rodeo | |
| parent | f26149d554a6c473ec51b8c8f59af12f1bedea84 (diff) | |
| download | RodeoKit-8c2ef4e65b80aa6da080e68b64776d7c1a088d2d.tar.gz RodeoKit-8c2ef4e65b80aa6da080e68b64776d7c1a088d2d.zip | |
initial non-working rmlui attemptrmlui
Diffstat (limited to 'include/rodeo')
| -rw-r--r-- | include/rodeo/gfx.h | 6 | ||||
| -rw-r--r-- | include/rodeo/rmlui.h | 37 | ||||
| -rw-r--r-- | include/rodeo/rmlui_t.h | 9 | ||||
| -rw-r--r-- | include/rodeo/window.h | 3 |
4 files changed, 55 insertions, 0 deletions
diff --git a/include/rodeo/gfx.h b/include/rodeo/gfx.h index 07d8430..34f8d94 100644 --- a/include/rodeo/gfx.h +++ b/include/rodeo/gfx.h @@ -74,6 +74,9 @@ rodeo_gfx_vertex_maxSize(void); void rodeo_gfx_index_add(rodeo_gfx_index_t index); +uint16_t +rodeo_gfx_index_size(void); + rodeo_gfx_index_t rodeo_gfx_index_count_get(void); @@ -84,6 +87,9 @@ uint16_t rodeo_gfx_index_maxSize(void); void +rodeo_gfx_texture_set(rodeo_gfx_texture_2d_t texture); + +void rodeo_gfx_texture_2d_draw( const rodeo_rectangle_t destination, const rodeo_rectangle_t source, diff --git a/include/rodeo/rmlui.h b/include/rodeo/rmlui.h new file mode 100644 index 0000000..665fcea --- /dev/null +++ b/include/rodeo/rmlui.h @@ -0,0 +1,37 @@ +#pragma once + +// -- internal -- +// public +#include "rodeo/rmlui_t.h" + +// external +#include "stc/cstr.h" + + +void +rodeo_rmlui_init(void); + +void +rodeo_rmlui_deinit(void); + +void +rodeo_rmlui_font_load(cstr path); + +rodeo_rmlui_document_t +rodeo_rmlui_document_load(cstr path); + +void +rodeo_rmlui_document_show(rodeo_rmlui_document_t document); + +void +rodeo_rmlui_update(void); + +void +rodeo_rmlui_render(void); + +#define \ +mrodeo_rmlui_do() \ + mrodeo_defer_do( \ + rodeo_rmlui_init(), \ + rodeo_rmlui_deinit() \ + ) diff --git a/include/rodeo/rmlui_t.h b/include/rodeo/rmlui_t.h new file mode 100644 index 0000000..007e0ff --- /dev/null +++ b/include/rodeo/rmlui_t.h @@ -0,0 +1,9 @@ +#pragma once + +typedef struct irodeo_rmlui_document_data rodeo_rmlui_document_data_t; +typedef +struct +{ + rodeo_rmlui_document_data_t *data; +} +rodeo_rmlui_document_t; diff --git a/include/rodeo/window.h b/include/rodeo/window.h index df73b4f..37c39b5 100644 --- a/include/rodeo/window.h +++ b/include/rodeo/window.h @@ -33,6 +33,9 @@ rodeo_window_shouldQuit(void); void rodeo_window_quit(void); +uint64_t +rodeo_window_elapsedTime_ms(void); + #define \ mrodeo_window_do( \ screen_width, \ |
