From 3a151b1d1f99b59dfd6d98c1e7520b48b57d6f5e Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 11 Aug 2024 23:12:59 +1000 Subject: plane,cube,sphere --- src/render/render.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/render/render.c') diff --git a/src/render/render.c b/src/render/render.c index bf8ac36..26007b7 100644 --- a/src/render/render.c +++ b/src/render/render.c @@ -53,6 +53,7 @@ struct Renderer { Material_pool material_pool; arena frame_arena; TextureHandle white_1x1; + TextureHandle black_1x1; }; Renderer* get_renderer() { return g_core.renderer; } @@ -133,6 +134,7 @@ bool Renderer_Init(RendererConfig config, Renderer* ren, GLFWwindow** out_window ren->terrain = calloc(1, sizeof(Terrain_Storage)); Terrain_Init(ren->terrain); + // FIXME // ren->grid = calloc(1, sizeof(Grid_Storage)); // Grid_Init(ren->grid); @@ -141,7 +143,7 @@ bool Renderer_Init(RendererConfig config, Renderer* ren, GLFWwindow** out_window // load default textures ren->white_1x1 = TextureLoadFromFile("assets/textures/white1x1.png"); - // TODO: black_1x1 + ren->black_1x1 = TextureLoadFromFile("assets/textures/black1x1.png"); return true; } -- cgit v1.2.3-70-g09d2