summaryrefslogtreecommitdiff
path: root/inc/scene.hpp
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-11-25 17:05:01 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-11-25 17:05:01 -0700
commitf4a7739a40c095e0c837d78d00f13a1ef47d3a11 (patch)
tree901a02ea8cf1cab8344bf3d6310ae4812f7062f4 /inc/scene.hpp
parentebc517c800a90f6f0ed157e5c3bd7c3bd18165b5 (diff)
downloadgbarubik-f4a7739a40c095e0c837d78d00f13a1ef47d3a11.tar.gz
gbarubik-f4a7739a40c095e0c837d78d00f13a1ef47d3a11.zip
cube foo init
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