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/interfaces/scene.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/interfaces/scene.hpp') diff --git a/src/interfaces/scene.hpp b/src/interfaces/scene.hpp index 01be07d..08615a9 100644 --- a/src/interfaces/scene.hpp +++ b/src/interfaces/scene.hpp @@ -2,11 +2,13 @@ #include "interfaces/cursor.hpp" #include "interfaces/matrix.hpp" -#include "interfaces/window.hpp" + +#include "engine/data/bounds.hpp" #include #include +#include // NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) class IScene @@ -18,10 +20,11 @@ public: virtual void leave() noexcept = 0; + [[nodiscard]] virtual auto size() const noexcept -> Bounds = 0; + [[nodiscard]] virtual auto get_matrix() const noexcept -> const std::shared_ptr> & = 0; }; using ISceneFactory = yacppdic::Factory( - const std::shared_ptr &cursor_controller, - const std::shared_ptr &window)>; + const std::shared_ptr &cursor_controller)>; -- cgit v1.2.3-18-g5258