group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
Renderable Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ modelIndex

int32_t Renderable::modelIndex = -1

Index into Renderer::models[]. -1 = no model.

◆ orientation

glm::quat Renderable::orientation {1, 0, 0, 0}

Per-entity rotation override (identity by default).

◆ scale

glm::vec3 Renderable::scale {1.0f}

Per-entity scale override.

◆ visible

bool Renderable::visible = true

False to skip rendering without removing the component.


The documentation for this struct was generated from the following file: