Tesla Graphics Engine Documentation (January 2012)
IndexBuffer Class
TeslaTesla.GraphicsIndexBuffer
Represents the indices of vertices in a vertex buffer. This allows for vertex data to be re-used, if duplicate vertices exists which allows for a smaller vertex buffer (thus saving space).
Declaration Syntax
C#
public class IndexBuffer : GraphicsResource, 
	ISavable
Members
All Members Constructors Methods Properties



Icon Member Description
IndexBuffer()()()()
For ISavable.

IndexBuffer(IndexFormat, Int32, ResourceUsage)
Creates a new instance of IndexBuffer.

IndexBuffer(DataBuffer<(Of <<'(Int32>)>>), ResourceUsage)
Creates a new instance of IndexBuffer.

IndexBuffer(DataBuffer<(Of <<'(Int16>)>>), ResourceUsage)
Creates a new instance of IndexBuffer.

IndexBuffer(IRenderSystemProvider, IndexFormat, Int32, ResourceUsage)
Creates a new instance of IndexBuffer.

IndexBuffer(IRenderSystemProvider, DataBuffer<(Of <<'(Int32>)>>), ResourceUsage)
Creates a new instance of IndexBuffer.

IndexBuffer(IRenderSystemProvider, DataBuffer<(Of <<'(Int16>)>>), ResourceUsage)
Creates a new instance of IndexBuffer.

BufferUsage
Get the buffer usage, either static or dynamic.

Dispose()()()()
Dispose the resource.
(Inherited from GraphicsResource.)
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources
(Inherited from GraphicsResource.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Releases unmanaged resources and performs other cleanup operations before the IndexBuffer is reclaimed by garbage collection.
(Overrides GraphicsResource.Finalize()()()().)
GetData<(Of <<'(T>)>>)(array<T>[]()[][])
Reads data from the index buffer into the array.

GetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32)
Reads data from the index buffer into the array.

GetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, Int32)
Reads data from the index buffer into the array.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Implementation
Get the underlying index buffer implementation.
(Overrides GraphicsResource.Implementation.)
IndexCount
Get the number of indices in the buffer.

IndexFormat
Get the index format, 32 (int) or 16 (short).

IsDisposed
Gets if the resource's implementation has been disposed.
(Inherited from GraphicsResource.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Name
Get or sets the name of this resource.
(Inherited from GraphicsResource.)
Read(ISavableReader)
Deserializes the object and populates it from the input.

RenderSystem
Gets or protected sets the render system that created this resource.
(Inherited from GraphicsResource.)
ResourceID
Gets or sets the ResourceID of this resource. Can only be set once, usually by the renderer.
(Inherited from GraphicsResource.)
SetData<(Of <<'(T>)>>)(array<T>[]()[][])
Writes data from the array to the index buffer.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], DataWriteOptions)
Writes data from the array to the index buffer.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32)
Writes data from the array to the index buffer.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, DataWriteOptions)
Writes data from the array to the index buffer.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, Int32)
Writes data from the array to the index buffer.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, Int32, DataWriteOptions)
Writes data from the array to the index buffer.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Write(ISavableWriter)
Serializes the object and writes it to the output.

Inheritance Hierarchy
Object
GraphicsResource
  IndexBuffer

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)