aboutsummaryrefslogtreecommitdiff
path: root/source/SceneThings.cpp
diff options
context:
space:
mode:
authorhnOsmium0001 <[email protected]>2022-04-06 20:52:51 -0700
committerhnOsmium0001 <[email protected]>2022-04-06 20:52:51 -0700
commit3fdc6eb4f2cbeffce9b250beec4d3a2d52a3f534 (patch)
tree05991741844aa2814b3ac71e2c843ebe07244845 /source/SceneThings.cpp
parentebd42760caaec8330a3c028f31adc7bc0b339d16 (diff)
Work on moving infrastruture to this project
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();
+}