VertexElement Constructor
Initializes a new instance of the VertexElement class.
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
)
public:
VertexElement(
int offset,
VertexElementFormat elementFormat,
VertexElementUsage elementUsage,
int usageIndex
)
Parameters
- offset
Type: Int32
Offset (if any) from the beginning of the stream to the beginning of the vertex data. - elementFormat
Type: VertexElementFormat
One of several predefined types that define the vertex data size. - elementUsage
Type: VertexElementUsage
The intended use of the vertex data. - usageIndex
Type: 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.
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
VertexElement Structure
VertexElement Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone