C# Class SharpDX.Direct3D9.D3DX

D3DX constants and methods
ファイルを表示 Open project: sharpdx/SharpDX Class Usage Examples

Public Methods

Method 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 method

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

DebugMute() public static method

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

DeclaratorFromFVF() public static method

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..
return SharpDX.Direct3D9.VertexElement[]

FVFFromDeclarator() public static method

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.
return VertexFormat

GenerateOutputDeclaration() public static method

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.
return SharpDX.Direct3D9.VertexElement[]

GetDeclarationLength() public static method

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

GetDeclarationVertexSize() public static method

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.
return int

GetFVFVertexSize() public static method

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

GetRectanglePatchSize() public static method

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.
return System.Result

GetTrianglePatchSize() public static method

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.
return System.Result

GetVectors() public static method

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.
return SharpDX.Mathematics.Interop.RawVector3[]

GetVectors() public static method

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.
return SharpDX.Mathematics.Interop.RawVector3[]

MakeFourCC() public static method

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.
return Format

OptimizeFaces() public static method

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.
return int[]

OptimizeFaces() public static method

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.
return int[]

OptimizeVertices() public static method

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.
return int[]

OptimizeVertices() public static method

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.
return int[]