diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-11 14:29:53 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-11 14:45:29 +0100 |
commit | d74df1b763979d281f76f3f30543aee8d8a638b7 (patch) | |
tree | 08939a34160b261c37644595aa8702dd0689d74f /draw | |
parent | 7867213a01fcabb1f05b1836c2ca59dc3bb2132f (diff) |
rename floor -> ground
Diffstat (limited to 'draw')
-rw-r--r-- | draw/ground.cpp (renamed from draw/floor.cpp) | 8 | ||||
-rw-r--r-- | draw/ground.hpp (renamed from draw/floor.hpp) | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/draw/floor.cpp b/draw/ground.cpp index a073f39f..515729b1 100644 --- a/draw/floor.cpp +++ b/draw/ground.cpp @@ -1,4 +1,4 @@ -#include "floor.hpp" +#include "ground.hpp" #include "shaders/shader.hpp" #include "src/chunk.hpp" #include "src/ground-atlas.hpp" @@ -7,9 +7,9 @@ namespace floormat { -floor_mesh::floor_mesh() = default; +ground_mesh::ground_mesh() = default; -void floor_mesh::draw(tile_shader& shader, chunk& c) +void ground_mesh::draw(tile_shader& shader, chunk& c) { constexpr int quad_index_count = 6; const auto [mesh_, ids, size] = c.ensure_ground_mesh(); @@ -42,7 +42,7 @@ void floor_mesh::draw(tile_shader& shader, chunk& c) //#define FM_DEBUG_DRAW_COUNT #ifdef FM_DEBUG_DRAW_COUNT if (draw_count) - fm_debug("floor draws: %zu", draw_count); + fm_debug("ground draws: %zu", draw_count); #endif } diff --git a/draw/floor.hpp b/draw/ground.hpp index 74547857..b960e8b1 100644 --- a/draw/floor.hpp +++ b/draw/ground.hpp @@ -5,9 +5,9 @@ namespace floormat { struct tile_shader; struct chunk; -struct floor_mesh final +struct ground_mesh final { - floor_mesh(); + ground_mesh(); void draw(tile_shader& shader, chunk& c); }; |