From 72b8d26fcfcee36ca67f963b9c6a4b616e2d5d4d Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Mon, 12 Aug 2024 00:15:33 +1000 Subject: scale is a vec3 now instead of float. --- src/render/immdraw.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/render/immdraw.c') diff --git a/src/render/immdraw.c b/src/render/immdraw.c index cb823d3..142087a 100644 --- a/src/render/immdraw.c +++ b/src/render/immdraw.c @@ -86,6 +86,16 @@ void Immdraw_Primitive(Transform tf, f32 size, Vec4 colour, bool wireframe, Mesh // bind pipeline GPU_EncodeBindPipeline(enc, imm->colour_pipeline); + // TODO: implement wireframe in other apis +#if defined(CEL_REND_BACKEND_OPENGL) +#include + if (wireframe) { + glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); + } else { + glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); + } +#endif + // update uniforms ImmediateUniforms uniforms = { .model = transform_to_mat(&tf), -- cgit v1.2.3-70-g09d2