|
group2 0.1.0
CSE 125 Group 2
|
Lightweight handle into the Renderer's models[] vector. More...
#include <Renderable.hpp>
Public Attributes | |
| int32_t | modelIndex = -1 |
| Index into Renderer::models[]. -1 = no model. | |
| glm::vec3 | scale {1.0f} |
| Per-entity scale override. | |
| glm::quat | orientation {1, 0, 0, 0} |
| Per-entity rotation override (identity by default). | |
| bool | visible = true |
| False to skip rendering without removing the component. | |
Lightweight handle into the Renderer's models[] vector.
Attached to ECS entities that should be drawn in the world. The Renderer looks up ModelInstance by this index each frame.
| int32_t Renderable::modelIndex = -1 |
Index into Renderer::models[]. -1 = no model.
| glm::quat Renderable::orientation {1, 0, 0, 0} |
Per-entity rotation override (identity by default).
| glm::vec3 Renderable::scale {1.0f} |
Per-entity scale override.
| bool Renderable::visible = true |
False to skip rendering without removing the component.