MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / getDiffuseTexture

Method getDiffuseTexture

src/logic/visuals/StaticMeshVisual.cpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78std::string StaticMeshVisual::getDiffuseTexture(size_t index)
79{
80 Components::StaticMeshComponent& sm = m_World.getEntity<Components::StaticMeshComponent>(m_VisualEntities[index]);
81
82 if (sm.m_Texture.isValid())
83 return m_World.getTextureAllocator().getTexture(sm.m_Texture).m_TextureName;
84
85 return "";
86}
87
88void StaticMeshVisual::setAnimationFrame(size_t submeshIndex, size_t frame)
89{

Callers 1

updateHeadMeshMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected