diff options
Diffstat (limited to 'src/systems')
-rw-r--r-- | src/systems/grid.c | 7 | ||||
-rw-r--r-- | src/systems/grid.h | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/systems/grid.c b/src/systems/grid.c index 20e3657..256fab4 100644 --- a/src/systems/grid.c +++ b/src/systems/grid.c @@ -54,6 +54,11 @@ void Grid_Init(Grid_Storage* storage) { storage->pipeline = GPU_GraphicsPipeline_Create(pipeline_desc, storage->renderpass); } -void Grid_Draw(Grid_Storage* storage) { +void Grid_Draw() { + Grid_Storage* grid = Render_GetGridStorage(); + Grid_Execute(grid); +} +void Grid_Execute(Grid_Storage *storage) { + // TODO: draw calls }
\ No newline at end of file diff --git a/src/systems/grid.h b/src/systems/grid.h index 7d983dc..d8bc567 100644 --- a/src/systems/grid.h +++ b/src/systems/grid.h @@ -11,10 +11,11 @@ typedef struct Grid_Storage { } Grid_Storage; // --- Public API -void Grid_Init(Grid_Storage* storage); +PUB void Grid_Init(Grid_Storage* storage); // void Grid_Shutdown(Grid_Storage* storage); -void Grid_Draw(Grid_Storage* storage); +PUB void Grid_Draw(); // --- Internal +void Grid_Execute(Grid_Storage* storage); // typedef struct GridUniforms {} GridUniforms; // ShaderDataLayout GridUniforms_GetLayout(void* data);
\ No newline at end of file |