Add fastgltf, mouse capture

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-12-06 20:11:59 +02:00
parent 7b8f432623
commit f0e8af534d
7 changed files with 47 additions and 10 deletions

View File

@@ -17,6 +17,9 @@ struct Application {
~Application();
auto run() -> void;
auto mouse_captured(bool new_state) -> void;
auto mouse_captured() const -> bool { return m_mouse_captured; }
auto toggle_mouse_captured() -> void { mouse_captured(!m_mouse_captured); }
private:
SDL_Window *m_window { nullptr };
@@ -24,6 +27,8 @@ private:
std::unique_ptr<VulkanRenderer> m_renderer;
bool m_running { true };
bool m_mouse_captured { false };
bool m_show_imgui { false };
};
} // namespace Lunar