| 1366 | } |
| 1367 | |
| 1368 | static void TestDrawVisibility(dmRender::RenderListVisibilityParams const ¶ms) |
| 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 = ¶ms.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 | |
| 1379 | TEST_F(dmRenderTest, TestRenderListCulling) |
| 1380 | { |
no test coverage detected