This documentation is archived and is not being maintained.

GraphicsDevice.Vertices Property

Gets the vertex stream collection.

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

public VertexStreamCollection Vertices { get; }

Property Value

The vertex stream collection.

The vertex stream of the graphics device must be set before any call to DrawPrimitives. The following example associates a user created vertex buffer of type VertexPositionNormalTexture with vertex stream 0 (zero) of the graphics device.

    vertexBuffer, 0,

Xbox 360, Windows XP SP2, Windows Vista