diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-29 19:35:25 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-29 19:35:25 +0100 |
commit | ca6ff463979d5c250ab04e940bead875f11e7352 (patch) | |
tree | 479b06c90e1af3652c30e5554c3cada57ac81975 /main | |
parent | cd1e7b6564e8508f84e84706557b89eb5471a978 (diff) |
scenery wip
Diffstat (limited to 'main')
-rw-r--r-- | main/main-impl.hpp | 1 | ||||
-rw-r--r-- | main/setup.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/main/main-impl.hpp b/main/main-impl.hpp index 945b2196..cc17f9bc 100644 --- a/main/main-impl.hpp +++ b/main/main-impl.hpp @@ -58,6 +58,7 @@ struct main_impl final : Platform::Sdl2Application, floormat_main void drawEvent() override; void do_update(); void update_window_state(); + struct meshes meshes() noexcept override; bool is_text_input_active() const noexcept override; void start_text_input() noexcept override; diff --git a/main/setup.cpp b/main/setup.cpp index 3a251451..72bf3550 100644 --- a/main/setup.cpp +++ b/main/setup.cpp @@ -111,4 +111,9 @@ void main_impl::update_window_state() } } +auto main_impl::meshes() noexcept -> struct meshes +{ + return { _floor_mesh, _wall_mesh, _anim_mesh, }; +}; + } // namespace floormat |