MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / HnMesh

Method HnMesh

Hydrogent/src/HnMesh.cpp:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64HnMesh::HnMesh(pxr::TfToken const& typeId,
65 pxr::SdfPath const& id,
66 HnRenderDelegate& RenderDelegate,
67 Uint32 UID,
68 entt::entity Entity) :
69 pxr::HdMesh{id},
70 m_UID{UID},
71 m_Entity{Entity}
72{
73 entt::registry& Regisgtry = RenderDelegate.GetEcsRegistry();
74 Regisgtry.emplace<Components::Transform>(m_Entity);
75 Regisgtry.emplace<Components::DisplayColor>(m_Entity);
76 Regisgtry.emplace<Components::Visibility>(m_Entity, _sharedData.visible);
77}
78
79HnMesh::~HnMesh()
80{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected