From baa4f15774e2eb179a9b6ad6f3b781e0c3e85af3 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 27 Jul 2024 17:40:29 +1000 Subject: remove the editor folder --- src/systems/terrain.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/systems/terrain.h') diff --git a/src/systems/terrain.h b/src/systems/terrain.h index 4399e6b..5a96132 100644 --- a/src/systems/terrain.h +++ b/src/systems/terrain.h @@ -13,8 +13,6 @@ Future: #include "defines.h" #include "maths_types.h" -#include "mem.h" -#include "ral.h" #include "ral_types.h" #include "render.h" #include "str.h" @@ -57,16 +55,12 @@ PUB Heightmap Heightmap_FromPerlin(/* TODO: perlin noise generation parameters * PUB bool Terrain_IsActive(); // checks whether we have a loaded heightmap and it's being rendered -// --- Internal - -// TODO: void terrain_system_render_hmap(renderer* rend, terrain_state* state); - /** @brief Get the height (the Y component) for a vertex at a particular coordinate in the heightmap */ -f32 Heightmap_HeightXZ(const Heightmap* hmap, u32 x, u32 z); +PUB f32 Heightmap_HeightXZ(const Heightmap* hmap, u32 x, u32 z); /** @brief Calculate the normal vector of a vertex at a particular coordinate in the heightmap */ -Vec3 Heightmap_NormalXZ(const Heightmap* hmap, f32 x, f32 z); +PUB Vec3 Heightmap_NormalXZ(const Heightmap* hmap, f32 x, f32 z); // /** @brief Generate the `geometry_data` for a heightmap ready to be uploaded to the GPU */ // Geometry geo_heightmap(arena* a, Heightmap heightmap); -- cgit v1.2.3-70-g09d2