small fixes to make it work with demo project
This commit is contained in:
@@ -22,7 +22,7 @@ void HandleObject(TSE::Transformable* trans, TSE::TransformationStack& stack, TS
|
||||
}
|
||||
}
|
||||
|
||||
TSE::Layer::Layer(string &n)
|
||||
TSE::Layer::Layer(const string &n)
|
||||
{
|
||||
name = n;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace TSE
|
||||
std::vector<Transformable*> objectsToRender;
|
||||
|
||||
public:
|
||||
Layer(string& name);
|
||||
Layer(const string& name);
|
||||
|
||||
void Render(IRenderer& rnd) const;
|
||||
void AddTransformable(Transformable* t);
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace TSE
|
||||
|
||||
public:
|
||||
string name = "Unnamed";
|
||||
static ITextureHelper* helper;
|
||||
inline static ITextureHelper* helper = nullptr;
|
||||
|
||||
Texture(const string& path);
|
||||
Texture(const int& width, const int& height, int bpp = 32);
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace TSE
|
||||
std::vector<Transformable*> children;
|
||||
Transformable* parent = nullptr;
|
||||
|
||||
static std::unordered_map<uuids::uuid, Transformable*> objectEntries;
|
||||
inline static std::unordered_map<uuids::uuid, Transformable*> objectEntries = {};
|
||||
|
||||
public:
|
||||
Transformable();
|
||||
|
||||
Reference in New Issue
Block a user