diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-31 10:19:38 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-31 10:19:38 +1000 |
commit | 0a60692230841cbcbbf67acba55d2dbb4730b6cb (patch) | |
tree | 1f53fb5144310e6972aa3448c3b68c57e922cb70 /src/new_render/render.c | |
parent | 547268b5a9cacc514445a59cc482897fd2f201ee (diff) |
add empty grid system
Diffstat (limited to 'src/new_render/render.c')
-rw-r--r-- | src/new_render/render.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/new_render/render.c b/src/new_render/render.c index 9314871..54ea32a 100644 --- a/src/new_render/render.c +++ b/src/new_render/render.c @@ -7,6 +7,7 @@ #include <glfw3.h> #include "camera.h" #include "core.h" +#include "grid.h" #include "log.h" #include "maths.h" #include "maths_types.h" @@ -43,6 +44,7 @@ struct Renderer { PBR_Storage* pbr; Shadow_Storage* shadows; Terrain_Storage* terrain; + Grid_Storage* grid; // Text_Storage* text; ResourcePools* resource_pools; Mesh_pool mesh_pool; @@ -139,8 +141,12 @@ bool Renderer_Init(RendererConfig config, Renderer* ren, GLFWwindow** out_window ren->terrain = malloc(sizeof(Terrain_Storage)); Terrain_Init(ren->terrain); + ren->grid = calloc(1, sizeof(Grid_Storage)); + Grid_Init(ren->grid); + // load default textures ren->white_1x1 = TextureLoadFromFile("assets/textures/white1x1.png"); + // TODO: black_1x1 return true; } |