class
SceneHandleDrawing
Allows you to easily draw various kinds of simple shapes, primarily used for drawing handles in the scene view.
All draw commands are recorded in the SceneHandles object that is provided to the BeginDraw() method.
Public
Constructors
SceneHandleDrawing
Methods
EndDraw
Ends drawing a scene handle.
SetTransform
Sets the transform matrix that will be applied to all following Draw* calls.
SetLayer
Sets the layer bitfield that controls whether a handle is considered visible in a specific camera.
Handle layer must match camera layer in order for the camera to render it
DrawCube
Draws a solid cuboid.
- position
- Center of the cuboid.
- extents
- Radius of the cuboid in all directions.
- size
- Uniform scale of the object.
DrawSphere
Draws a solid sphere.
- position
- Center of the sphere.
- radius
- Radius of the sphere.
- size
- Uniform scale of the object.
DrawWireCube
Draws a wireframe cuboid.
- position
- Center of the cuboid.
- extents
- Radius of the cuboid in all directions.
- size
- Uniform scale of the object.
DrawWireSphere
Draws a wireframe sphere.
- position
- Center of the sphere.
- radius
- Radius of the sphere.
- size
- Uniform scale of the object.
DrawCone
Draws a solid cone.
- baseCenter
- 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.
- size
- Uniform scale of the object.
DrawLine
Draws a line.
- start
- Starting point for the line.
- end
- Ending point for the line.
- size
- Uniform scale of the object.
DrawDisc
Draws a double-sided 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.
- size
- Uniform scale of the object.
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.
- size
- Uniform scale of the object.
DrawArc
Draws a double-sided solid 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.
- size
- Uniform scale of the object.
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.
- size
- Uniform scale of the object.
DrawRect
Draws a double-sided solid rectangle.
- area
- Position and size of the rectangle.
- size
- Uniform scale of the object.
DrawText
Draws a mesh representing 2D text with the specified properties.
- position
- Position to render the text at. Text will be centered around this point.
- text
- Text to draw.
- font
- Font to use for rendering the text's characters.
- fontSize
- Size of the characters, in points.
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.