Planeshift
|
00001 // 00002 // Copyright (c) 2009-2010 Mikko Mononen [email protected] 00003 // 00004 // This software is provided 'as-is', without any express or implied 00005 // warranty. In no event will the authors be held liable for any damages 00006 // arising from the use of this software. 00007 // Permission is granted to anyone to use this software for any purpose, 00008 // including commercial applications, and to alter it and redistribute it 00009 // freely, subject to the following restrictions: 00010 // 1. The origin of this software must not be misrepresented; you must not 00011 // claim that you wrote the original software. If you use this software 00012 // in a product, an acknowledgment in the product documentation would be 00013 // appreciated but is not required. 00014 // 2. Altered source versions must be plainly marked as such, and must not be 00015 // misrepresented as being the original software. 00016 // 3. This notice may not be removed or altered from any source distribution. 00017 // 00018 00019 #ifndef DETOURDEBUGDRAW_H 00020 #define DETOURDEBUGDRAW_H 00021 00022 #include "DetourNavMesh.h" 00023 #include "DetourNavMeshQuery.h" 00024 #include "DetourTileCacheBuilder.h" 00025 00026 enum DrawNavMeshFlags 00027 { 00028 DU_DRAWNAVMESH_OFFMESHCONS = 0x01, 00029 DU_DRAWNAVMESH_CLOSEDLIST = 0x02, 00030 DU_DRAWNAVMESH_COLOR_TILES = 0x04, 00031 }; 00032 00033 void duDebugDrawNavMesh(struct duDebugDraw* dd, const dtNavMesh& mesh, unsigned char flags); 00034 void duDebugDrawNavMeshWithClosedList(struct duDebugDraw* dd, const dtNavMesh& mesh, const dtNavMeshQuery& query, unsigned char flags); 00035 void duDebugDrawNavMeshNodes(struct duDebugDraw* dd, const dtNavMeshQuery& query); 00036 void duDebugDrawNavMeshBVTree(struct duDebugDraw* dd, const dtNavMesh& mesh); 00037 void duDebugDrawNavMeshPortals(struct duDebugDraw* dd, const dtNavMesh& mesh); 00038 void duDebugDrawNavMeshPolysWithFlags(struct duDebugDraw* dd, const dtNavMesh& mesh, const unsigned short polyFlags, const unsigned int col); 00039 void duDebugDrawNavMeshPoly(struct duDebugDraw* dd, const dtNavMesh& mesh, dtPolyRef ref, const unsigned int col); 00040 00041 void duDebugDrawTileCacheLayerAreas(struct duDebugDraw* dd, const dtTileCacheLayer& layer, const float cs, const float ch); 00042 void duDebugDrawTileCacheLayerRegions(struct duDebugDraw* dd, const dtTileCacheLayer& layer, const float cs, const float ch); 00043 void duDebugDrawTileCacheContours(duDebugDraw* dd, const struct dtTileCacheContourSet& lcset, 00044 const float* orig, const float cs, const float ch); 00045 void duDebugDrawTileCachePolyMesh(duDebugDraw* dd, const struct dtTileCachePolyMesh& lmesh, 00046 const float* orig, const float cs, const float ch); 00047 00048 #endif // DETOURDEBUGDRAW_H