added rest of basics in TSE_Core
This commit is contained in:
30
TSE_Core/src/elements/Scene.hpp
Normal file
30
TSE_Core/src/elements/Scene.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include "Layer.hpp"
|
||||
#include "interfaces/IWindow.hpp"
|
||||
#include "Types.hpp"
|
||||
|
||||
namespace TSE
|
||||
{
|
||||
class Scene
|
||||
{
|
||||
private:
|
||||
string name = "Unnamed";
|
||||
std::vector<std::pair<string, Layer*>> layers;
|
||||
|
||||
public:
|
||||
void Render(IRenderer& rnd, const IWindow& wnd);
|
||||
void DoneRender();
|
||||
void AddLayer(Layer* l);
|
||||
void RemoveLayer(const string& name);
|
||||
int GetLayerCount() const;
|
||||
Layer* GetLayerAt(const int& i) const;
|
||||
void SetName(const string& name);
|
||||
string GetName();
|
||||
void Update();
|
||||
void RenameLayer(const string& oldName, const string& newName);
|
||||
void MoveLayerUp(Layer* l);
|
||||
void MoveLayerDown(Layer* l);
|
||||
};
|
||||
} // namespace TSE
|
||||
Reference in New Issue
Block a user