summaryrefslogtreecommitdiffhomepage
path: root/src/gfx/irodeo_gfx.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 /src/gfx/irodeo_gfx.h
parent856ce67eb21f64d86ecf6bb3651985f10e6236c3 (diff)
downloadRodeoKit-gfx-rewrite.tar.gz
RodeoKit-gfx-rewrite.zip
refactor to have graphics and windowing seperategfx-rewrite
Diffstat (limited to 'src/gfx/irodeo_gfx.h')
-rw-r--r--src/gfx/irodeo_gfx.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/gfx/irodeo_gfx.h b/src/gfx/irodeo_gfx.h
new file mode 100644
index 0000000..3acc49f
--- /dev/null
+++ b/src/gfx/irodeo_gfx.h
@@ -0,0 +1,30 @@
+
+// -- internal --
+// public
+#include "rodeo/common.h"
+// private
+#include "gfx/irodeo_gfx_t.h"
+
+// -- external --
+#include "bgfx/c99/bgfx.h"
+#include "stc/cstr.h"
+
+bgfx_shader_handle_t
+irodeo_gfx_shader_load(const cstr path);
+
+void
+irodeo_gfx_render_buffer_transient_alloc(void);
+
+void
+irodeo_gfx_frame_stall(void);
+
+#define \
+mrodeo_bgfx_vertex_layout_do(vertex_layout) \
+ mrodeo_defer_do( \
+ bgfx_vertex_layout_begin( \
+ vertex_layout, \
+ bgfx_get_renderer_type() \
+ ), \
+ bgfx_vertex_layout_end(vertex_layout) \
+ )
+