Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an instance of this object.
Syntax
'Declaration
Public Sub New ( _
vertexStride As Integer, _
elements As VertexElement() _
)
public VertexDeclaration (
int vertexStride,
params VertexElement[] elements
)
public:
VertexDeclaration(
int vertexStride,
params VertexElement elements[]
)
Parameters
- vertexStride
Type: Int32
The number of bytes per element. - elements
Type: VertexElement
[ParamArrayAttribute] An array of per-vertex elements.
Exceptions
Exception type | Condition |
---|---|
NotSupportedException | One or more of the following is true:
|
OutOfMemoryException | There is not enough memory to create this resource. |
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
VertexDeclaration Class
VertexDeclaration Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone