diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-06 11:00:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-06 11:00:37 +0200 |
commit | a1fc32ebc9507965a241e5d177d5f9d9693b3e1d (patch) | |
tree | 580edb25eeb9bb7f13fff6a47e516efa1ee84f54 /main | |
parent | 39295e50d6523cb00ac3f598d18c1e9bbdf42dcd (diff) |
a
Diffstat (limited to 'main')
-rw-r--r-- | main/main-impl.cpp | 3 | ||||
-rw-r--r-- | main/main-impl.hpp | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/main/main-impl.cpp b/main/main-impl.cpp index de9fb45b..69cda22c 100644 --- a/main/main-impl.cpp +++ b/main/main-impl.cpp @@ -65,4 +65,7 @@ uint32_t main_impl::cursor() const noexcept return (uint32_t)static_cast<App*>(const_cast<main_impl*>(this))->cursor(); } +struct texture_unit_cache& main_impl::texture_unit_cache() { return _tuc; } +path_search& main_impl::search() { return _search; } + } // namespace floormat diff --git a/main/main-impl.hpp b/main/main-impl.hpp index 6e416549..a1550f01 100644 --- a/main/main-impl.hpp +++ b/main/main-impl.hpp @@ -9,6 +9,7 @@ #include "shaders/shader.hpp" #include "shaders/lightmap.hpp" #include "main/clickable.hpp" +#include "src/path-search.hpp" #include <vector> #include <Corrade/Containers/String.h> #include <Magnum/Timeline.h> @@ -95,7 +96,8 @@ struct main_impl final : Platform::Sdl2Application, floormat_main void set_cursor(uint32_t cursor) noexcept override; uint32_t cursor() const noexcept override; - struct texture_unit_cache& texture_unit_cache() override { return _tuc; } + struct texture_unit_cache& texture_unit_cache() override; + path_search& search() override; private: struct texture_unit_cache _tuc; @@ -114,6 +116,7 @@ private: #ifdef FM_USE_DEPTH32 Framebuffer framebuffer; #endif + path_search _search; struct { float value = 0; |