diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 13:18:24 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 13:18:24 +1000 |
commit | 0c2f902238010903388b7d9a3af00979340eff2c (patch) | |
tree | b718d72d8761769ec4aefbfd74cbb2d695f89741 /src/render/immdraw.h | |
parent | 43d915b2ceb3f5e439c09c772e9ebc7542c1a2bb (diff) |
add debug draw bbox and add topology to draw calls
Diffstat (limited to 'src/render/immdraw.h')
-rw-r--r-- | src/render/immdraw.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/immdraw.h b/src/render/immdraw.h index 6b456d5..aa1847b 100644 --- a/src/render/immdraw.h +++ b/src/render/immdraw.h @@ -13,6 +13,7 @@ typedef struct Immdraw_Storage { Mesh plane; Mesh cube; Mesh sphere; + Mesh bbox; GPU_Pipeline* colour_pipeline; /** @brief Pipeline for drawing geometry that has vertex colours */ } Immdraw_Storage; @@ -30,11 +31,16 @@ PUB void Immdraw_Shutdown(Immdraw_Storage* storage); 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, Vec4 colour, bool wireframe); +PUB void Immdraw_Bbox(Transform tf, Vec4 colour, bool wireframe); PUB void Immdraw_TransformGizmo(Transform tf, f32 size); // --- Internal +void Immdraw_Primitive(Transform tf, PrimitiveTopology topology, f32 size, Vec4 colour, bool wireframe, Mesh mesh); + +Mesh GenBboxMesh(); + static ShaderDataLayout ImmediateUniforms_GetLayout(void* data) { ImmediateUniforms* d = (ImmediateUniforms*)data; bool has_data = data != NULL; |