Click or drag to resize
DigitalRuneDebugRendererDrawTriangles Method
Draws the triangles of the given mesh (with counter-clockwise winding for front faces).

Namespace: DigitalRune.Graphics.Rendering
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public void DrawTriangles(
	ITriangleMesh mesh,
	Pose pose,
	Vector3F scale,
	Color color,
	bool drawWireFrame,
	bool drawOverScene
)

Parameters

mesh
Type: DigitalRune.Geometry.MeshesITriangleMesh
The triangle mesh.
pose
Type: DigitalRune.GeometryPose
The pose.
scale
Type: DigitalRune.Mathematics.AlgebraVector3F
The scale.
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
ExceptionCondition
NotSupportedException Drawing solid objects with disabled depth test is not yet supported.
Remarks
Warning: Calling this method every frame to render the same triangle mesh is very inefficient! If the triangle mesh does not change, call DrawShape(Shape, Pose, Vector3F, Color, Boolean, Boolean) with a TriangleMeshShape instead!
See Also