Recast Navigation
Navigation-mesh Toolset for Games
DetourDebugDraw.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
3 //
4 // This software is provided 'as-is', without any express or implied
5 // warranty. In no event will the authors be held liable for any damages
6 // arising from the use of this software.
7 // Permission is granted to anyone to use this software for any purpose,
8 // including commercial applications, and to alter it and redistribute it
9 // freely, subject to the following restrictions:
10 // 1. The origin of this software must not be misrepresented; you must not
11 // claim that you wrote the original software. If you use this software
12 // in a product, an acknowledgment in the product documentation would be
13 // appreciated but is not required.
14 // 2. Altered source versions must be plainly marked as such, and must not be
15 // misrepresented as being the original software.
16 // 3. This notice may not be removed or altered from any source distribution.
17 //
18 
19 #ifndef DETOURDEBUGDRAW_H
20 #define DETOURDEBUGDRAW_H
21 
22 #include "DetourNavMesh.h"
23 #include "DetourNavMeshQuery.h"
24 #include "DetourTileCacheBuilder.h"
25 
27 {
31 };
32 
33 void duDebugDrawNavMesh(struct duDebugDraw* dd, const dtNavMesh& mesh, unsigned char flags);
34 void duDebugDrawNavMeshWithClosedList(struct duDebugDraw* dd, const dtNavMesh& mesh, const dtNavMeshQuery& query, unsigned char flags);
35 void duDebugDrawNavMeshNodes(struct duDebugDraw* dd, const dtNavMeshQuery& query);
36 void duDebugDrawNavMeshBVTree(struct duDebugDraw* dd, const dtNavMesh& mesh);
37 void duDebugDrawNavMeshPortals(struct duDebugDraw* dd, const dtNavMesh& mesh);
38 void duDebugDrawNavMeshPolysWithFlags(struct duDebugDraw* dd, const dtNavMesh& mesh, const unsigned short polyFlags, const unsigned int col);
39 void duDebugDrawNavMeshPoly(struct duDebugDraw* dd, const dtNavMesh& mesh, dtPolyRef ref, const unsigned int col);
40 
41 void duDebugDrawTileCacheLayerAreas(struct duDebugDraw* dd, const dtTileCacheLayer& layer, const float cs, const float ch);
42 void duDebugDrawTileCacheLayerRegions(struct duDebugDraw* dd, const dtTileCacheLayer& layer, const float cs, const float ch);
44  const float* orig, const float cs, const float ch);
46  const float* orig, const float cs, const float ch);
47 
48 #endif // DETOURDEBUGDRAW_H
void duDebugDrawNavMeshPoly(struct duDebugDraw *dd, const dtNavMesh &mesh, dtPolyRef ref, const unsigned int col)
Definition: DetourDebugDraw.cpp:439
DrawNavMeshFlags
Definition: DetourDebugDraw.h:27
@ DU_DRAWNAVMESH_COLOR_TILES
Definition: DetourDebugDraw.h:30
@ DU_DRAWNAVMESH_OFFMESHCONS
Definition: DetourDebugDraw.h:28
@ DU_DRAWNAVMESH_CLOSEDLIST
Definition: DetourDebugDraw.h:29
void duDebugDrawNavMeshPortals(struct duDebugDraw *dd, const dtNavMesh &mesh)
Definition: DetourDebugDraw.cpp:407
void duDebugDrawTileCacheLayerAreas(struct duDebugDraw *dd, const dtTileCacheLayer &layer, const float cs, const float ch)
Definition: DetourDebugDraw.cpp:529
void duDebugDrawTileCacheLayerRegions(struct duDebugDraw *dd, const dtTileCacheLayer &layer, const float cs, const float ch)
Definition: DetourDebugDraw.cpp:583
void duDebugDrawNavMeshPolysWithFlags(struct duDebugDraw *dd, const dtNavMesh &mesh, const unsigned short polyFlags, const unsigned int col)
Definition: DetourDebugDraw.cpp:419
void duDebugDrawTileCachePolyMesh(duDebugDraw *dd, const struct dtTileCachePolyMesh &lmesh, const float *orig, const float cs, const float ch)
Definition: DetourDebugDraw.cpp:728
void duDebugDrawTileCacheContours(duDebugDraw *dd, const struct dtTileCacheContourSet &lcset, const float *orig, const float cs, const float ch)
Definition: DetourDebugDraw.cpp:648
void duDebugDrawNavMeshBVTree(struct duDebugDraw *dd, const dtNavMesh &mesh)
Definition: DetourDebugDraw.cpp:323
void duDebugDrawNavMesh(struct duDebugDraw *dd, const dtNavMesh &mesh, unsigned char flags)
Definition: DetourDebugDraw.cpp:237
void duDebugDrawNavMeshWithClosedList(struct duDebugDraw *dd, const dtNavMesh &mesh, const dtNavMeshQuery &query, unsigned char flags)
Definition: DetourDebugDraw.cpp:249
void duDebugDrawNavMeshNodes(struct duDebugDraw *dd, const dtNavMeshQuery &query)
Definition: DetourDebugDraw.cpp:263
Provides the ability to perform pathfinding related queries against a navigation mesh.
Definition: DetourNavMeshQuery.h:166
A navigation mesh based on tiles of convex polygons.
Definition: DetourNavMesh.h:339
unsigned int dtPolyRef
A handle to a polygon within a navigation mesh tile.
Definition: DetourNavMesh.h:48
Definition: DetourTileCacheBuilder.h:62
Definition: DetourTileCacheBuilder.h:44
Definition: DetourTileCacheBuilder.h:68
Abstract debug draw interface.
Definition: DebugDraw.h:35