summaryrefslogtreecommitdiff
path: root/src/render/render.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-11 23:12:59 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-11 23:12:59 +1000
commit3a151b1d1f99b59dfd6d98c1e7520b48b57d6f5e (patch)
treeaecbe2462529eae01dc16b54d529548e8ae870e9 /src/render/render.c
parentb03bde3d412148cd573f5f14012cdd270f309947 (diff)
plane,cube,sphere
Diffstat (limited to 'src/render/render.c')
-rw-r--r--src/render/render.c4
1 files changed, 3 insertions, 1 deletions
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;
}