Recast Navigation
Navigation-mesh Toolset for Games
duDebugDraw Struct Referenceabstract

Abstract debug draw interface. More...

#include <DebugDraw.h>

Inheritance diagram for duDebugDraw:
DebugDrawGL duDisplayList SampleDebugDraw

Public Member Functions

virtual ~duDebugDraw ()=0
 
virtual void depthMask (bool state)=0
 
virtual void texture (bool state)=0
 
virtual void begin (duDebugDrawPrimitives prim, float size=1.0f)=0
 Begin drawing primitives. More...
 
virtual void vertex (const float *pos, unsigned int color)=0
 Submit a vertex. More...
 
virtual void vertex (const float x, const float y, const float z, unsigned int color)=0
 Submit a vertex. More...
 
virtual void vertex (const float *pos, unsigned int color, const float *uv)=0
 Submit a vertex. More...
 
virtual void vertex (const float x, const float y, const float z, unsigned int color, const float u, const float v)=0
 Submit a vertex. More...
 
virtual void end ()=0
 End drawing primitives. More...
 
virtual unsigned int areaToCol (unsigned int area)
 Compute a color for given area. More...
 

Description

Abstract debug draw interface.

Constructor & Destructor Documentation

◆ ~duDebugDraw()

duDebugDraw::~duDebugDraw ( )
pure virtual

Member Function Documentation

◆ areaToCol()

unsigned int duDebugDraw::areaToCol ( unsigned int  area)
virtual

Compute a color for given area.

Reimplemented in SampleDebugDraw.

◆ begin()

virtual void duDebugDraw::begin ( duDebugDrawPrimitives  prim,
float  size = 1.0f 
)
pure virtual

Begin drawing primitives.

Parameters
prim[in] primitive type to draw, one of rcDebugDrawPrimitives.
size[in] size of a primitive, applies to point size and line width only.

Implemented in DebugDrawGL, and duDisplayList.

◆ depthMask()

virtual void duDebugDraw::depthMask ( bool  state)
pure virtual

Implemented in DebugDrawGL, and duDisplayList.

◆ end()

virtual void duDebugDraw::end ( )
pure virtual

End drawing primitives.

Implemented in DebugDrawGL, and duDisplayList.

◆ texture()

virtual void duDebugDraw::texture ( bool  state)
pure virtual

Implemented in DebugDrawGL.

◆ vertex() [1/4]

virtual void duDebugDraw::vertex ( const float *  pos,
unsigned int  color 
)
pure virtual

Submit a vertex.

Parameters
pos[in] position of the verts.
color[in] color of the verts.

Implemented in DebugDrawGL, and duDisplayList.

◆ vertex() [2/4]

virtual void duDebugDraw::vertex ( const float *  pos,
unsigned int  color,
const float *  uv 
)
pure virtual

Submit a vertex.

Parameters
pos[in] position of the verts.
color[in] color of the verts.
uv[in] the uv coordinates of the verts.

Implemented in DebugDrawGL.

◆ vertex() [3/4]

virtual void duDebugDraw::vertex ( const float  x,
const float  y,
const float  z,
unsigned int  color 
)
pure virtual

Submit a vertex.

Parameters
x,y,z[in] position of the verts.
color[in] color of the verts.

Implemented in DebugDrawGL, and duDisplayList.

◆ vertex() [4/4]

virtual void duDebugDraw::vertex ( const float  x,
const float  y,
const float  z,
unsigned int  color,
const float  u,
const float  v 
)
pure virtual

Submit a vertex.

Parameters
x,y,z[in] position of the verts.
color[in] color of the verts.
u,v[in] the uv coordinates of the verts.

Implemented in DebugDrawGL.


The documentation for this struct was generated from the following files: