Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

VertexDeclaration Class

A vertex declaration, which defines per-vertex data.

System.Object
  Microsoft.Xna.Framework.Graphics.GraphicsResource
    Microsoft.Xna.Framework.Graphics.VertexDeclaration

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)
'Declaration
Public Class VertexDeclaration _
	Inherits GraphicsResource

The VertexDeclaration type exposes the following members.

  NameDescription
Public methodVertexDeclaration(VertexElement())Initializes a new instance of the VertexDeclaration class.
Public methodVertexDeclaration(Int32, VertexElement())Initializes a new instance of the VertexDeclaration class.
Top
  NameDescription
Public propertyIsDisposedGets a value that indicates whether the object is disposed. (Inherited from GraphicsResource.)
Public propertyVertexStrideGets the number of bytes from one vertex to the next.
Top
  NameDescription
Public methodDisposeImmediately releases the unmanaged resources used by this object. (Inherited from GraphicsResource.)
Protected methodDispose(Boolean)Immediately releases the unmanaged resources used by this object. (Inherited from GraphicsResource.)
Protected methodFinalizeAllows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. (Inherited from GraphicsResource.)
Public methodGetVertexElementsGets the vertex shader declaration.
Top

Silverlight

Supported in: 5

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.