blob: 50f83bedbf59cbffb026f10e9817e54e197957f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
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;
}
|