Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
Loading...
Searching...
No Matches
scenemanager.h
1#pragma once
2#pragma once
3#include <string>
4#include <scenemanagement/scene.h>
5
6namespace meteor {
10 class MSceneManager : public MEntity {
11 public:
15 static void initialise();
19 static bool loadEmptyScene();
23 static bool loadScene(std::string path);
27 static bool closeActiveScene();
31 static void update(float deltaTime);
35 inline static MScene* getActiveScene() { return activeScene; }
36 private:
37 static MScene* activeScene;
38 };
39}
An Entity is the base class for all data and behaviour oriented objects in meteor....
Definition entity.h:9
A scene holds a collection of spatial entity for a specific level.
Definition scene.h:10
Manages Scene loads and unloads.
Definition scenemanager.h:10
static void update(float deltaTime)
Updates current active scene.
static bool loadScene(std::string path)
Loads a scene from an scene definition file.
static MScene * getActiveScene()
Returns current active scene.
Definition scenemanager.h:35
static void initialise()
Initialises the SceneManager.
static bool loadEmptyScene()
Loads an empty scene.
static bool closeActiveScene()
Closes the current active scene.