From 6b004c5ac6a25f1020774276803b62e8619ea61e Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 27 Jul 2024 23:19:15 +1000 Subject: env var for static lib --- src/new_render/render.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/new_render/render.c b/src/new_render/render.c index 49b2bf9..9314871 100644 --- a/src/new_render/render.c +++ b/src/new_render/render.c @@ -273,20 +273,19 @@ void Geometry_Destroy(Geometry* geometry) { } } -size_t ModelExtractRenderEnts(RenderEnt_darray* entities, ModelHandle model_handle, Mat4 affine, RenderEntityFlags flags) { - Model* model = MODEL_GET(model_handle); - for (u32 i = 0; i < model->mesh_count; i++) { +size_t ModelExtractRenderEnts(RenderEnt_darray* entities, ModelHandle model_handle, Mat4 affine, + RenderEntityFlags flags) { + Model* model = MODEL_GET(model_handle); + for (u32 i = 0; i < model->mesh_count; i++) { Mesh* m = Mesh_pool_get(Render_GetMeshPool(), model->meshes[i]); - RenderEnt data = { - .mesh = model->meshes[i], - .material = m->material, - .affine = affine, - // .bounding_box - .flags = flags - }; + RenderEnt data = { .mesh = model->meshes[i], + .material = m->material, + .affine = affine, + // .bounding_box + .flags = flags }; RenderEnt_darray_push(entities, data); - } - return model->mesh_count; // how many RenderEnts we pushed + } + return model->mesh_count; // how many RenderEnts we pushed } void SetCamera(Camera camera) { g_core.renderer->scene.camera = camera; } -- cgit v1.2.3-70-g09d2