XNA Game Studio 4.0
Renders a sequence of non-indexed geometric primitives of the specified type from the current set of data input streams.
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
public void DrawPrimitives ( PrimitiveType primitiveType, int startVertex, int primitiveCount )
- Describes the type of primitive to render.
- Index of the first vertex to load. Beginning at startVertex, the correct number of vertices is read out of the vertex buffer.
- 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.
|ArgumentOutOfRangeException||primitiveCount is less than or equal to zero. When drawing, at least one primitive must be drawn.|
One of the following conditions is true: