diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-10 02:59:59 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-10 02:59:59 +1000 |
commit | dcb9f65b25e59edb21c9c3cac7b32d70ca19eb72 (patch) | |
tree | ce99b01a070c57ecc6f3f4073b8298608706f9a0 /src/new_render/render.c | |
parent | a0592bdb9966b204373bc4a258da47a603c70969 (diff) |
wip
Diffstat (limited to 'src/new_render/render.c')
-rw-r--r-- | src/new_render/render.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/new_render/render.c b/src/new_render/render.c index fd5e1c2..c180597 100644 --- a/src/new_render/render.c +++ b/src/new_render/render.c @@ -284,6 +284,12 @@ void Geometry_Destroy(Geometry* geometry) { Vertex_darray_free(geometry->vertices); } } +PUB MeshHandle Mesh_Insert(Mesh* mesh) { + return Mesh_pool_insert(Render_GetMeshPool(), mesh); +} +PUB MaterialHandle Material_Insert(Material* material) { + return Material_pool_insert(Render_GetMaterialPool(), material); +} size_t ModelExtractRenderEnts(RenderEnt_darray* entities, ModelHandle model_handle, Mat4 affine, RenderEntityFlags flags) { @@ -348,4 +354,4 @@ Material_pool* Render_GetMaterialPool() { void Render_SetRenderMode(RenderMode mode) { Renderer* ren = Core_GetRenderer(&g_core); ren->render_mode = mode; -}
\ No newline at end of file +} |