aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/scene.cpp
blob: aba25dc3a685f1e8d34169d557742c405a7880e1 (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;
}