summaryrefslogtreecommitdiff
path: root/src/3d/scene.h
blob: 6793975b426b78238635ddb172b0703c103c32c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// This file is part of the 64k demo project.
// It defines the Scene container.
// Manages a collection of objects and lights.

#pragma once

#include "3d/object.h"
#include <vector>

class Scene {
 public:
  std::vector<Object3D> objects;
  // std::vector<Light> lights; // Future

  void add_object(const Object3D& obj) {
    objects.push_back(obj);
  }

  void clear() {
    objects.clear();
  }
};