summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-08 12:00:45 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-08 12:00:45 +0100
commit9acf4738b15738cb2b9646481b75ba0c05a01e78 (patch)
treed8a8ce5007ea77f86d33136cdfa014e45d31d72b /main
parenta083f5c2124a6a907727b35a5c43d8175d396d73 (diff)
draw, editor: visualize bounding boxes
Diffstat (limited to 'main')
-rw-r--r--main/draw.cpp2
-rw-r--r--main/main-impl.hpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 88cd2745..1cb9b396 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -127,7 +127,7 @@ void main_impl::draw_world() noexcept
GL::Renderer::disable(GL::Renderer::Feature::DepthTest);
}
-bool main_impl::check_chunk_visible(const Vector2d& offset, const Vector2i& size) noexcept
+bool floormat_main::check_chunk_visible(const Vector2d& offset, const Vector2i& size) noexcept
{
constexpr Vector3d len = dTILE_SIZE * TILE_MAX_DIM20d;
enum : std::size_t { x, y, };
diff --git a/main/main-impl.hpp b/main/main-impl.hpp
index 2ea8f940..9178d8a6 100644
--- a/main/main-impl.hpp
+++ b/main/main-impl.hpp
@@ -90,7 +90,6 @@ private:
void draw_world() noexcept;
draw_bounds get_draw_bounds() const noexcept override;
- [[nodiscard]] static bool check_chunk_visible(const Vector2d& offset, const Vector2i& size) noexcept;
char maybe_register_debug_callback(fm_gpu_debug flag);
void register_debug_callback();