diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-07-11 18:03:34 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-07-11 18:03:34 +1000 |
commit | 9f23f65ec631bcd08f200b3ef517da8acf8d6b17 (patch) | |
tree | bc0e9d9fc0c687b646ddcb5c44122bfc70b4cfed /src/systems/terrain.c | |
parent | 65d74bdb26af833b5380046dec204f685f745cc1 (diff) |
new
Diffstat (limited to 'src/systems/terrain.c')
-rw-r--r-- | src/systems/terrain.c | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/src/systems/terrain.c b/src/systems/terrain.c index 6342d66..a8e8b48 100644 --- a/src/systems/terrain.c +++ b/src/systems/terrain.c @@ -11,14 +11,28 @@ #include "terrain.h" #include "ral.h" -bool terrain_system_init(terrain_state* state) { - gpu_renderpass_desc rpass_desc = { - .default_framebuffer = true, - }; - struct graphics_pipeline_desc pipeline_desc = { +struct Terrain_Storage { + arena terrain_allocator; + heightmap* heightmap; // NULL = no heightmap + GPU_Renderpass* hmap_renderpass; + GPU_Pipeline* hmap_pipeline; +}; - }; +PUB bool Terrain_Init(Terrain_Storage* storage) { - state->hmap_renderpass = gpu_renderpass_create(&rpass_desc); - state->hmap_pipeline = gpu_graphics_pipeline_create(pipeline_desc); -}
\ No newline at end of file + return true; +} +PUB void Terrain_Shutdown(Terrain_Storage* storage); + + +/* bool terrain_system_init(terrain_state* state) { */ +/* gpu_renderpass_desc rpass_desc = { */ +/* .default_framebuffer = true, */ +/* }; */ +/* struct graphics_pipeline_desc pipeline_desc = { */ + +/* }; */ + +/* state->hmap_renderpass = gpu_renderpass_create(&rpass_desc); */ +/* state->hmap_pipeline = gpu_graphics_pipeline_create(pipeline_desc); */ +/* } */ |