From 3103f383751a12f8a0bdb22309704f1f826d204c Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Tue, 9 Jul 2024 23:32:33 +1000 Subject: wip: some cleanup of ral --- src/render/immediate.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/render/immediate.h (limited to 'src/render/immediate.h') diff --git a/src/render/immediate.h b/src/render/immediate.h new file mode 100644 index 0000000..f4b1729 --- /dev/null +++ b/src/render/immediate.h @@ -0,0 +1,19 @@ +#pragma once + +#include "geometry.h" +#include "maths_types.h" + +typedef struct immdraw_system immdraw_system; + +bool immdraw_system_init(immdraw_system* state); +void immdraw_system_shutdown(immdraw_system* state); +void immdraw_system_render(immdraw_system* state); + +// 3. SIMA (simplified immediate mode api) / render.h +// - dont need to worry about uploading mesh data +// - very useful for debugging +void immdraw_plane(vec3 pos, quat rotation, f32 u_scale, f32 v_scale, vec4 colour); +void immdraw_cuboid(vec3 pos, quat rotation, f32x3 extents, vec4 colour); +void immdraw_sphere(vec3 pos, f32 radius, vec4 colour); + +void immdraw_camera_frustum(); -- cgit v1.2.3-70-g09d2