Click or drag to resize
DigitalRuneMeshHelperDraw Method
Draws the Submesh using the currently active shader.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static void Draw(
	this Submesh submesh
)

Parameters

submesh
Type: DigitalRune.GraphicsSubmesh
The submesh.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Submesh. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionsubmesh is .
Remarks
This method sets the VertexDeclaration, VertexBuffer, and IndexBuffer of the submesh and calls DrawIndexedPrimitives(PrimitiveType, Int32, Int32, Int32, Int32, Int32). Effects are not handled in this method. The method assumes that the correct shader effect is already active.
See Also