From 529a603128d5e9dc4701322f44961f165e2183e1 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Sun, 14 Jul 2024 21:47:25 +1000 Subject: generate api docs python --- src/new_render/immdraw.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/new_render/immdraw.h') 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); -- cgit v1.2.3-70-g09d2