Tesla Graphics Engine Documentation (January 2012)
VertexDeclaration Class
TeslaTesla.GraphicsVertexDeclaration
Represents the organization of vertex data in a vertex buffer, which is used by the device to process the vertex stream.
Declaration Syntax
C#
public sealed class VertexDeclaration : ISavable
Members
All Members Constructors Methods Properties



Icon Member Description
VertexDeclaration(array<VertexElement>[]()[][])
Creates a new instance of VertexDeclaration.

VertexDeclaration(Int32, array<VertexElement>[]()[][])
Creates a new instance of VertexDeclaration.

ElementCount
Gets the number of vertex elements contained in this declaration.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Returns a hash code for this instance.
(Overrides Object.GetHashCode()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
GetVertexElementSize(VertexFormat)
Gets the size of a vertex element.

GetVertexStride(array<VertexElement>[]()[][])
Gets the vertex stride of the specified elements.

Item[([( Int32])])
Gets a vertex element at the specified index.

Read(ISavableReader)
Deserializes the object and populates it from the input.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
ValidateVertexElements(Int32, array<VertexElement>[]()[][])
Checks if the array of vertex elements is valid.

VertexElements
Gets a copy of the contained vertex elements.

VertexStride
Gets the stride of a vertex, this is the total size of a vertex (position, color, etc) in bytes.

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

Inheritance Hierarchy
Object
VertexDeclaration

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