added rest of basics in TSE_Core

This commit is contained in:
2026-01-17 21:06:02 +01:00
parent d09953f476
commit 117c1e6adb
27 changed files with 2908 additions and 9 deletions

View 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