engine/include/sceneroot.hpp

32 lines
534 B
C++
Raw Normal View History

2022-09-02 11:06:59 +00:00
#pragma once
2022-09-07 09:02:01 +00:00
#include "engine_api.h"
2022-09-02 23:02:09 +00:00
2022-09-02 11:06:59 +00:00
#include "object.hpp"
#include <filesystem>
2022-10-06 10:30:44 +00:00
namespace engine {
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
// Holds everything you would expect to find in a game scene
class ENGINE_API SceneRoot : public Object {
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
public:
// create a new empty scene
SceneRoot(struct GameIO things);
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
SceneRoot(const SceneRoot&) = delete;
SceneRoot& operator=(const SceneRoot&) = delete;
~SceneRoot();
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
void updateStuff();
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
void activateCam(int id);
void deactivateCam(int id);
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
private:
std::vector<int> m_activeCameras{};
};
}