group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
Renderable.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <cstdint>
7#include <glm/glm.hpp>
8#include <glm/gtc/quaternion.hpp>
9
15{
16 int32_t modelIndex = -1;
17 glm::vec3 translation{0.0f};
18 glm::vec3 scale{1.0f};
19 glm::quat orientation{1, 0, 0, 0};
20 bool visible = true;
21};
Lightweight handle into the Renderer's models[] vector.
Definition Renderable.hpp:15
glm::vec3 scale
Per-entity scale override.
Definition Renderable.hpp:18
glm::vec3 translation
Local-space translation offset applied before rotation/scale.
Definition Renderable.hpp:17
glm::quat orientation
Per-entity rotation override (identity by default).
Definition Renderable.hpp:19
bool visible
False to skip rendering without removing the component.
Definition Renderable.hpp:20
int32_t modelIndex
Index into Renderer::models[]. -1 = no model.
Definition Renderable.hpp:16