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