C# Class Vector.Gpu.VertexDeclaration

Vertex Declaration

Describes a Vertex

Exibir arquivo Open project: sinclairzx81/vector-cs Class Usage Examples

Public Methods

Method Description
GetDeclarationFromType ( Type vertexStructure ) : VertexDeclaration

Builds a VertexDeclaration based on a Vertex structure type. The Vertex Structure "must" have a StructLayout and also have VertexAttributes applied to its fields.

ToString ( ) : string

Returns a string representation of this Vertex Declaration.

VertexDeclaration ( ) : System
VertexDeclaration ( VertexElement elements ) : System

Method Details

GetDeclarationFromType() public static method

Builds a VertexDeclaration based on a Vertex structure type. The Vertex Structure "must" have a StructLayout and also have VertexAttributes applied to its fields.
public static GetDeclarationFromType ( Type vertexStructure ) : VertexDeclaration
vertexStructure System.Type
return VertexDeclaration

ToString() public method

Returns a string representation of this Vertex Declaration.
public ToString ( ) : string
return string

VertexDeclaration() public method

public VertexDeclaration ( ) : System
return System

VertexDeclaration() public method

public VertexDeclaration ( VertexElement elements ) : System
elements VertexElement
return System