aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/scene.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-22 17:05:00 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:59 +0200
commit7de921836587cdc359c2c4b84ed6446ada16c008 (patch)
treec4ec20b4769817c41ce7d939956da297bf787597 /src/interfaces/scene.hpp
parent723ea6535b4c4e5605e5592137a898d6ffa458c1 (diff)
refactor: remove window class
Diffstat (limited to 'src/interfaces/scene.hpp')
-rw-r--r--src/interfaces/scene.hpp9
1 files changed, 6 insertions, 3 deletions
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 <yacppdic/factory.hpp>
#include <memory>
+#include <string_view>
// 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<IMatrix<std::string_view>> & = 0;
};
using ISceneFactory = yacppdic::Factory<std::unique_ptr<IScene>(
- const std::shared_ptr<ICursorController> &cursor_controller,
- const std::shared_ptr<IWindow> &window)>;
+ const std::shared_ptr<ICursorController> &cursor_controller)>;