| DebugRendererDrawBox Method |
Draws a box.
Namespace: DigitalRune.Graphics.RenderingAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public void DrawBox(
float widthX,
float widthY,
float widthZ,
Pose pose,
Color color,
bool drawWireFrame,
bool drawOverScene
)
Public Sub DrawBox (
widthX As Single,
widthY As Single,
widthZ As Single,
pose As Pose,
color As Color,
drawWireFrame As Boolean,
drawOverScene As Boolean
)
public:
void DrawBox(
float widthX,
float widthY,
float widthZ,
Pose pose,
Color color,
bool drawWireFrame,
bool drawOverScene
)
member DrawBox :
widthX : float32 *
widthY : float32 *
widthZ : float32 *
pose : Pose *
color : Color *
drawWireFrame : bool *
drawOverScene : bool -> unit
Parameters
- widthX
- Type: SystemSingle
The x-size of the box. - widthY
- Type: SystemSingle
The y-size of the box. - widthZ
- Type: SystemSingle
The z-size of the box. - pose
- Type: DigitalRune.GeometryPose
The pose. - color
- Type: Color
The color. - drawWireFrame
- Type: SystemBoolean
If set to the wire-frame is drawn; otherwise the mesh is drawn with
solid faces.
- drawOverScene
- Type: SystemBoolean
If set to the object is drawn over the graphics scene (depth-test
disabled).
Exceptions Exception | Condition |
---|
NotSupportedException |
Drawing solid objects with disabled depth test is not yet supported.
|
See Also