C# Class SharpDX.Direct3D9.D3DX

D3DX constants and methods
Afficher le fichier Open project: sharpdx/SharpDX Class Usage Examples

Méthodes publiques

Méthode Description
CheckVersion ( ) : bool

Checks the D3DX runtime version against this compiled version.

DebugMute ( bool mute ) : bool

Get and set debug mute mode.

DeclaratorFromFVF ( VertexFormat fvf ) : SharpDX.Direct3D9.VertexElement[]

Converts a declarator from a flexible vertex format (FVF) code.

FVFFromDeclarator ( SharpDX.Direct3D9.VertexElement declarator ) : VertexFormat

Converts a flexible vertex format (FVF) code from a declarator.

GenerateOutputDeclaration ( SharpDX.Direct3D9.VertexElement declaration ) : SharpDX.Direct3D9.VertexElement[]

Generates an output vertex declaration from the input declaration. The output declaration is intended for use by the mesh tessellation functions.

GetDeclarationLength ( SharpDX.Direct3D9.VertexElement declaration ) : int

Gets the number of elements in the vertex declaration.

GetDeclarationVertexSize ( SharpDX.Direct3D9.VertexElement elements, int stream ) : int

Gets the size of a vertex from the vertex declaration.

GetFVFVertexSize ( VertexFormat fvf ) : int

Returns the size of a vertex for a flexible vertex format (FVF).

GetRectanglePatchSize ( float segmentCount, int &triangleCount, int &vertexCount ) : System.Result

Gets the size of the rectangle patch.

GetTrianglePatchSize ( float segmentCount, int &triangleCount, int &vertexCount ) : System.Result

Gets the size of the triangle patch.

GetVectors ( DataStream stream, int vertexCount, VertexFormat format ) : SharpDX.Mathematics.Interop.RawVector3[]

Gets an array of RawVector3 from a DataStream.

GetVectors ( DataStream stream, int vertexCount, int stride ) : SharpDX.Mathematics.Interop.RawVector3[]

Gets an array of RawVector3 from a DataStream.

MakeFourCC ( byte c1, byte c2, byte c3, byte c4 ) : Format

Creates a FOURCC Format code from bytes description.

OptimizeFaces ( int indices, int faceCount, int vertexCount ) : int[]

Generates an optimized vertex remapping for a triangle list. This function is commonly used after applying the face remapping generated by D3DXOptimizeFaces.

OptimizeFaces ( short indices, int faceCount, int vertexCount ) : int[]

Generates an optimized face remapping for a triangle list.

OptimizeVertices ( int indices, int faceCount, int vertexCount ) : int[]

Generates an optimized vertex remapping for a triangle list. This function is commonly used after applying the face remapping generated by OptimizeFaces(int[],int,int).

OptimizeVertices ( short indices, int faceCount, int vertexCount ) : int[]

Generates an optimized vertex remapping for a triangle list. This function is commonly used after applying the face remapping generated by OptimizeFaces(short[],int,int).

Method Details

CheckVersion() public static méthode

Checks the D3DX runtime version against this compiled version.
public static CheckVersion ( ) : bool
Résultat bool

DebugMute() public static méthode

Get and set debug mute mode.
public static DebugMute ( bool mute ) : bool
mute bool if set to true [mute].
Résultat bool

DeclaratorFromFVF() public static méthode

Converts a declarator from a flexible vertex format (FVF) code.
public static DeclaratorFromFVF ( VertexFormat fvf ) : SharpDX.Direct3D9.VertexElement[]
fvf VertexFormat Combination of that describes the FVF from which to generate the returned declarator array..
Résultat SharpDX.Direct3D9.VertexElement[]

FVFFromDeclarator() public static méthode

Converts a flexible vertex format (FVF) code from a declarator.
public static FVFFromDeclarator ( SharpDX.Direct3D9.VertexElement declarator ) : VertexFormat
declarator SharpDX.Direct3D9.VertexElement The declarator array.
Résultat VertexFormat

GenerateOutputDeclaration() public static méthode

Generates an output vertex declaration from the input declaration. The output declaration is intended for use by the mesh tessellation functions.
public static GenerateOutputDeclaration ( SharpDX.Direct3D9.VertexElement declaration ) : SharpDX.Direct3D9.VertexElement[]
declaration SharpDX.Direct3D9.VertexElement The input declaration.
Résultat SharpDX.Direct3D9.VertexElement[]

GetDeclarationLength() public static méthode

Gets the number of elements in the vertex declaration.
public static GetDeclarationLength ( SharpDX.Direct3D9.VertexElement declaration ) : int
declaration SharpDX.Direct3D9.VertexElement The declaration.
Résultat int

GetDeclarationVertexSize() public static méthode

Gets the size of a vertex from the vertex declaration.
public static GetDeclarationVertexSize ( SharpDX.Direct3D9.VertexElement elements, int stream ) : int
elements SharpDX.Direct3D9.VertexElement The elements.
stream int The stream.
Résultat int

GetFVFVertexSize() public static méthode

Returns the size of a vertex for a flexible vertex format (FVF).
public static GetFVFVertexSize ( VertexFormat fvf ) : int
fvf VertexFormat The vertex format.
Résultat int

GetRectanglePatchSize() public static méthode

Gets the size of the rectangle patch.
public static GetRectanglePatchSize ( float segmentCount, int &triangleCount, int &vertexCount ) : System.Result
segmentCount float The segment count.
triangleCount int The triangle count.
vertexCount int The vertex count.
Résultat System.Result

GetTrianglePatchSize() public static méthode

Gets the size of the triangle patch.
public static GetTrianglePatchSize ( float segmentCount, int &triangleCount, int &vertexCount ) : System.Result
segmentCount float The segment count.
triangleCount int The triangle count.
vertexCount int The vertex count.
Résultat System.Result

GetVectors() public static méthode

Gets an array of RawVector3 from a DataStream.
public static GetVectors ( DataStream stream, int vertexCount, VertexFormat format ) : SharpDX.Mathematics.Interop.RawVector3[]
stream DataStream The stream.
vertexCount int The vertex count.
format VertexFormat The format.
Résultat SharpDX.Mathematics.Interop.RawVector3[]

GetVectors() public static méthode

Gets an array of RawVector3 from a DataStream.
public static GetVectors ( DataStream stream, int vertexCount, int stride ) : SharpDX.Mathematics.Interop.RawVector3[]
stream DataStream The stream.
vertexCount int The vertex count.
stride int The stride.
Résultat SharpDX.Mathematics.Interop.RawVector3[]

MakeFourCC() public static méthode

Creates a FOURCC Format code from bytes description.
public static MakeFourCC ( byte c1, byte c2, byte c3, byte c4 ) : Format
c1 byte The c1.
c2 byte The c2.
c3 byte The c3.
c4 byte The c4.
Résultat Format

OptimizeFaces() public static méthode

Generates an optimized vertex remapping for a triangle list. This function is commonly used after applying the face remapping generated by D3DXOptimizeFaces.
public static OptimizeFaces ( int indices, int faceCount, int vertexCount ) : int[]
indices int The indices.
faceCount int The face count.
vertexCount int The vertex count.
Résultat int[]

OptimizeFaces() public static méthode

Generates an optimized face remapping for a triangle list.
public static OptimizeFaces ( short indices, int faceCount, int vertexCount ) : int[]
indices short The indices.
faceCount int The face count.
vertexCount int The vertex count.
Résultat int[]

OptimizeVertices() public static méthode

Generates an optimized vertex remapping for a triangle list. This function is commonly used after applying the face remapping generated by OptimizeFaces(int[],int,int).
public static OptimizeVertices ( int indices, int faceCount, int vertexCount ) : int[]
indices int The indices.
faceCount int The face count.
vertexCount int The vertex count.
Résultat int[]

OptimizeVertices() public static méthode

Generates an optimized vertex remapping for a triangle list. This function is commonly used after applying the face remapping generated by OptimizeFaces(short[],int,int).
public static OptimizeVertices ( short indices, int faceCount, int vertexCount ) : int[]
indices short The indices.
faceCount int The face count.
vertexCount int The vertex count.
Résultat int[]