Recast Navigation
Navigation-mesh Toolset for Games
RecastDebugDraw.cpp File Reference
#include <math.h>
#include "DebugDraw.h"
#include "RecastDebugDraw.h"
#include "Recast.h"

Functions

void duDebugDrawTriMesh (duDebugDraw *dd, const float *verts, int, const int *tris, const float *normals, int ntris, const unsigned char *flags, const float texScale)
 
void duDebugDrawTriMeshSlope (duDebugDraw *dd, const float *verts, int, const int *tris, const float *normals, int ntris, const float walkableSlopeAngle, const float texScale)
 
void duDebugDrawHeightfieldSolid (duDebugDraw *dd, const rcHeightfield &hf)
 
void duDebugDrawHeightfieldWalkable (duDebugDraw *dd, const rcHeightfield &hf)
 
void duDebugDrawCompactHeightfieldSolid (duDebugDraw *dd, const rcCompactHeightfield &chf)
 
void duDebugDrawCompactHeightfieldRegions (duDebugDraw *dd, const rcCompactHeightfield &chf)
 
void duDebugDrawCompactHeightfieldDistance (duDebugDraw *dd, const rcCompactHeightfield &chf)
 
static void drawLayerPortals (duDebugDraw *dd, const rcHeightfieldLayer *layer)
 
void duDebugDrawHeightfieldLayer (duDebugDraw *dd, const struct rcHeightfieldLayer &layer, const int idx)
 
void duDebugDrawHeightfieldLayers (duDebugDraw *dd, const struct rcHeightfieldLayerSet &lset)
 
static void getContourCenter (const rcContour *cont, const float *orig, float cs, float ch, float *center)
 
static const rcContourfindContourFromSet (const rcContourSet &cset, unsigned short reg)
 
void duDebugDrawRegionConnections (duDebugDraw *dd, const rcContourSet &cset, const float alpha)
 
void duDebugDrawRawContours (duDebugDraw *dd, const rcContourSet &cset, const float alpha)
 
void duDebugDrawContours (duDebugDraw *dd, const rcContourSet &cset, const float alpha)
 
void duDebugDrawPolyMesh (duDebugDraw *dd, const struct rcPolyMesh &mesh)
 
void duDebugDrawPolyMeshDetail (duDebugDraw *dd, const struct rcPolyMeshDetail &dmesh)
 

Function Documentation

◆ drawLayerPortals()

static void drawLayerPortals ( duDebugDraw dd,
const rcHeightfieldLayer layer 
)
static

◆ duDebugDrawCompactHeightfieldDistance()

void duDebugDrawCompactHeightfieldDistance ( duDebugDraw dd,
const rcCompactHeightfield chf 
)

◆ duDebugDrawCompactHeightfieldRegions()

void duDebugDrawCompactHeightfieldRegions ( duDebugDraw dd,
const rcCompactHeightfield chf 
)

◆ duDebugDrawCompactHeightfieldSolid()

void duDebugDrawCompactHeightfieldSolid ( duDebugDraw dd,
const rcCompactHeightfield chf 
)

◆ duDebugDrawContours()

void duDebugDrawContours ( duDebugDraw dd,
const rcContourSet cset,
const float  alpha 
)

◆ duDebugDrawHeightfieldLayer()

void duDebugDrawHeightfieldLayer ( duDebugDraw dd,
const struct rcHeightfieldLayer layer,
const int  idx 
)

◆ duDebugDrawHeightfieldLayers()

void duDebugDrawHeightfieldLayers ( duDebugDraw dd,
const struct rcHeightfieldLayerSet lset 
)

◆ duDebugDrawHeightfieldSolid()

void duDebugDrawHeightfieldSolid ( duDebugDraw dd,
const rcHeightfield hf 
)

◆ duDebugDrawHeightfieldWalkable()

void duDebugDrawHeightfieldWalkable ( duDebugDraw dd,
const rcHeightfield hf 
)

◆ duDebugDrawPolyMesh()

void duDebugDrawPolyMesh ( duDebugDraw dd,
const struct rcPolyMesh mesh 
)

◆ duDebugDrawPolyMeshDetail()

void duDebugDrawPolyMeshDetail ( duDebugDraw dd,
const struct rcPolyMeshDetail dmesh 
)

◆ duDebugDrawRawContours()

void duDebugDrawRawContours ( duDebugDraw dd,
const rcContourSet cset,
const float  alpha 
)

◆ duDebugDrawRegionConnections()

void duDebugDrawRegionConnections ( duDebugDraw dd,
const rcContourSet cset,
const float  alpha 
)

◆ duDebugDrawTriMesh()

void duDebugDrawTriMesh ( duDebugDraw dd,
const float *  verts,
int  nverts,
const int *  tris,
const float *  normals,
int  ntris,
const unsigned char *  flags,
const float  texScale 
)

◆ duDebugDrawTriMeshSlope()

void duDebugDrawTriMeshSlope ( duDebugDraw dd,
const float *  verts,
int  nverts,
const int *  tris,
const float *  normals,
int  ntris,
const float  walkableSlopeAngle,
const float  texScale 
)

◆ findContourFromSet()

static const rcContour* findContourFromSet ( const rcContourSet cset,
unsigned short  reg 
)
static

◆ getContourCenter()

static void getContourCenter ( const rcContour cont,
const float *  orig,
float  cs,
float  ch,
float *  center 
)
static