Recast Navigation
Navigation-mesh Toolset for Games
DetourDebugDraw.cpp File Reference
#include "DebugDraw.h"
#include "DetourDebugDraw.h"
#include "DetourNavMesh.h"
#include "DetourCommon.h"
#include "DetourNode.h"

Functions

static float distancePtLine2d (const float *pt, const float *p, const float *q)
 
static void drawPolyBoundaries (duDebugDraw *dd, const dtMeshTile *tile, const unsigned int col, const float linew, bool inner)
 
static void drawMeshTile (duDebugDraw *dd, const dtNavMesh &mesh, const dtNavMeshQuery *query, const dtMeshTile *tile, unsigned char flags)
 
void duDebugDrawNavMesh (duDebugDraw *dd, const dtNavMesh &mesh, unsigned char flags)
 
void duDebugDrawNavMeshWithClosedList (struct duDebugDraw *dd, const dtNavMesh &mesh, const dtNavMeshQuery &query, unsigned char flags)
 
void duDebugDrawNavMeshNodes (struct duDebugDraw *dd, const dtNavMeshQuery &query)
 
static void drawMeshTileBVTree (duDebugDraw *dd, const dtMeshTile *tile)
 
void duDebugDrawNavMeshBVTree (duDebugDraw *dd, const dtNavMesh &mesh)
 
static void drawMeshTilePortal (duDebugDraw *dd, const dtMeshTile *tile)
 
void duDebugDrawNavMeshPortals (duDebugDraw *dd, const dtNavMesh &mesh)
 
void duDebugDrawNavMeshPolysWithFlags (struct duDebugDraw *dd, const dtNavMesh &mesh, const unsigned short polyFlags, const unsigned int col)
 
void duDebugDrawNavMeshPoly (duDebugDraw *dd, const dtNavMesh &mesh, dtPolyRef ref, const unsigned int col)
 
static void debugDrawTileCachePortals (struct duDebugDraw *dd, const dtTileCacheLayer &layer, const float cs, const float ch)
 
void duDebugDrawTileCacheLayerAreas (struct duDebugDraw *dd, const dtTileCacheLayer &layer, const float cs, const float ch)
 
void duDebugDrawTileCacheLayerRegions (struct duDebugDraw *dd, const dtTileCacheLayer &layer, const float cs, const float ch)
 
void duDebugDrawTileCacheContours (duDebugDraw *dd, const struct dtTileCacheContourSet &lcset, const float *orig, const float cs, const float ch)
 
void duDebugDrawTileCachePolyMesh (duDebugDraw *dd, const struct dtTileCachePolyMesh &lmesh, const float *orig, const float cs, const float ch)
 

Function Documentation

◆ debugDrawTileCachePortals()

static void debugDrawTileCachePortals ( struct duDebugDraw dd,
const dtTileCacheLayer layer,
const float  cs,
const float  ch 
)
static

◆ distancePtLine2d()

static float distancePtLine2d ( const float *  pt,
const float *  p,
const float *  q 
)
static

◆ drawMeshTile()

static void drawMeshTile ( duDebugDraw dd,
const dtNavMesh mesh,
const dtNavMeshQuery query,
const dtMeshTile tile,
unsigned char  flags 
)
static

◆ drawMeshTileBVTree()

static void drawMeshTileBVTree ( duDebugDraw dd,
const dtMeshTile tile 
)
static

◆ drawMeshTilePortal()

static void drawMeshTilePortal ( duDebugDraw dd,
const dtMeshTile tile 
)
static

◆ drawPolyBoundaries()

static void drawPolyBoundaries ( duDebugDraw dd,
const dtMeshTile tile,
const unsigned int  col,
const float  linew,
bool  inner 
)
static

◆ duDebugDrawNavMesh()

void duDebugDrawNavMesh ( duDebugDraw dd,
const dtNavMesh mesh,
unsigned char  flags 
)

◆ duDebugDrawNavMeshBVTree()

void duDebugDrawNavMeshBVTree ( duDebugDraw dd,
const dtNavMesh mesh 
)

◆ duDebugDrawNavMeshNodes()

void duDebugDrawNavMeshNodes ( struct duDebugDraw dd,
const dtNavMeshQuery query 
)

◆ duDebugDrawNavMeshPoly()

void duDebugDrawNavMeshPoly ( duDebugDraw dd,
const dtNavMesh mesh,
dtPolyRef  ref,
const unsigned int  col 
)

◆ duDebugDrawNavMeshPolysWithFlags()

void duDebugDrawNavMeshPolysWithFlags ( struct duDebugDraw dd,
const dtNavMesh mesh,
const unsigned short  polyFlags,
const unsigned int  col 
)

◆ duDebugDrawNavMeshPortals()

void duDebugDrawNavMeshPortals ( duDebugDraw dd,
const dtNavMesh mesh 
)

◆ duDebugDrawNavMeshWithClosedList()

void duDebugDrawNavMeshWithClosedList ( struct duDebugDraw dd,
const dtNavMesh mesh,
const dtNavMeshQuery query,
unsigned char  flags 
)

◆ duDebugDrawTileCacheContours()

void duDebugDrawTileCacheContours ( duDebugDraw dd,
const struct dtTileCacheContourSet lcset,
const float *  orig,
const float  cs,
const float  ch 
)

◆ duDebugDrawTileCacheLayerAreas()

void duDebugDrawTileCacheLayerAreas ( struct duDebugDraw dd,
const dtTileCacheLayer layer,
const float  cs,
const float  ch 
)

◆ duDebugDrawTileCacheLayerRegions()

void duDebugDrawTileCacheLayerRegions ( struct duDebugDraw dd,
const dtTileCacheLayer layer,
const float  cs,
const float  ch 
)

◆ duDebugDrawTileCachePolyMesh()

void duDebugDrawTileCachePolyMesh ( duDebugDraw dd,
const struct dtTileCachePolyMesh lmesh,
const float *  orig,
const float  cs,
const float  ch 
)