From 0a60692230841cbcbbf67acba55d2dbb4730b6cb Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Wed, 31 Jul 2024 10:19:38 +1000 Subject: add empty grid system --- src/new_render/render.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/new_render/render.c') 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 #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; } -- cgit v1.2.3-70-g09d2