From aa0fe8457cfff9c47c0c9fa4a1c86a79c7cbf9c5 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 27 Jul 2024 14:01:16 +1000 Subject: add a pool insert function. move RenderEnt to use handles --- src/new_render/render.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/new_render/render.h') diff --git a/src/new_render/render.h b/src/new_render/render.h index b8c34b9..ef11b5f 100644 --- a/src/new_render/render.h +++ b/src/new_render/render.h @@ -26,6 +26,9 @@ typedef struct RenderCtx { Mat4 projection; } RenderCtx; +// #define MESH_GET(h) (Mesh_pool_get(g_core.renderer->meshes, h)) +// #define MATERIAL_GET(h) (Material_pool_get(g_core.renderer->material, h)) + // --- Lifecycle PUB bool Renderer_Init(RendererConfig config, Renderer* renderer, GLFWwindow** out_window, @@ -79,4 +82,6 @@ RenderScene* Render_GetScene(); Shadow_Storage* Render_GetShadowStorage(); Terrain_Storage* Render_GetTerrainStorage(); TextureHandle Render_GetWhiteTexture(); -arena* Render_GetFrameArena(); \ No newline at end of file +arena* Render_GetFrameArena(); +Mesh_pool* Render_GetMeshPool(); +Material_pool* Render_GetMaterialPool(); \ No newline at end of file -- cgit v1.2.3-70-g09d2