C# 클래스 Afterglow.Graphics.SlimDXExtensions

This class contains extension methods which help to map engine types to the corresponding SlimDX types.
파일 보기 프로젝트 열기: Christof/afterglow

공개 메소드들

메소드 설명
DisposeIfNotDisposed ( this comObject ) : void

Disposes the object if it isn't already disposed or null.

ToFormat ( this format ) : Format

Returns the Format for the InputElement

ToMath ( this matrix ) : System.Matrix

Converts the SlimDXMatrix into our matrix.

ToSemantic ( this graphicStreamUsage ) : string

Returns the semantic corresponding to the GraphicStreamUsage for the InputElement.

ToSlimDX ( this matrix ) : SlimDX.Matrix

Converts the matrix into an SlimDXMatrix.

ToSlimDX ( this vector ) : SlimDX.Vector3

Converts the vector into an SlimDXVector3.

메소드 상세

DisposeIfNotDisposed() 공개 정적인 메소드

Disposes the object if it isn't already disposed or null.
public static DisposeIfNotDisposed ( this comObject ) : void
comObject this The COM object.
리턴 void

ToFormat() 공개 정적인 메소드

Returns the Format for the InputElement
public static ToFormat ( this format ) : Format
format this The format.
리턴 Format

ToMath() 공개 정적인 메소드

Converts the SlimDXMatrix into our matrix.
public static ToMath ( this matrix ) : System.Matrix
matrix this The slimDX matrix.
리턴 System.Matrix

ToSemantic() 공개 정적인 메소드

Returns the semantic corresponding to the GraphicStreamUsage for the InputElement.
public static ToSemantic ( this graphicStreamUsage ) : string
graphicStreamUsage this The graphic stream usage.
리턴 string

ToSlimDX() 공개 정적인 메소드

Converts the matrix into an SlimDXMatrix.
public static ToSlimDX ( this matrix ) : SlimDX.Matrix
matrix this The matrix.
리턴 SlimDX.Matrix

ToSlimDX() 공개 정적인 메소드

Converts the vector into an SlimDXVector3.
public static ToSlimDX ( this vector ) : SlimDX.Vector3
vector this The vector.
리턴 SlimDX.Vector3