OpenGL debug draw implementation.
More...
#include <SampleInterfaces.h>
|
virtual void | depthMask (bool state) |
|
virtual void | texture (bool state) |
|
virtual void | begin (duDebugDrawPrimitives prim, float size=1.0f) |
| Begin drawing primitives. More...
|
|
virtual void | vertex (const float *pos, unsigned int color) |
| Submit a vertex. More...
|
|
virtual void | vertex (const float x, const float y, const float z, unsigned int color) |
| Submit a vertex. More...
|
|
virtual void | vertex (const float *pos, unsigned int color, const float *uv) |
| 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) |
| Submit a vertex. More...
|
|
virtual void | end () |
| End drawing primitives. More...
|
|
virtual | ~duDebugDraw ()=0 |
|
virtual unsigned int | areaToCol (unsigned int area) |
| Compute a color for given area. More...
|
|
OpenGL debug draw implementation.
◆ begin()
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 DebugDrawGL::depthMask |
( |
bool |
state | ) |
|
|
virtual |
◆ end()
void DebugDrawGL::end |
( |
| ) |
|
|
virtual |
◆ texture()
void DebugDrawGL::texture |
( |
bool |
state | ) |
|
|
virtual |
◆ vertex() [1/4]
void DebugDrawGL::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/4]
void DebugDrawGL::vertex |
( |
const float * |
pos, |
|
|
unsigned int |
color, |
|
|
const float * |
uv |
|
) |
| |
|
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. |
Implements duDebugDraw.
◆ vertex() [3/4]
void DebugDrawGL::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.
◆ vertex() [4/4]
void DebugDrawGL::vertex |
( |
const float |
x, |
|
|
const float |
y, |
|
|
const float |
z, |
|
|
unsigned int |
color, |
|
|
const float |
u, |
|
|
const float |
v |
|
) |
| |
|
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. |
Implements duDebugDraw.
The documentation for this class was generated from the following files: