VertexDeclaration Constructor (VertexElement )
Creates an instance of this object.
Syntax
'Declaration
Public Sub New ( _
elements As VertexElement() _
)
public VertexDeclaration (
params VertexElement[] elements
)
public:
VertexDeclaration(
params VertexElement elements[]
)
Parameters
- 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