aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/scene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/o3d/scene.cpp')
-rw-r--r--src/o3d/scene.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/o3d/scene.cpp b/src/o3d/scene.cpp
new file mode 100644
index 0000000..aba25dc
--- /dev/null
+++ b/src/o3d/scene.cpp
@@ -0,0 +1,12 @@
+#include "o3d/scene.h"
+#include <vector>
+#include "o3d/camera.h"
+#include "o3d/obj3d.h"
+
+using namespace engine::o3d;
+
+Scene::Scene(Camera camera, std::vector<Object3D> objs) : camera{camera}, objs{objs} {
+ this.camera.scene = this;
+ for (auto& obj : this.objs)
+ obj.scene = this;
+}