gbarubik/inc/scene.hpp

24 lines
469 B
C++
Raw Normal View History

2023-11-25 19:05:01 -05:00
#ifndef SCENE_HPP
#define SCENE_HPP
2023-11-24 20:19:42 -05:00
2023-11-25 19:05:01 -05:00
#include "model_instance.hpp"
2023-11-24 20:19:42 -05:00
#include "vector.hpp"
#include <cstdint>
2023-11-25 19:05:01 -05:00
#include <tonc.h>
2023-11-24 20:19:42 -05:00
class Scene {
public:
2023-11-25 19:05:01 -05:00
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;
2023-11-24 20:19:42 -05:00
2023-11-25 19:05:01 -05:00
Scene();
2023-11-24 20:19:42 -05:00
void render();
2023-11-25 19:05:01 -05:00
POINT project_2d(VECTOR vertex);
2023-11-24 20:19:42 -05:00
};
#endif // SCENE_HPP