Planeshift
Classes | Enumerations | Functions | Variables

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

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 duAppendBox (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, const unsigned int *fcol)
void duAppendBoxPoints (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 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 duAppendCylinder (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, unsigned int col)
void duAppendCylinderWire (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, unsigned int col)
void duCalcBoxColors (unsigned int *colors, unsigned int colTop, unsigned int colSide)
unsigned int duDarkenCol (unsigned int col)
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 duDebugDrawBox (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, const unsigned int *fcol)
void duDebugDrawBoxWire (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, 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 duDebugDrawCylinder (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, unsigned int col)
void duDebugDrawCylinderWire (struct duDebugDraw *dd, float minx, float miny, float minz, float maxx, float maxy, float maxz, unsigned int col, const float lineWidth)
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 duIntToCol (int i, float *col)
unsigned int duIntToCol (int i, int a)
unsigned int duLerpCol (unsigned int ca, unsigned int cb, unsigned int u)
unsigned int duMultCol (const unsigned int col, const unsigned int d)
unsigned int duRGBA (int r, int g, int b, int a)
unsigned int duRGBAf (float fr, float fg, float fb, float fa)
unsigned int duTransCol (unsigned int c, unsigned int a)

Variables

static const float DU_PI = 3.14159265f

Enumeration Type Documentation

Enumerator:
DU_DRAW_POINTS 
DU_DRAW_LINES 
DU_DRAW_TRIS 
DU_DRAW_QUADS 

Definition at line 25 of file DebugDraw.h.


Function Documentation

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 duAppendBox ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
const unsigned int fcol 
)
void duAppendBoxPoints ( 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 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 duAppendCylinder ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
unsigned int  col 
)
void duAppendCylinderWire ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
unsigned int  col 
)
void duCalcBoxColors ( unsigned int colors,
unsigned int  colTop,
unsigned int  colSide 
)
unsigned int duDarkenCol ( unsigned int  col) [inline]

Definition at line 97 of file DebugDraw.h.

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 duDebugDrawBox ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
const unsigned int fcol 
)
void duDebugDrawBoxWire ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
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 duDebugDrawCylinder ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
unsigned int  col 
)
void duDebugDrawCylinderWire ( struct duDebugDraw dd,
float  minx,
float  miny,
float  minz,
float  maxx,
float  maxy,
float  maxz,
unsigned int  col,
const float  lineWidth 
)
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 duIntToCol ( int  i,
float col 
)
unsigned int duIntToCol ( int  i,
int  a 
)
unsigned int duLerpCol ( unsigned int  ca,
unsigned int  cb,
unsigned int  u 
) [inline]

Definition at line 102 of file DebugDraw.h.

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

Definition at line 88 of file DebugDraw.h.

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

Definition at line 71 of file DebugDraw.h.

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

Definition at line 76 of file DebugDraw.h.

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

Definition at line 120 of file DebugDraw.h.


Variable Documentation

const float DU_PI = 3.14159265f [static]

Definition at line 23 of file DebugDraw.h.