Basic mutability framework

This commit is contained in:
Dynamitos
2022-01-12 14:40:26 +01:00
parent b2718dde70
commit 6d48267ec2
72 changed files with 1781 additions and 1341 deletions
@@ -16,14 +16,14 @@ public:
~PrimitiveComponent();
virtual void notifySceneAttach(PScene scene) override;
Matrix4 getRenderMatrix();
const Array<StaticMeshBatch>& getStaticMeshes()
std::vector<StaticMeshBatch>& getStaticMeshes()
{
return staticMeshes;
}
private:
Array<PMaterialAsset> materials;
std::vector<PMaterialAsset> materials;
Gfx::PUniformBuffer uniformBuffer;
Array<StaticMeshBatch> staticMeshes;
std::vector<StaticMeshBatch> staticMeshes;
friend class Scene;
};
DEFINE_REF(PrimitiveComponent)