From aa1eeebb1c05edc22335cbb48af5d42be20750c0 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Fri, 26 Jul 2024 17:20:13 +1000 Subject: moving some maths functions to implementation file --- src/systems/terrain.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/systems/terrain.h') diff --git a/src/systems/terrain.h b/src/systems/terrain.h index 664aa8e..4399e6b 100644 --- a/src/systems/terrain.h +++ b/src/systems/terrain.h @@ -27,7 +27,7 @@ typedef struct Heightmap { bool is_uploaded; } Heightmap; - typedef struct Terrain_Storage { +typedef struct Terrain_Storage { // arena terrain_allocator; u32x2 grid_dimensions; f32 grid_scale; @@ -50,7 +50,8 @@ 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 void Terrain_LoadHeightmap(Terrain_Storage* storage, Heightmap hmap, f32 grid_scale, bool free_on_upload); +PUB void Terrain_LoadHeightmap(Terrain_Storage* storage, Heightmap hmap, f32 grid_scale, + 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