15 #ifndef PIE_NOON_SCENE_DESCRIPTION_H
16 #define PIE_NOON_SCENE_DESCRIPTION_H
20 #include "mathfu/glsl_mappings.h"
26 Renderable(uint16_t
id, uint16_t variant,
const mathfu::mat4& world_matrix,
27 const mathfu::vec4& color = mathfu::vec4(1, 1, 1, 1))
30 world_matrix_(world_matrix),
33 uint16_t id()
const {
return id_; }
34 void set_id(uint16_t
id) { id_ = id; }
36 uint16_t variant()
const {
return variant_; }
37 void set_variant(uint16_t variant) { variant_ = variant; }
39 const mathfu::mat4& world_matrix()
const {
return world_matrix_; }
40 void set_world_matrix(
const mathfu::mat4& mat) { world_matrix_ = mat; }
42 const mathfu::vec4& color()
const {
return color_; }
43 void set_color(
const mathfu::vec4& c) { color_ = c; }
55 mathfu::mat4 world_matrix_;
62 const mathfu::mat4& camera()
const {
return camera_; }
63 void set_camera(
const mathfu::mat4& camera) { camera_ = camera; }
65 std::vector<std::unique_ptr<Renderable>>& renderables() {
68 const std::vector<std::unique_ptr<Renderable>>& renderables()
const {
72 std::vector<std::unique_ptr<mathfu::vec3>>& lights() {
return lights_; }
73 const std::vector<std::unique_ptr<mathfu::vec3>>& lights()
const {
88 std::vector<std::unique_ptr<Renderable>> renderables_;
91 std::vector<std::unique_ptr<mathfu::vec3>> lights_;
96 #endif // PIE_NOON_SCENE_DESCRIPTION_H
Definition: scene_description.h:60
Definition: scene_description.h:24