Export (0) Print
Expand All

GraphicsDevice.DrawPrimitives Method

Renders a sequence of non-indexed geometric primitives of the specified type from the current set of data input streams.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

'Declaration
Public MustOverride Sub DrawPrimitives ( _
	primitiveType As PrimitiveType, _
	startVertex As Integer, _
	primitiveCount As Integer _
)

Parameters

primitiveType
Type: Microsoft.Xna.Framework.Graphics.PrimitiveType
Describes the type of primitive to render.
startVertex
Type: System.Int32
Index of the first vertex to load. Beginning at startVertex, the correct number of vertices is read out of the vertex buffer.
primitiveCount
Type: System.Int32
Number of primitives to render. The primitiveCount is the number of primitives as determined by the primitive type. If it is a line list, each primitive has two vertices. If it is a triangle list, each primitive has three vertices.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft