Set m_Mesh.
Registry this mesh to world.
Set m_Mesh.
Registry this mesh to world.
275 {
277
279
284
288 mesh->GetPacks().for_each([&](
auto& k,
auto& v) {
289 v->GetMeshDesc().UpdatemodelAddress(
e.GetComponent<TransformComponent>().GetModelBufferAddress());
290 v->GetMeshDesc().UpdateentityID((uint32_t)
m_Owner);
291 return false;
292 });
293 }
#define SPICES_PROFILE_ZONE
entt::entity m_Owner
This component's Owner entity.
static FrameInfo & Get()
Get FrameInfo.
std::shared_ptr< World > m_World
The shared pointer of specific world.
std::shared_ptr< Mesh > m_Mesh
The Mesh this component handled.