RavEngine
Loading...
Searching...
No Matches
duDisplayList Class Reference
Inheritance diagram for duDisplayList:
[legend]
Collaboration diagram for duDisplayList:
[legend]

Public Member Functions

 duDisplayList (int cap=512)
 
virtual void depthMask (bool state)
 
virtual void begin (duDebugDrawPrimitives prim, float size=1.0f)
 
virtual void vertex (const float x, const float y, const float z, unsigned int color)
 
virtual void vertex (const float *pos, unsigned int color)
 
virtual void end ()
 End drawing primitives.
 
void clear ()
 
void draw (struct duDebugDraw *dd)
 
- Public Member Functions inherited from duDebugDraw
virtual void texture (bool state)=0
 
virtual void vertex (const float *pos, unsigned int color, const float *uv)=0
 
virtual void vertex (const float x, const float y, const float z, unsigned int color, const float u, const float v)=0
 
virtual unsigned int areaToCol (unsigned int area)
 Compute a color for given area.
 

Member Function Documentation

◆ begin()

void duDisplayList::begin ( duDebugDrawPrimitives  prim,
float  size = 1.0f 
)
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.

Implements duDebugDraw.

◆ depthMask()

void duDisplayList::depthMask ( bool  state)
virtual

Implements duDebugDraw.

◆ end()

void duDisplayList::end ( )
virtual

End drawing primitives.

Implements duDebugDraw.

◆ vertex() [1/2]

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

Submit a vertex

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

Implements duDebugDraw.

◆ vertex() [2/2]

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

Submit a vertex

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

Implements duDebugDraw.


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