VertexDeclaration Constructor (Int32, VertexElement[])

Initializes a new instance of the VertexDeclaration class.

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

public VertexDeclaration(
	int vertexStride,
	params VertexElement[] elements
)

Parameters

vertexStride
Type: System.Int32
The number of bytes per element.
elements
Type: Microsoft.Xna.Framework.Graphics.VertexElement[]
An array of per-vertex elements.

Silverlight

Supported in: 5

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

Community Additions

ADD
Show: