MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getEntityCount

Function getEntityCount

test/Renderer.cpp:341–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339{
340
341std::size_t getEntityCount(RenderSystemPtr& renderSystem)
342{
343 std::size_t count = 0;
344
345 renderSystem->foreachEntity([&](const IRenderEntityPtr&)
346 {
347 ++count;
348 });
349
350 return count;
351}
352
353std::size_t getLightCount(RenderSystemPtr& renderSystem)
354{

Callers 1

TEST_FFunction · 0.85

Calls 1

foreachEntityMethod · 0.45

Tested by

no test coverage detected