class
DebugDraw
Provides an easy access to draw basic 2D and 3D shapes, primarily meant for debugging purposes.
Public
Constructors
DebugDraw
Methods
~DebugDraw
SetTransform
Changes the transform that will be applied to meshes of any further draw calls.
DrawCube
Draws an axis aligned cuboid.
- position
- Center of the cuboid.
- extents
- Radius of the cuboid in each axis.
DrawSphere
Draws a sphere.
DrawCone
Draws a solid cone.
- base
- Position of the center of the base of the cone.
- normal
- Orientation of the cone, pointing from center base to the tip of the cone.
- height
- Height of the cone (along the normal).
- radius
- Radius of the base of the cone.
- scale
- Scale applied to cone's disc width & height. Allows you to create elliptical cones.
DrawDisc
Draws a solid disc.
- position
- Center of the disc.
- normal
- Orientation of the disc, pointing in the direction the disc is visible in.
- radius
- Radius of the disc.
DrawWireCube
Draws a wireframe axis aligned cuboid.
- position
- Center of the cuboid.
- extents
- Radius of the cuboid in each axis.
DrawWireSphere
Draws a wireframe sphere represented by three discs.
DrawWireCone
Draws a wireframe cone.
- base
- Position of the center of the base of the cone.
- normal
- Orientation of the cone, pointing from center base to the tip of the cone.
- height
- Height of the cone (along the normal).
- radius
- Radius of the base of the cone.
- scale
- Scale applied to cone's disc width & height. Allows you to create elliptical cones.
DrawLine
Draws a line between two points.
DrawLineList
Draws a list of lines.
Provided array must contain pairs of the line start point followed by an end point.
DrawWireDisc
Draws a wireframe disc.
- position
- Center of the disc.
- normal
- Orientation of the disc, pointing in the direction the disc is visible in.
- radius
- Radius of the disc.
DrawWireArc
Draws a wireframe arc.
- position
- Center of the arc.
- normal
- Orientation of the arc, pointing in the direction the arc is visible in.
- radius
- Radius of the arc.
- startAngle
- Angle at which to start the arc.
- amountAngle
- Length of the arc.
DrawWireMesh
Draws a wireframe mesh.
- meshData
- Object containing mesh vertices and indices. Vertices must be Vertex3 and indices 32-bit.
DrawFrustum
Draws a wireframe frustum.
- position
- Origin of the frustum, or the eye point.
- aspect
- Ratio of frustum width over frustum height.
- FOV
- Horizontal field of view in degrees.
- near
- Distance to the near frustum plane.
- far
- Distance to the far frustum plane.
Clear
Clears any objects that are currently drawing.
All objects must be re-queued.
UpdateInternal
Performs per-frame operations.
staticInstance
Returns a reference to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticInstancePtr
Returns a pointer to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticShutDown
Shuts down this module and frees any resources it is using.
staticIsStarted
Query if the module has been started.
Protected
Methods
~Module<T>
OnStartUp
Override if you want your module to be notified once it has been constructed and started.
OnShutDown
Override if you want your module to be notified just before it is deleted.
staticInstanceInternal
Returns a singleton instance of this module.
Private
Methods
CreateMeshProxyData
Converts mesh data from DrawHelper into mesh data usable by the debug draw renderer.