Recast Navigation
Navigation-mesh Toolset for Games
DebugDraw.h File Reference

Go to the source code of this file.

Classes

struct  duDebugDraw
 Abstract debug draw interface. More...
 
class  duDisplayList
 

Enumerations

enum  duDebugDrawPrimitives { DU_DRAW_POINTS , DU_DRAW_LINES , DU_DRAW_TRIS , DU_DRAW_QUADS }
 

Functions

unsigned int duRGBA (int r, int g, int b, int a)
 
unsigned int duRGBAf (float fr, float fg, float fb, float fa)
 
unsigned int duIntToCol (int i, int a)
 
void duIntToCol (int i, float *col)
 
unsigned int duMultCol (const unsigned int col, const unsigned int d)
 
unsigned int duDarkenCol (unsigned int col)
 
unsigned int duLerpCol (unsigned int ca, unsigned int cb, unsigned int u)
 
unsigned int duTransCol (unsigned int c, unsigned int a)
 
void duCalcBoxColors (unsigned int *colors, unsigned int colTop, unsigned int colSide)
 
void duDebugDrawCylinderWire (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, unsigned int col, const float lineWidth)
 
void duDebugDrawBoxWire (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, unsigned int col, const float lineWidth)
 
void duDebugDrawArc (struct duDebugDraw *dd, const float x0, const float y0, const float z0, const float x1, const float y1, const float z1, const float h, const float as0, const float as1, unsigned int col, const float lineWidth)
 
void duDebugDrawArrow (struct duDebugDraw *dd, const float x0, const float y0, const float z0, const float x1, const float y1, const float z1, const float as0, const float as1, unsigned int col, const float lineWidth)
 
void duDebugDrawCircle (struct duDebugDraw *dd, const float x, const float y, const float z, const float r, unsigned int col, const float lineWidth)
 
void duDebugDrawCross (struct duDebugDraw *dd, const float x, const float y, const float z, const float size, unsigned int col, const float lineWidth)
 
void duDebugDrawBox (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, const unsigned int *fcol)
 
void duDebugDrawCylinder (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, unsigned int col)
 
void duDebugDrawGridXZ (struct duDebugDraw *dd, const float ox, const float oy, const float oz, const int w, const int h, const float size, const unsigned int col, const float lineWidth)
 
void duAppendCylinderWire (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, unsigned int col)
 
void duAppendBoxWire (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, unsigned int col)
 
void duAppendBoxPoints (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, unsigned int col)
 
void duAppendArc (struct duDebugDraw *dd, const float x0, const float y0, const float z0, const float x1, const float y1, const float z1, const float h, const float as0, const float as1, unsigned int col)
 
void duAppendArrow (struct duDebugDraw *dd, const float x0, const float y0, const float z0, const float x1, const float y1, const float z1, const float as0, const float as1, unsigned int col)
 
void duAppendCircle (struct duDebugDraw *dd, const float x, const float y, const float z, const float r, unsigned int col)
 
void duAppendCross (struct duDebugDraw *dd, const float x, const float y, const float z, const float size, unsigned int col)
 
void duAppendBox (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, const unsigned int *fcol)
 
void duAppendCylinder (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, unsigned int col)
 

Variables

static const float DU_PI = 3.14159265f
 

Enumeration Type Documentation

◆ duDebugDrawPrimitives

Enumerator
DU_DRAW_POINTS 
DU_DRAW_LINES 
DU_DRAW_TRIS 
DU_DRAW_QUADS 

Function Documentation

◆ duAppendArc()

void duAppendArc ( struct duDebugDraw dd,
const float  x0,
const float  y0,
const float  z0,
const float  x1,
const float  y1,
const float  z1,
const float  h,
const float  as0,
const float  as1,
unsigned int  col 
)

◆ duAppendArrow()

void duAppendArrow ( struct duDebugDraw dd,
const float  x0,
const float  y0,
const float  z0,
const float  x1,
const float  y1,
const float  z1,
const float  as0,
const float  as1,
unsigned int  col 
)

◆ duAppendBox()

void duAppendBox ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
const unsigned int *  fcol 
)

◆ duAppendBoxPoints()

void duAppendBoxPoints ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
unsigned int  col 
)

◆ duAppendBoxWire()

void duAppendBoxWire ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
unsigned int  col 
)

◆ duAppendCircle()

void duAppendCircle ( struct duDebugDraw dd,
const float  x,
const float  y,
const float  z,
const float  r,
unsigned int  col 
)

◆ duAppendCross()

void duAppendCross ( struct duDebugDraw dd,
const float  x,
const float  y,
const float  z,
const float  size,
unsigned int  col 
)

◆ duAppendCylinder()

void duAppendCylinder ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
unsigned int  col 
)

◆ duAppendCylinderWire()

void duAppendCylinderWire ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
unsigned int  col 
)

◆ duCalcBoxColors()

void duCalcBoxColors ( unsigned int *  colors,
unsigned int  colTop,
unsigned int  colSide 
)

◆ duDarkenCol()

unsigned int duDarkenCol ( unsigned int  col)
inline

◆ duDebugDrawArc()

void duDebugDrawArc ( struct duDebugDraw dd,
const float  x0,
const float  y0,
const float  z0,
const float  x1,
const float  y1,
const float  z1,
const float  h,
const float  as0,
const float  as1,
unsigned int  col,
const float  lineWidth 
)

◆ duDebugDrawArrow()

void duDebugDrawArrow ( struct duDebugDraw dd,
const float  x0,
const float  y0,
const float  z0,
const float  x1,
const float  y1,
const float  z1,
const float  as0,
const float  as1,
unsigned int  col,
const float  lineWidth 
)

◆ duDebugDrawBox()

void duDebugDrawBox ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
const unsigned int *  fcol 
)

◆ duDebugDrawBoxWire()

void duDebugDrawBoxWire ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
unsigned int  col,
const float  lineWidth 
)

◆ duDebugDrawCircle()

void duDebugDrawCircle ( struct duDebugDraw dd,
const float  x,
const float  y,
const float  z,
const float  r,
unsigned int  col,
const float  lineWidth 
)

◆ duDebugDrawCross()

void duDebugDrawCross ( struct duDebugDraw dd,
const float  x,
const float  y,
const float  z,
const float  size,
unsigned int  col,
const float  lineWidth 
)

◆ duDebugDrawCylinder()

void duDebugDrawCylinder ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
unsigned int  col 
)

◆ duDebugDrawCylinderWire()

void duDebugDrawCylinderWire ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
unsigned int  col,
const float  lineWidth 
)

◆ duDebugDrawGridXZ()

void duDebugDrawGridXZ ( struct duDebugDraw dd,
const float  ox,
const float  oy,
const float  oz,
const int  w,
const int  h,
const float  size,
const unsigned int  col,
const float  lineWidth 
)

◆ duIntToCol() [1/2]

void duIntToCol ( int  i,
float *  col 
)

◆ duIntToCol() [2/2]

unsigned int duIntToCol ( int  i,
int  a 
)

◆ duLerpCol()

unsigned int duLerpCol ( unsigned int  ca,
unsigned int  cb,
unsigned int  u 
)
inline

◆ duMultCol()

unsigned int duMultCol ( const unsigned int  col,
const unsigned int  d 
)
inline

◆ duRGBA()

unsigned int duRGBA ( int  r,
int  g,
int  b,
int  a 
)
inline

◆ duRGBAf()

unsigned int duRGBAf ( float  fr,
float  fg,
float  fb,
float  fa 
)
inline

◆ duTransCol()

unsigned int duTransCol ( unsigned int  c,
unsigned int  a 
)
inline

Variable Documentation

◆ DU_PI

const float DU_PI = 3.14159265f
static