다음을 통해 공유


VertexElement Constructor

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Initializes a new instance of the VertexElement class.

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

Syntax

'Declaration
Public Sub New ( _
    offset As Integer, _
    elementFormat As VertexElementFormat, _
    elementUsage As VertexElementUsage, _
    usageIndex As Integer _
)
public VertexElement(
    int offset,
    VertexElementFormat elementFormat,
    VertexElementUsage elementUsage,
    int usageIndex
)

Parameters

  • offset
    Type: System.Int32
    Offset (if any) from the beginning of the stream to the beginning of the vertex data.
  • usageIndex
    Type: System.Int32
    Modifies the usage data to allow the user to specify multiple usage types.

Remarks

Vertex data is defined using an array of VertexElement structures.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.