SpiecsEngine
 
Loading...
Searching...
No Matches

◆ AddScale()

void Spices::TransformComponent::AddScale ( const glm::vec3 & scale)
inline

Add the scale to this component handled. Call CalMatrix() during this API.

Parameters
[in]scaleThe entity's world scale.

Definition at line 110 of file TransformComponent.h.

110{ m_Transform.scale += scale; CalMatrix(); }
void CalMatrix()
Calculate Model Matrix.
Transform m_Transform
The transform this component handled.
glm::vec3 scale
Definition Transform.h:19

References CalMatrix().