SpiecsEngine
 
Loading...
Searching...
No Matches

◆ CalMatrix()

void Spices::TransformComponent::CalMatrix ( )
private

Calculate Model Matrix.

Definition at line 521 of file TransformComponent.cpp.

522 {
524
526 m_ModelBuffer->WriteToBuffer(glm::value_ptr(m_ModelMatrix));
527 }
#define SPICES_PROFILE_ZONE
std::shared_ptr< VulkanBuffer > m_ModelBuffer
Model Buffer.
glm::mat4 m_ModelMatrix
The modelMatrix this component handled.
Transform m_Transform
The transform this component handled.
glm::mat4 ToMatrix()
Get Model Matrix from this Transfrom. @reutrn Returns this transfrom Matrix.
Definition Transform.cpp:15

Referenced by AddPosition(), AddRotation(), AddScale(), DrawThis(), GetModelMatrix(), SetPosition(), SetRotation(), and SetScale().