| DebugRendererDrawViewVolume Method (Boolean, Single, Single, Single, Single, Single, Single, Pose, Color, Boolean, Boolean) |
Draws a view volume (viewing frustum).
Namespace: DigitalRune.Graphics.RenderingAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public void DrawViewVolume(
bool isPerspective,
float left,
float right,
float bottom,
float top,
float near,
float far,
Pose pose,
Color color,
bool drawWireFrame,
bool drawOverScene
)
Public Sub DrawViewVolume (
isPerspective As Boolean,
left As Single,
right As Single,
bottom As Single,
top As Single,
near As Single,
far As Single,
pose As Pose,
color As Color,
drawWireFrame As Boolean,
drawOverScene As Boolean
)
public:
void DrawViewVolume(
bool isPerspective,
float left,
float right,
float bottom,
float top,
float near,
float far,
Pose pose,
Color color,
bool drawWireFrame,
bool drawOverScene
)
member DrawViewVolume :
isPerspective : bool *
left : float32 *
right : float32 *
bottom : float32 *
top : float32 *
near : float32 *
far : float32 *
pose : Pose *
color : Color *
drawWireFrame : bool *
drawOverScene : bool -> unit
Parameters
- isPerspective
- Type: SystemBoolean
for perspective view volumes, for
orthographic view volumes.
- left
- Type: SystemSingle
The minimum x-value of the view volume at the near clip plane. - right
- Type: SystemSingle
The maximum x-value of the view volume at the near clip plane. - bottom
- Type: SystemSingle
The minimum y-value of the view volume at the near clip plane. - top
- Type: SystemSingle
The maximum y-value of the view volume at the near clip plane. - near
- Type: SystemSingle
The distance to the near clip plane. - far
- Type: SystemSingle
The distance to the far clip plane. - 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