summaryrefslogtreecommitdiff
path: root/inc/scene.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'inc/scene.hpp')
-rw-r--r--inc/scene.hpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/inc/scene.hpp b/inc/scene.hpp
index f84bcd7..8e286db 100644
--- a/inc/scene.hpp
+++ b/inc/scene.hpp
@@ -1,20 +1,23 @@
-#ifndef CANVAS_HPP
-#define CANVAS_HPP
+#ifndef SCENE_HPP
+#define SCENE_HPP
-#include "mesh.hpp"
+#include "model_instance.hpp"
#include "vector.hpp"
#include <cstdint>
+#include <tonc.h>
class Scene {
-private:
- usu::vector<Mesh> meshes;
- std::uint32_t width;
- std::uint32_t height;
-
public:
- Scene();
+ 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