Tesla Graphics Engine Documentation (January 2012)
VertexBuffer Class
TeslaTesla.GraphicsVertexBuffer
Represents a list of vertices that exists on the GPU. A vertex typically has a position and a number of additional properties such as a color or normal vector.
Declaration Syntax
C#
public class VertexBuffer : GraphicsResource, 
	ISavable
Members
All Members Constructors Methods Properties



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

VertexBuffer(VertexDeclaration, Int32, ResourceUsage)
Creates a new instance of VertexBuffer.

VertexBuffer(VertexDeclaration, ResourceUsage, array<DataBuffer>[]()[][])
Creates a new instance of VertexBuffer.

VertexBuffer(VertexDeclaration, ResourceUsage, DataBuffer)
Creates a new instance of VertexBuffer.

VertexBuffer(IRenderSystemProvider, VertexDeclaration, Int32, ResourceUsage)
Creates a new instance of VertexBuffer.

VertexBuffer(IRenderSystemProvider, VertexDeclaration, ResourceUsage, array<DataBuffer>[]()[][])
Creates a new instance of VertexBuffer.

VertexBuffer(IRenderSystemProvider, VertexDeclaration, ResourceUsage, DataBuffer)
Creates a new instance of VertexBuffer.

BufferUsage
Gets the resource usage of the buffer, 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 VertexBuffer is reclaimed by garbage collection.
(Overrides GraphicsResource.Finalize()()()().)
GetData<(Of <<'(T>)>>)(array<T>[]()[][])
Gets the data from the vertex buffer and copies it into specified array.

GetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32)
Gets the data from the vertex buffer and copies it into specified array.

GetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, Int32, Int32)
Gets the data from the vertex buffer and copies it into specified 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
Gets the API-specific implementation of this resource.
(Overrides GraphicsResource.Implementation.)
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>[]()[][])
Sets the vertex data from an array source.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], DataWriteOptions)
Sets the vertex data from an array source.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32)
Sets the vertex data from an array source.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, DataWriteOptions)
Sets the vertex data from an array source.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, Int32, Int32)
Sets the vertex data from an array source.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, Int32, Int32, DataWriteOptions)
Sets the vertex data from an array source.

SetInterleavedData(array<DataBuffer>[]()[][])
Convienence method that takes an array of data buffers, each representing a vertex element (in the order declared by the vertex declaration), and writes all of the data to the vertex buffer. The buffers must match the vertex declaration as well as the byte sizes of each element and all be of the same length.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
VertexCount
Gets the number of vertices in this buffer.

VertexDeclaration
Gets the vertx declaration that describes the type of data contained in this buffer.

Write(ISavableWriter)
Serializes the object and writes it to the output.

Inheritance Hierarchy
Object
GraphicsResource
  VertexBuffer

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