Recast Navigation
Navigation-mesh Toolset for Games
DebugDraw.cpp File Reference
#include <string.h>
#include "DebugDraw.h"
#include "DetourMath.h"
#include "DetourNavMesh.h"

Functions

int bit (int a, int b)
 
unsigned int duIntToCol (int i, int a)
 
void duIntToCol (int i, float *col)
 
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 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)
 
void evalArc (const float x0, const float y0, const float z0, const float dx, const float dy, const float dz, const float h, const float u, float *res)
 
void vcross (float *dest, const float *v1, const float *v2)
 
void vnormalize (float *v)
 
void vsub (float *dest, const float *v1, const float *v2)
 
float vdistSqr (const float *v1, const float *v2)
 
void appendArrowHead (struct duDebugDraw *dd, const float *p, const float *q, const float s, 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 s, unsigned int col)
 

Function Documentation

◆ appendArrowHead()

void appendArrowHead ( struct duDebugDraw dd,
const float *  p,
const float *  q,
const float  s,
unsigned int  col 
)

◆ bit()

int bit ( int  a,
int  b 
)
inline

◆ 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  s,
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 
)

◆ 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 
)

◆ evalArc()

void evalArc ( const float  x0,
const float  y0,
const float  z0,
const float  dx,
const float  dy,
const float  dz,
const float  h,
const float  u,
float *  res 
)
inline

◆ vcross()

void vcross ( float *  dest,
const float *  v1,
const float *  v2 
)
inline

◆ vdistSqr()

float vdistSqr ( const float *  v1,
const float *  v2 
)
inline

◆ vnormalize()

void vnormalize ( float *  v)
inline

◆ vsub()

void vsub ( float *  dest,
const float *  v1,
const float *  v2 
)
inline