| DebugRendererDrawTriangle Method (Vector3F, Vector3F, Vector3F, Color, Boolean, Boolean) |
Draws a triangle (with counter-clockwise winding for front faces).
Namespace: DigitalRune.Graphics.RenderingAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public void DrawTriangle(
Vector3F vertex0,
Vector3F vertex1,
Vector3F vertex2,
Color color,
bool drawWireFrame,
bool drawOverScene
)
Public Sub DrawTriangle (
vertex0 As Vector3F,
vertex1 As Vector3F,
vertex2 As Vector3F,
color As Color,
drawWireFrame As Boolean,
drawOverScene As Boolean
)
public:
void DrawTriangle(
Vector3F vertex0,
Vector3F vertex1,
Vector3F vertex2,
Color color,
bool drawWireFrame,
bool drawOverScene
)
member DrawTriangle :
vertex0 : Vector3F *
vertex1 : Vector3F *
vertex2 : Vector3F *
color : Color *
drawWireFrame : bool *
drawOverScene : bool -> unit
Parameters
- vertex0
- Type: DigitalRune.Mathematics.AlgebraVector3F
The first vertex position in world space. - vertex1
- Type: DigitalRune.Mathematics.AlgebraVector3F
The second vertex position in world space. - vertex2
- Type: DigitalRune.Mathematics.AlgebraVector3F
The third vertex position in world space. - color
- Type: Color
The color. - drawWireFrame
- Type: SystemBoolean
If set to the wire-frame is drawn; otherwise the object 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