diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-27 17:40:29 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-27 17:40:29 +1000 |
commit | baa4f15774e2eb179a9b6ad6f3b781e0c3e85af3 (patch) | |
tree | 71c7cbc81f86d720e730c0d314b9b295d2f8141d /src/systems | |
parent | aa0fe8457cfff9c47c0c9fa4a1c86a79c7cbf9c5 (diff) |
remove the editor folder
Diffstat (limited to 'src/systems')
-rw-r--r-- | src/systems/input.h | 14 | ||||
-rw-r--r-- | src/systems/terrain.h | 10 |
2 files changed, 9 insertions, 15 deletions
diff --git a/src/systems/input.h b/src/systems/input.h index bf80a84..2665a11 100644 --- a/src/systems/input.h +++ b/src/systems/input.h @@ -32,22 +32,22 @@ typedef struct Input_State { } Input_State; /** @brief `key` is currently being held down */ -bool key_is_pressed(keycode key); +PUB bool key_is_pressed(keycode key); /** @brief `key` was just pressed */ -bool key_just_pressed(keycode key); +PUB bool key_just_pressed(keycode key); /** @brief `key` was just released */ -bool key_just_released(keycode key); +PUB bool key_just_released(keycode key); // TODO: right btn as well -bool MouseBtn_Held(MouseBtn btn); +PUB bool MouseBtn_Held(MouseBtn btn); // --- Lifecycle -bool Input_Init(Input_State *input, struct GLFWwindow *window); -void Input_Shutdown(Input_State *input); +PUB bool Input_Init(Input_State *input, struct GLFWwindow *window); +PUB void Input_Shutdown(Input_State *input); -void Input_Update(Input_State *state); // must be run once per main loop +PUB void Input_Update(Input_State *state); // must be run once per main loop PUB mouse_state Input_GetMouseState();
\ No newline at end of file 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); |