From 7de921836587cdc359c2c4b84ed6446ada16c008 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 22 May 2022 17:05:00 +0200 Subject: refactor: remove window class --- src/engine/graphics/scene.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/engine/graphics/scene.hpp') 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 + #include #include @@ -17,13 +17,14 @@ class Scene : public IScene public: explicit Scene( IMatrixFactory matrix_factory, - std::shared_ptr cursor_controller, - std::shared_ptr window) noexcept; + std::shared_ptr 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> & override; @@ -32,5 +33,4 @@ private: std::shared_ptr> _matrix; std::shared_ptr _cursor_controller; - std::shared_ptr _window; }; -- cgit v1.2.3-18-g5258