Export (0) Print
Expand All

VertexElement Constructor

Initializes a new instance of the VertexElement class.

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

public VertexElement (
         short stream,
         short offset,
         VertexElementFormat elementFormat,
         VertexElementMethod elementMethod,
         VertexElementUsage elementUsage,
         byte usageIndex
)

Parameters

stream
Stream number (or index) to use.
offset
Offset (if any) from the beginning of the stream to the beginning of the vertex data.
elementFormat
One of several predefined types that define the vertex data size.
elementMethod
The tessellator processing method. These methods determine how the tessellator interprets/operates on the vertex data.
elementUsage
The intended use of the vertex data.
usageIndex
Modifies the usage data to allow the user to specify multiple usage types.

Vertex data is defined using an array of VertexElement structures.

Xbox 360, Windows XP SP2, Windows Vista

Show:
© 2014 Microsoft