Draws debug graphics such as lines, points, bounding volumes, axis, etc.
More...
#include <DebugGraphics.hpp>
|
bool | fetchMaterial () |
|
void | removeDeadShapes () |
|
Draws debug graphics such as lines, points, bounding volumes, axis, etc.
Add a 3D circle shape to be rendered.
- Parameters
-
[in] | center | Center of the circle in world coordinates. |
[in] | radius | Radius of the circle in units. |
[in] | normal | Normal of the circle's surface. |
[in] | color | Color of the circle. |
[in] | segments | Number of individual segments that comprise the circle. Minimum of 3. |
[in] | lifetime | Length of time (in milliseconds) the line should be drawn. Lifetime of 0 indicates the line will persist forever. |
Adds a line shape to be rendered.
- Parameters
-
[in] | start | Line starting point in world coordinates |
[in] | stop | Line stopping point in world coordinates |
[in] | color | Line color |
[in] | lifetime | Length of time (in milliseconds) the line should be drawn. Lifetime of 0 indicates the line will persist forever. |
void Ocular::Graphics::Debug::render |
( |
| ) |
|
Renders all shapes that are alive.
The documentation for this class was generated from the following files:
- C:/Projects/OcularEngine/OcularCore/include/Graphics/DebugGraphics/DebugGraphics.hpp
- C:/Projects/OcularEngine/OcularCore/src/Graphics/DebugGraphics/DebugGraphics.cpp