Share via


VertexElement Constructor

Initializes a new instance of the VertexElement class.

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

Syntax

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.

Remarks

Vertex data is defined using an array of VertexElement structures.

See Also

Reference

VertexElement Structure
VertexElement Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista