MCPcopy Create free account
hub / github.com/defold/defold / TestDrawVisibility

Function TestDrawVisibility

engine/render/src/test/test_render.cpp:1368–1377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1366}
1367
1368static void TestDrawVisibility(dmRender::RenderListVisibilityParams const &params)
1369{
1370 // Special test to only enable every other render item
1371 for (uint32_t i = 0; i < params.m_NumEntries; ++i)
1372 {
1373 dmRender::RenderListEntry* entry = &params.m_Entries[i];
1374 bool intersect = dmIntersection::TestFrustumPoint(*params.m_Frustum, entry->m_WorldPosition);
1375 entry->m_Visibility = intersect ? dmRender::VISIBILITY_FULL : dmRender::VISIBILITY_NONE;
1376 }
1377}
1378
1379TEST_F(dmRenderTest, TestRenderListCulling)
1380{

Callers 1

Calls 1

TestFrustumPointFunction · 0.85

Tested by

no test coverage detected