diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-31 10:33:32 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-31 10:33:32 +1000 |
commit | 0f703b8a5129acfa13c92ce79699d86833dcc561 (patch) | |
tree | bf18dc3263e8958d2a8cc7864f822ad21ed738b7 /src/new_render | |
parent | 0a60692230841cbcbbf67acba55d2dbb4730b6cb (diff) |
grid draw/execute
Diffstat (limited to 'src/new_render')
-rw-r--r-- | src/new_render/render.c | 5 | ||||
-rw-r--r-- | src/new_render/render.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/new_render/render.c b/src/new_render/render.c index 54ea32a..f83e573 100644 --- a/src/new_render/render.c +++ b/src/new_render/render.c @@ -314,6 +314,11 @@ Terrain_Storage* Render_GetTerrainStorage() { return ren->terrain; } +Grid_Storage* Render_GetGridStorage() { + Renderer* ren = Core_GetRenderer(&g_core); + return ren->grid; +} + TextureHandle Render_GetWhiteTexture() { Renderer* ren = Core_GetRenderer(&g_core); return ren->white_1x1; diff --git a/src/new_render/render.h b/src/new_render/render.h index dad3026..8f3ac2a 100644 --- a/src/new_render/render.h +++ b/src/new_render/render.h @@ -4,6 +4,7 @@ #pragma once #include "defines.h" +#include "grid.h" #include "maths_types.h" #include "ral_types.h" #include "render_types.h" @@ -84,6 +85,7 @@ typedef struct Terrain_Storage Terrain_Storage; RenderScene* Render_GetScene(); Shadow_Storage* Render_GetShadowStorage(); Terrain_Storage* Render_GetTerrainStorage(); +Grid_Storage* Render_GetGridStorage(); TextureHandle Render_GetWhiteTexture(); arena* Render_GetFrameArena(); Mesh_pool* Render_GetMeshPool(); |