diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-27 17:07:03 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-27 17:07:03 +1000 |
commit | 93c8d40b39fe55a626e66d412450fb4cca1f993b (patch) | |
tree | c064a1729404100ea6bfa62c0960442a17791fdb /src/renderer/cleanroom/immediate.c | |
parent | fc35df8e999521b8be7c44800f4ff4665df3254a (diff) |
scene thoughts
Diffstat (limited to 'src/renderer/cleanroom/immediate.c')
-rw-r--r-- | src/renderer/cleanroom/immediate.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/renderer/cleanroom/immediate.c b/src/renderer/cleanroom/immediate.c new file mode 100644 index 0000000..8e4bf7e --- /dev/null +++ b/src/renderer/cleanroom/immediate.c @@ -0,0 +1,18 @@ +#include "immediate.h" +#include "maths.h" +#include "primitives.h" +#include "render.h" +#include "types.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 |