#include <transformcomponent.h>
Public Member Functions | |
TransformInstanceProperties ()=default | |
TransformInstanceProperties (const glm::vec3 &translate, const glm::quat &rotate, const glm::vec3 &scale, float uniformScale) | |
Public Attributes | |
glm::vec3 | mTranslate = { 0.0f, 0.0f, 0.0f } |
glm::quat | mRotate = { 0.0f, 0.0f, 0.0f, 1.0f } |
glm::vec3 | mScale = { 1.0f, 1.0f, 1.0f } |
float | mUniformScale = 1.0f |
Struct to cache a transform instance Note that the rotation is a quaternion unlike TransformProperties
|
default |
TransformInstanceProperties | ( | const glm::vec3 & | translate, |
const glm::quat & | rotate, | ||
const glm::vec3 & | scale, | ||
float | uniformScale | ||
) |
glm::quat mRotate = { 0.0f, 0.0f, 0.0f, 1.0f } |
glm::vec3 mScale = { 1.0f, 1.0f, 1.0f } |
glm::vec3 mTranslate = { 0.0f, 0.0f, 0.0f } |
float mUniformScale = 1.0f |