C# 클래스 SharpDX.Direct3D9.D3DX

D3DX constants and methods
파일 보기 프로젝트 열기: sharpdx/SharpDX 1 사용 예제들

공개 메소드들

메소드 설명
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).

메소드 상세

CheckVersion() 공개 정적인 메소드

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

DebugMute() 공개 정적인 메소드

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

DeclaratorFromFVF() 공개 정적인 메소드

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

FVFFromDeclarator() 공개 정적인 메소드

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.
리턴 VertexFormat

GenerateOutputDeclaration() 공개 정적인 메소드

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

GetDeclarationLength() 공개 정적인 메소드

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

GetDeclarationVertexSize() 공개 정적인 메소드

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.
리턴 int

GetFVFVertexSize() 공개 정적인 메소드

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

GetRectanglePatchSize() 공개 정적인 메소드

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.
리턴 System.Result

GetTrianglePatchSize() 공개 정적인 메소드

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.
리턴 System.Result

GetVectors() 공개 정적인 메소드

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

GetVectors() 공개 정적인 메소드

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

MakeFourCC() 공개 정적인 메소드

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.
리턴 Format

OptimizeFaces() 공개 정적인 메소드

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

OptimizeFaces() 공개 정적인 메소드

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

OptimizeVertices() 공개 정적인 메소드

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

OptimizeVertices() 공개 정적인 메소드

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