diff options
author | omnisci3nce <omniscient.oce@gmail.com> | 2024-04-28 09:14:22 +1000 |
---|---|---|
committer | omnisci3nce <omniscient.oce@gmail.com> | 2024-04-28 09:14:22 +1000 |
commit | 411520b240446f878a27c5d89812000774cc3c15 (patch) | |
tree | 989f442fdffcc85e45f665f8f22102fe6f6bae19 /src/renderer/immediate.c | |
parent | efea29ed9059303a5bb609ba0ce79c20ba894a23 (diff) |
getting vulkan working on windows
Diffstat (limited to 'src/renderer/immediate.c')
-rw-r--r-- | src/renderer/immediate.c | 18 |
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 |