From 02c4c796888397496452aaa46c52691eef8707eb Mon Sep 17 00:00:00 2001 From: max-001 Date: Tue, 5 Nov 2024 16:11:54 +0100 Subject: Added abstract Scene class --- src/crepe/api/Scene.cpp | 5 +++++ src/crepe/api/Scene.h | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/crepe/api/Scene.cpp create mode 100644 src/crepe/api/Scene.h (limited to 'src') diff --git a/src/crepe/api/Scene.cpp b/src/crepe/api/Scene.cpp new file mode 100644 index 0000000..189650f --- /dev/null +++ b/src/crepe/api/Scene.cpp @@ -0,0 +1,5 @@ +#include "Scene.h" + +using namespace crepe::api; + +Scene::Scene(std::string name) : name(name) {} diff --git a/src/crepe/api/Scene.h b/src/crepe/api/Scene.h new file mode 100644 index 0000000..35fe9db --- /dev/null +++ b/src/crepe/api/Scene.h @@ -0,0 +1,17 @@ +#pragma once + +#include + +namespace crepe::api { + +class Scene { +public: + Scene(std::string name); + virtual ~Scene() = default; + virtual void load_scene() = 0; + +public: + std::string name; +}; + +} // namespace crepe::api -- cgit v1.2.3