GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::resource::ModelOptions Struct Reference

Configuration options for a Model. More...

#include <GREM/resource/Model.hpp>

Public Member Functions

constexpr bool operator== (const ModelOptions &other) const =default
 Compare these options to another set of options for equality.

Public Attributes

vec3 rootTranslation {0.0f, 0.0f, 0.0f}
 Translation to apply to the root joint of the model.
quat rootRotation {0.0f, 0.0f, 0.0f, 1.0f}
 Rotation to apply to the root joint of the model.
vec3 rootScale {1.0f, 1.0f, 1.0f}
 Scale to apply to the root joint of the model.
bool excludeAnimations = false
 Exclude any animations from the loaded model.
bool excludeLights = false
 Exclude any lights from the loaded model.
bool excludeColliders = false
 Exclude any colliders from the loaded model.
bool excludePhysics = false
 Exclude any physics information from the loaded model.

Detailed Description

Configuration options for a Model.

Member Function Documentation

◆ operator==()

bool grem::resource::ModelOptions::operator== ( const ModelOptions & other) const
nodiscardconstexprdefault

Compare these options to another set of options for equality.

Parameters
otherthe options to compare these to.
Returns
true if the options are equal, false otherwise.

Member Data Documentation

◆ rootTranslation

vec3 grem::resource::ModelOptions::rootTranslation {0.0f, 0.0f, 0.0f}

Translation to apply to the root joint of the model.

◆ rootRotation

quat grem::resource::ModelOptions::rootRotation {0.0f, 0.0f, 0.0f, 1.0f}

Rotation to apply to the root joint of the model.

◆ rootScale

vec3 grem::resource::ModelOptions::rootScale {1.0f, 1.0f, 1.0f}

Scale to apply to the root joint of the model.

◆ excludeAnimations

bool grem::resource::ModelOptions::excludeAnimations = false

Exclude any animations from the loaded model.

Set to true to potentially improve load times in cases where the animation data isn't needed.

◆ excludeLights

bool grem::resource::ModelOptions::excludeLights = false

Exclude any lights from the loaded model.

Set to true to potentially improve load times in cases where the light data isn't needed.

◆ excludeColliders

bool grem::resource::ModelOptions::excludeColliders = false

Exclude any colliders from the loaded model.

Set to true to potentially improve load times in cases where the collision data isn't needed.

Note
If excludePhysics is false, colliders may be included regardless of this option.

◆ excludePhysics

bool grem::resource::ModelOptions::excludePhysics = false

Exclude any physics information from the loaded model.

Set to true to potentially improve load times in cases where the physics data isn't needed.


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