From 7ec62c58e9560fc961ec3522490e40ad1d259c72 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Thu, 18 Jul 2024 16:17:23 +1000 Subject: wip skybox. make geometry owned and copied onto Mesh --- src/systems/terrain.c | 7 +++++-- src/systems/terrain.h | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src/systems') diff --git a/src/systems/terrain.c b/src/systems/terrain.c index 1d23cc3..8a6b06a 100644 --- a/src/systems/terrain.c +++ b/src/systems/terrain.c @@ -11,8 +11,11 @@ struct Terrain_Storage { GPU_Pipeline* hmap_pipeline; }; -PUB bool Terrain_Init(Terrain_Storage* storage) { return true; } -PUB void Terrain_Shutdown(Terrain_Storage* storage); +bool Terrain_Init(Terrain_Storage* storage) { + return true; +} + +void Terrain_Shutdown(Terrain_Storage* storage); /* bool terrain_system_init(terrain_state* state) { */ /* gpu_renderpass_desc rpass_desc = { */ diff --git a/src/systems/terrain.h b/src/systems/terrain.h index 890cb90..4e709ed 100644 --- a/src/systems/terrain.h +++ b/src/systems/terrain.h @@ -30,10 +30,10 @@ typedef struct Terrain_Storage Terrain_Storage; // --- Public API PUB bool Terrain_Init(Terrain_Storage* storage); PUB void Terrain_Shutdown(Terrain_Storage* storage); -PUB void Terrain_Run(Terrain_Storage* storage); // NOTE: For now it renders directly to main framebuffer +PUB void Terrain_Draw(Terrain_Storage* storage); // NOTE: For now it renders directly to main framebuffer /** @brief Sets the active heightmap to be rendered and collided against. */ -PUB Heightmap Terrain_LoadHeightmap(Heightmap hmap, bool free_on_upload); +PUB void Terrain_LoadHeightmap(Heightmap hmap, bool free_on_upload); PUB Heightmap Heightmap_FromImage(Str8 filepath); PUB Heightmap Heightmap_FromPerlin(/* TODO: perlin noise generation parameters */); -- cgit v1.2.3-70-g09d2