Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
VertexElement Constructor
Collapse the table of content
Expand the table of content

VertexElement Constructor

Initializes a new instance of the VertexElement class.

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

public VertexElement (
         int offset,
         VertexElementFormat elementFormat,
         VertexElementUsage elementUsage,
         int usageIndex


Type: Int32
Offset (if any) from the beginning of the stream to the beginning of the vertex data.
Type: VertexElementFormat
One of several predefined types that define the vertex data size.
Type: VertexElementUsage
The intended use of the vertex data.
Type: Int32
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 7, Windows Vista, Windows XP

Community Additions

© 2015 Microsoft