C# Class Vector.Gpu.VertexDeclaration

Vertex Declaration

Describes a Vertex

Afficher le fichier Open project: sinclairzx81/vector-cs Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat VertexDeclaration

ToString() public méthode

Returns a string representation of this Vertex Declaration.
public ToString ( ) : string
Résultat string

VertexDeclaration() public méthode

public VertexDeclaration ( ) : System
Résultat System

VertexDeclaration() public méthode

public VertexDeclaration ( VertexElement elements ) : System
elements VertexElement
Résultat System