Component providing graphical information about a "model" file (be it a 3D model, a 2D sprite or any other form of renderable element).
Entities with this Component are sometimes referred to as "model Entities". They hold flyweight-style data about all Entities using the model.
- Reflectible
- Serializable (POD)
- Initialized by model-loading systems (such as the AssImpSystem) and then used by graphics systems (such as the OpenGLSystem) (and others).
putils::string<KENGINE_MODEL_STRING_MAX_LENGTH> file;The model file this component describes.
The maximum length of a filename (stored as a putils::string) defaults to 64, and can be adjusted by defining the KENGINE_MODEL_STRING_MAX_LENGTH macro.
putils::Rect3f boundingBox = { {}, { 1, 1, 1 } };Defines the offset and scale to be applied to the model.
float pitch = 0.f; // Radians
float yaw = 0.f; // Radians
float roll = 0.f; // Radiansbool mirrored = false;