summaryrefslogtreecommitdiff
path: root/src/render/immdraw.h
diff options
context:
space:
mode:
authorOmni <omniscient.oce@gmail.com>2024-08-16 22:44:45 +1000
committerOmni <omniscient.oce@gmail.com>2024-08-16 22:44:45 +1000
commitcfd7266c21a43cbd37fa712725cea85cdd1f7aab (patch)
treed09e6b819497c7823c062136142d9c1c9cfda3fc /src/render/immdraw.h
parenta4074b0feb6b2194af7c175fe1826c8e550f10aa (diff)
cyl mesh and poor mans translation gizmo
Diffstat (limited to 'src/render/immdraw.h')
-rw-r--r--src/render/immdraw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/immdraw.h b/src/render/immdraw.h
index cf0bed5..2911350 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 cylinder;
Mesh cone;
Mesh bbox;
GPU_Pipeline* colour_pipeline; /** @brief Pipeline for drawing geometry that has vertex colours */
@@ -31,6 +32,7 @@ PUB void Immdraw_Shutdown(Immdraw_Storage* storage);
// 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_Cylinder(Transform tf, Vec4 colour, bool wireframe);
PUB void Immdraw_Cone(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);