MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / GetTriangleCount

Method GetTriangleCount

src/Nazara/Utility/Mesh.cpp:485–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483 }
484
485 UInt32 Mesh::GetTriangleCount() const
486 {
487 NazaraAssert(m_impl, "Mesh should be created first");
488
489 UInt32 triangleCount = 0;
490 for (SubMesh* subMesh : m_impl->subMeshes)
491 triangleCount += subMesh->GetTriangleCount();
492
493 return triangleCount;
494 }
495
496 UInt32 Mesh::GetVertexCount() const
497 {

Callers 2

SaveToStreamFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected