C# Класс Afterglow.Graphics.SlimDXExtensions

This class contains extension methods which help to map engine types to the corresponding SlimDX types.
Показать файл Открыть проект

Открытые методы

Метод Описание
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