summaryrefslogtreecommitdiff
path: root/src/render/immediate.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-09 23:32:33 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-09 23:32:33 +1000
commit3103f383751a12f8a0bdb22309704f1f826d204c (patch)
tree7da8febddfcc40b15de5d7fc3c9a5215d88c5cab /src/render/immediate.h
parentd5f22a65ab12b289d80b035e45e6f1e9460b82d1 (diff)
wip: some cleanup of ral
Diffstat (limited to 'src/render/immediate.h')
-rw-r--r--src/render/immediate.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/render/immediate.h b/src/render/immediate.h
new file mode 100644
index 0000000..f4b1729
--- /dev/null
+++ b/src/render/immediate.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "geometry.h"
+#include "maths_types.h"
+
+typedef struct immdraw_system immdraw_system;
+
+bool immdraw_system_init(immdraw_system* state);
+void immdraw_system_shutdown(immdraw_system* state);
+void immdraw_system_render(immdraw_system* state);
+
+// 3. SIMA (simplified immediate mode api) / render.h
+// - dont need to worry about uploading mesh data
+// - very useful for debugging
+void immdraw_plane(vec3 pos, quat rotation, f32 u_scale, f32 v_scale, vec4 colour);
+void immdraw_cuboid(vec3 pos, quat rotation, f32x3 extents, vec4 colour);
+void immdraw_sphere(vec3 pos, f32 radius, vec4 colour);
+
+void immdraw_camera_frustum();