| 417 | } |
| 418 | |
| 419 | void 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 | |
| 439 | void duDebugDrawNavMeshPoly(duDebugDraw* dd, const dtNavMesh& mesh, dtPolyRef ref, const unsigned int col) |
| 440 | { |
nothing calls this directly
no test coverage detected