diff options
author | rtk0c <[email protected]> | 2022-04-06 20:52:51 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-04-06 20:52:51 -0700 |
commit | f163e8f37123e651ea80b690793845b31ddb8639 (patch) | |
tree | e2c9f14d600f073533c9d01cfb90c4d60938127c /source/SceneThings.cpp | |
parent | 11edae3fbf770695d1b263712ca4f3a40bdd70e3 (diff) |
Changeset: 2 Work on moving infrastruture to this project
Diffstat (limited to 'source/SceneThings.cpp')
-rw-r--r-- | source/SceneThings.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source/SceneThings.cpp b/source/SceneThings.cpp new file mode 100644 index 0000000..ec7a82f --- /dev/null +++ b/source/SceneThings.cpp @@ -0,0 +1,19 @@ +#include "SceneThings.hpp" + +void BuildingObject::SetMeshMaterial(Material* material) { + mMaterial.Attach(material); + // TODO update render +} + +const Material* BuildingObject::GetMeshMaterial() const { + return mMaterial.Get(); +} + +void BuildingObject::SetMesh(Mesh* mesh) { + mMesh.Attach(mesh); + // TODO update render +} + +const Mesh* BuildingObject::GetMesh() const { + return mMesh.Get(); +} |