Draws debug primitives.
More...
#include <DebugDrawing.hpp>
◆ DebugDrawing()
| DebugDrawing::DebugDrawing |
( |
Renderer * |
renderer | ) |
|
|
explicit |
Create new debug primitive renderer.
- Parameters
-
| renderer | The renderer to use. |
◆ ~DebugDrawing()
| DebugDrawing::~DebugDrawing |
( |
| ) |
|
◆ DrawCircle()
| void DebugDrawing::DrawCircle |
( |
const Circle & |
circle | ) |
|
Draw a circle.
- Parameters
-
| circle | The circle to draw. |
◆ DrawCone()
| void DebugDrawing::DrawCone |
( |
const Cone & |
cone | ) |
|
◆ DrawCuboid()
| void DebugDrawing::DrawCuboid |
( |
const Cuboid & |
cuboid | ) |
|
Draw a cuboid.
- Parameters
-
| cuboid | The cuboid to draw. |
◆ DrawCylinder()
| void DebugDrawing::DrawCylinder |
( |
const Cylinder & |
cylinder | ) |
|
Draw a cylinder.
- Parameters
-
| cylinder | The cylinder to draw. |
◆ DrawLine()
| void DebugDrawing::DrawLine |
( |
const Line & |
line | ) |
|
◆ DrawMesh()
| void DebugDrawing::DrawMesh |
( |
const Mesh & |
mesh | ) |
|
◆ DrawPlane()
| void DebugDrawing::DrawPlane |
( |
const Plane & |
plane | ) |
|
◆ DrawPoint()
| void DebugDrawing::DrawPoint |
( |
const Point & |
point | ) |
|
◆ DrawSphere()
| void DebugDrawing::DrawSphere |
( |
const Sphere & |
sphere | ) |
|
Draw a sphere.
- Parameters
-
| sphere | The sphere to draw. |
◆ EndDebugDrawing()
| void DebugDrawing::EndDebugDrawing |
( |
| ) |
|
◆ StartDebugDrawing()
| void DebugDrawing::StartDebugDrawing |
( |
CommandBuffer * |
commandBuffer, |
|
|
const glm::mat4 & |
viewProjectionMatrix |
|
) |
| |
Start rendering debug primitives.
Needs to be called before DrawPoint, DrawLine or DrawCuboid.
- Parameters
-
| commandBuffer | Command buffer to use for drawing. |
| viewProjectionMatrix | The camera's view projection matrix. |
The documentation for this class was generated from the following files: