IndexBuffer Class
TOC
Collapse the table of content
Expand the table of content

IndexBuffer Class

Describes the rendering order of the vertices in a vertex buffer.

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

public class IndexBuffer : GraphicsResource

The IndexBuffer type exposes the following members.

  NameDescription
Public methodIndexBuffer(GraphicsDevice, IndexElementSize, Int32, BufferUsage)Initializes a new instance of the IndexBuffer class.
Public methodIndexBuffer(GraphicsDevice, Type, Int32, BufferUsage)Initializes a new instance of the IndexBuffer class.
Top

  NameDescription
Public propertyBufferUsageGets the state of the related BufferUsage enumeration.
Public propertyIndexCountGets the number of indices in this buffer.
Public propertyIndexElementSizeGets a value indicating the size of this index element.
Public propertyIsDisposedGets a value that indicates whether the object is disposed. (Inherited from GraphicsResource.)
Top

  NameDescription
Public methodDispose()Immediately 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 methodSetData<T>(T[])Sets index buffer data.
Public methodSetData<T>(T[], Int32, Int32)Sets index buffer data, specifying the start index and number of elements.
Public methodSetData<T>(Int32, T[], Int32, Int32)Sets index buffer data, specifying the offset, start index and number of elements.
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.

Community Additions

ADD
Show:
© 2016 Microsoft