added basic structures
This commit is contained in:
31
TSE_Core/src/elements/Layer.hpp
Normal file
31
TSE_Core/src/elements/Layer.hpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include "Transformable.hpp"
|
||||
#include "Types.hpp"
|
||||
#include "interfaces/IRenderer.hpp"
|
||||
#include <vector>
|
||||
|
||||
namespace TSE
|
||||
{
|
||||
class Layer
|
||||
{
|
||||
private:
|
||||
string name;
|
||||
std::vector<Transformable*> objectsToRender;
|
||||
|
||||
public:
|
||||
Layer(string& name);
|
||||
|
||||
void Render(IRenderer& rnd) const;
|
||||
void AddTransformable(Transformable* t);
|
||||
bool HasTransformable(const Transformable* t) const;
|
||||
|
||||
void RemoveTransformable(const Transformable* t);
|
||||
void RemoveTransformable(const uuids::uuid id);
|
||||
|
||||
string GetName() const;
|
||||
void SetName(const string& name);
|
||||
std::vector<Transformable*>& GetAllObjects();
|
||||
void Update();
|
||||
};
|
||||
} // namespace TSE
|
||||
Reference in New Issue
Block a user