summaryrefslogtreecommitdiff
path: root/src/renderer/immediate.c
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.c
parent02e84ee4d18e705e3362be1e327fdb6f1397a032 (diff)
parent73d4145f46d2305f45761b8e456df692d1962dfb (diff)
Merge pull request #14 from omnisci3nce/realign
Realign
Diffstat (limited to 'src/renderer/immediate.c')
-rw-r--r--src/renderer/immediate.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/renderer/immediate.c b/src/renderer/immediate.c
new file mode 100644
index 0000000..e76d102
--- /dev/null
+++ b/src/renderer/immediate.c
@@ -0,0 +1,18 @@
+#include "immediate.h"
+#include "maths.h"
+#include "primitives.h"
+#include "ral_types.h"
+#include "render.h"
+
+void imm_draw_sphere(vec3 pos, f32 radius, vec4 colour) {
+ // Create the vertices
+ geometry_data geometry = geo_create_uvsphere(radius, 16, 16);
+ geo_set_vertex_colours(&geometry, colour);
+
+ // Upload to GPU
+ mat4 model = mat4_translation(pos);
+
+ // Set pipeline
+
+ // Draw
+} \ No newline at end of file