C# Class Afterglow.Graphics.SlimDXExtensions

This class contains extension methods which help to map engine types to the corresponding SlimDX types.
Show file Open project: Christof/afterglow

Public Methods

Method Description
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.

Method Details

DisposeIfNotDisposed() public static method

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

ToFormat() public static method

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

ToMath() public static method

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

ToSemantic() public static method

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

ToSlimDX() public static method

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

ToSlimDX() public static method

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