summaryrefslogtreecommitdiff
path: root/src/renderer/cleanroom/immediate.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-27 17:07:03 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-27 17:07:03 +1000
commit93c8d40b39fe55a626e66d412450fb4cca1f993b (patch)
treec064a1729404100ea6bfa62c0960442a17791fdb /src/renderer/cleanroom/immediate.h
parentfc35df8e999521b8be7c44800f4ff4665df3254a (diff)
scene thoughts
Diffstat (limited to 'src/renderer/cleanroom/immediate.h')
-rw-r--r--src/renderer/cleanroom/immediate.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/renderer/cleanroom/immediate.h b/src/renderer/cleanroom/immediate.h
new file mode 100644
index 0000000..6d93c53
--- /dev/null
+++ b/src/renderer/cleanroom/immediate.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "geometry.h"
+#include "maths_types.h"
+
+// 3. SIMA (simplified immediate mode api) / render.h
+// - dont need to worry about uploading mesh data
+// - very useful for debugging
+void imm_draw_cuboid(vec3 pos, quat rotation, f32x3 extents, vec4 colour);
+void imm_draw_sphere(vec3 pos, f32 radius, vec4 colour);
+void imm_draw_camera_frustum();
+
+// static void imm_draw_model(
+// const char* model_filepath); // tracks internally whether the model is loaded
+
+// static void imm_draw_model(const char* model_filepath) {
+ // check that model is loaded
+ // if not loaded, load model and upload to gpu - LRU cache for models
+ // else submit draw call
+// } \ No newline at end of file