C# Class Afterglow.Graphics.XnaExtensions

This class contains extension methods which help to map engine types to the corresponding Xna types.
Mostrar archivo Open project: Christof/afterglow

Public Methods

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

Method Details

ToFormat() public static method

Returns the VertexElementFormat for the given graphic stream format.
public static ToFormat ( this format ) : VertexElementFormat
format this The format.
return VertexElementFormat

ToMath() public static method

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

ToVertexElementUsage() public static method

Convertes graphic stream usage to a vertex element usage.
public static ToVertexElementUsage ( this usage ) : VertexElementUsage
usage this The usage.
return VertexElementUsage

ToXna() public static method

Converts the matrix into an Microsoft.Xna.Framework.Matrix.
public static ToXna ( this matrix ) : Microsoft.Xna.Framework.Matrix
matrix this The matrix.
return Microsoft.Xna.Framework.Matrix

ToXna() public static method

Converts the vector into an Microsoft.Xna.Framework.Vector3.
public static ToXna ( this vector ) : Microsoft.Xna.Framework.Vector3
vector this The vector.
return Microsoft.Xna.Framework.Vector3