MCPcopy Create free account
hub / github.com/axmolengine/axmol / duDebugDrawNavMeshPolysWithFlags

Function duDebugDrawNavMeshPolysWithFlags

3rdparty/recast/DetourDebugDraw.cpp:419–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419void duDebugDrawNavMeshPolysWithFlags(struct duDebugDraw* dd, const dtNavMesh& mesh,
420 const unsigned short polyFlags, const unsigned int col)
421{
422 if (!dd) return;
423
424 for (int i = 0; i < mesh.getMaxTiles(); ++i)
425 {
426 const dtMeshTile* tile = mesh.getTile(i);
427 if (!tile->header) continue;
428 dtPolyRef base = mesh.getPolyRefBase(tile);
429
430 for (int j = 0; j < tile->header->polyCount; ++j)
431 {
432 const dtPoly* p = &tile->polys[j];
433 if ((p->flags & polyFlags) == 0) continue;
434 duDebugDrawNavMeshPoly(dd, mesh, base|(dtPolyRef)j, col);
435 }
436 }
437}
438
439void duDebugDrawNavMeshPoly(duDebugDraw* dd, const dtNavMesh& mesh, dtPolyRef ref, const unsigned int col)
440{

Callers

nothing calls this directly

Calls 4

duDebugDrawNavMeshPolyFunction · 0.85
getMaxTilesMethod · 0.80
getPolyRefBaseMethod · 0.80
getTileMethod · 0.45

Tested by

no test coverage detected