aboutsummaryrefslogtreecommitdiff
path: root/source/SceneThings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/SceneThings.cpp')
-rw-r--r--source/SceneThings.cpp19
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();
+}