summaryrefslogtreecommitdiff
path: root/src/new_render/immdraw.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/new_render/immdraw.h')
-rw-r--r--src/new_render/immdraw.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/new_render/immdraw.h b/src/new_render/immdraw.h
index c2c3a24..46c5add 100644
--- a/src/new_render/immdraw.h
+++ b/src/new_render/immdraw.h
@@ -6,9 +6,17 @@
#include "defines.h"
#include "maths_types.h"
+typedef struct Immdraw_Storage {
+
+} Immdraw_Storage;
+
// --- Public API
+PUB void Immdraw_Init(Immdraw_Storage* storage);
+PUB void Immdraw_Shutdown(Immdraw_Storage* storage);
-void Immdraw_Cuboid(Transform tf);
-void Immdraw_Sphere(Transform tf, f32 size);
-void Immdraw_TransformGizmo(Transform tf, f32 size);
+// These functions cause a pipeline switch and so aren't optimised for performance
+PUB void Immdraw_Plane(Transform tf, Vec4 colour, bool wireframe);
+PUB void Immdraw_Cuboid(Transform tf, Vec4 colour, bool wireframe);
+PUB void Immdraw_Sphere(Transform tf, f32 size, Vec4 colour, bool wireframe);
+PUB void Immdraw_TransformGizmo(Transform tf, f32 size);