diff options
| author | hachem <im@hachem.wtf> | 2026-08-23 22:39:47 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-23 22:39:47 +0200 |
| commit | 4a72c63f74bc055c29f397f54fca8e9613f4474d (patch) | |
| tree | 5b6f96f22a67f4e303ae72b6e9763d25a6dadd16 /src/core/application.h | |
| parent | 6ee03a2ea3c764f0364b2e61beb6812226facd4c (diff) | |
feat: wire the scene into the simulation engine
Diffstat (limited to 'src/core/application.h')
| -rw-r--r-- | src/core/application.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/application.h b/src/core/application.h index 880a495..d8136a5 100644 --- a/src/core/application.h +++ b/src/core/application.h @@ -15,7 +15,7 @@ namespace Donut { - class Application + class Application : public AppActions { public: Application(const std::string& name = "Donut", @@ -28,6 +28,13 @@ namespace Donut auto get_window() -> Window& { return *m_window; } static auto get() -> Application& { return *s_instance; } + auto set_resolution(int w, int h) -> void override; + auto set_fullscreen(bool on) -> void override; + auto set_vsync(bool on) -> void override; + auto set_ui_scale(float scale) -> void override; + auto get_window_size(int& w, int& h) const -> void override; + auto is_fullscreen() const -> bool override; + private: auto on_init() -> void; auto on_shutdown() -> void; @@ -49,6 +56,8 @@ namespace Donut double m_start_time = 0.0; bool m_user_moving = false; + int m_windowed_x = 100, m_windowed_y = 100, m_windowed_w = 1280, m_windowed_h = 720; + bool m_running = true; bool m_minimized = false; |
