summaryrefslogtreecommitdiff
path: root/inc/scene.hpp
blob: 8e286dbe15378a9f482c5279aa115aec07bb6b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef SCENE_HPP
#define SCENE_HPP

#include "model_instance.hpp"
#include "vector.hpp"
#include <cstdint>
#include <tonc.h>

class Scene {
public:
  usu::vector<Renderable> renderables;
  std::tuple<std::uint16_t, std::uint16_t>
      viewport_dimension; // <width, height>
  std::tuple<std::uint16_t, std::uint16_t> scene_dimension;
  VECTOR directional_light;
  FIXED z_plane;

  Scene();
  void render();
  POINT project_2d(VECTOR vertex);
};

#endif // SCENE_HPP