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

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

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

Метод Описание
ToFormat ( this format ) : VertexElementFormat

Returns the VertexElementFormat for the given graphic stream format.

ToMath ( this matrix ) : System.Matrix

Converts the XnaMatrix into our matrix.

ToVertexElementUsage ( this usage ) : VertexElementUsage

Convertes graphic stream usage to a vertex element usage.

ToXna ( this matrix ) : Microsoft.Xna.Framework.Matrix

Converts the matrix into an Microsoft.Xna.Framework.Matrix.

ToXna ( this vector ) : Microsoft.Xna.Framework.Vector3

Converts the vector into an Microsoft.Xna.Framework.Vector3.

Описание методов

ToFormat() публичный статический Метод

Returns the VertexElementFormat for the given graphic stream format.
public static ToFormat ( this format ) : VertexElementFormat
format this The format.
Результат VertexElementFormat

ToMath() публичный статический Метод

Converts the XnaMatrix into our matrix.
public static ToMath ( this matrix ) : System.Matrix
matrix this The xna matrix.
Результат System.Matrix

ToVertexElementUsage() публичный статический Метод

Convertes graphic stream usage to a vertex element usage.
public static ToVertexElementUsage ( this usage ) : VertexElementUsage
usage this The usage.
Результат VertexElementUsage

ToXna() публичный статический Метод

Converts the matrix into an Microsoft.Xna.Framework.Matrix.
public static ToXna ( this matrix ) : Microsoft.Xna.Framework.Matrix
matrix this The matrix.
Результат Microsoft.Xna.Framework.Matrix

ToXna() публичный статический Метод

Converts the vector into an Microsoft.Xna.Framework.Vector3.
public static ToXna ( this vector ) : Microsoft.Xna.Framework.Vector3
vector this The vector.
Результат Microsoft.Xna.Framework.Vector3