summaryrefslogtreecommitdiff
path: root/src/renderer/immediate.h
diff options
context:
space:
mode:
authorJoshua Rowe <17525998+omnisci3nce@users.noreply.github.com>2024-05-20 10:50:11 +1000
committerGitHub <noreply@github.com>2024-05-20 10:50:11 +1000
commite904c22003c3a134201b222e6619e782fbe63947 (patch)
tree5295c8ce5f855ca4a0f1bebe50beee80bae66682 /src/renderer/immediate.h
parent02e84ee4d18e705e3362be1e327fdb6f1397a032 (diff)
parent73d4145f46d2305f45761b8e456df692d1962dfb (diff)
Merge pull request #14 from omnisci3nce/realign
Realign
Diffstat (limited to 'src/renderer/immediate.h')
-rw-r--r--src/renderer/immediate.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/renderer/immediate.h b/src/renderer/immediate.h
new file mode 100644
index 0000000..b9d7c61
--- /dev/null
+++ b/src/renderer/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