MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / renderToDrawer

Method renderToDrawer

Engine/source/navigation/navMesh.cpp:1329–1348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1327}
1328
1329void NavMesh::renderToDrawer()
1330{
1331 dd.clear();
1332 // Recast debug draw
1333 NetObject *no = getServerObject();
1334 if(no)
1335 {
1336 NavMesh *n = static_cast<NavMesh*>(no);
1337
1338 if(n->nm)
1339 {
1340 dd.beginGroup(0);
1341 duDebugDrawNavMesh (&dd, *n->nm, 0);
1342 dd.beginGroup(1);
1343 duDebugDrawNavMeshPortals(&dd, *n->nm);
1344 dd.beginGroup(2);
1345 duDebugDrawNavMeshBVTree (&dd, *n->nm);
1346 }
1347 }
1348}
1349
1350void NavMesh::prepRenderImage(SceneRenderState *state)
1351{

Callers

nothing calls this directly

Calls 5

duDebugDrawNavMeshFunction · 0.85
duDebugDrawNavMeshBVTreeFunction · 0.85
clearMethod · 0.45
beginGroupMethod · 0.45

Tested by

no test coverage detected