| 1327 | } |
| 1328 | |
| 1329 | void 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 | |
| 1350 | void NavMesh::prepRenderImage(SceneRenderState *state) |
| 1351 | { |
nothing calls this directly
no test coverage detected