C# 클래스 Afterglow.Graphics.XnaExtensions

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

공개 메소드들

메소드 설명
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