diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-27 14:01:16 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-27 14:01:16 +1000 |
commit | aa0fe8457cfff9c47c0c9fa4a1c86a79c7cbf9c5 (patch) | |
tree | a7fa374cb59c6c59e386086dcdae8a7efc372b5f /src/new_render/render.h | |
parent | 2e2c57a8c04575eec164279a49947cfdba250853 (diff) |
add a pool insert function. move RenderEnt to use handles
Diffstat (limited to 'src/new_render/render.h')
-rw-r--r-- | src/new_render/render.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 |