diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-22 17:05:00 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:59 +0200 |
commit | 7de921836587cdc359c2c4b84ed6446ada16c008 (patch) | |
tree | c4ec20b4769817c41ce7d939956da297bf787597 /src/engine/graphics/scene.hpp | |
parent | 723ea6535b4c4e5605e5592137a898d6ffa458c1 (diff) |
refactor: remove window class
Diffstat (limited to 'src/engine/graphics/scene.hpp')
-rw-r--r-- | src/engine/graphics/scene.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/graphics/scene.hpp b/src/engine/graphics/scene.hpp index 5e74725..268f8dc 100644 --- a/src/engine/graphics/scene.hpp +++ b/src/engine/graphics/scene.hpp @@ -3,9 +3,9 @@ #include "interfaces/cursor.hpp" #include "interfaces/matrix.hpp" #include "interfaces/scene.hpp" -#include "interfaces/window.hpp" #include <fmt/core.h> + #include <memory> #include <string_view> @@ -17,13 +17,14 @@ class Scene : public IScene public: explicit Scene( IMatrixFactory<std::string_view> matrix_factory, - std::shared_ptr<ICursorController> cursor_controller, - std::shared_ptr<IWindow> window) noexcept; + std::shared_ptr<ICursorController> cursor_controller) noexcept; void enter() noexcept override; void leave() noexcept override; + [[nodiscard]] auto size() const noexcept -> Bounds override; + [[nodiscard]] auto get_matrix() const noexcept -> const std::shared_ptr<IMatrix<std::string_view>> & override; @@ -32,5 +33,4 @@ private: std::shared_ptr<IMatrix<std::string_view>> _matrix; std::shared_ptr<ICursorController> _cursor_controller; - std::shared_ptr<IWindow> _window; }; |