C# 클래스 Axiom.RenderSystems.Xna.XnaHelper

Helper class for Xna that includes conversion functions and things that are specific to XFG.
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 메소드들

메소드 설명
Convert ( SceneBlendFactor factor ) : Microsoft.Xna.Framework.Graphics.Blend

Helper method to convert Axiom scene blend factors to Xna

Convert ( LayerBlendOperationEx blendop ) : Microsoft.Xna.Framework.Graphics.BlendFunction

Static method for converting LayerBlendOperationEx enum values to the Direct3D TextureOperation enum.

Convert ( Axiom color ) : Microsoft.Xna.Framework.Color
Convert ( Microsoft.Xna.Framework color ) : ColorEx
Convert ( Axiom mode, bool flip ) : Microsoft.Xna.Framework.Graphics.CullMode
Convert ( Axiom matrix ) : Matrix
Convert ( Axiom.Graphics.BufferUsage usage ) : Microsoft.Xna.Framework.Graphics.Axiom.Graphics.BufferUsage
Convert ( Axiom.Graphics.CompareFunction func ) : Microsoft.Xna.Framework.Graphics.Axiom.Graphics.CompareFunction

Converts our CompareFunction enum to the XFG.Compare equivalent.

Convert ( SurfaceFormat semantic ) : PixelFormat
Convert ( Axiom op ) : Microsoft.Xna.Framework.Graphics.StencilOperation

Converts the D3D ShadingMode to our Shading enum equivalent.

Convert ( Axiom op, bool invert ) : Microsoft.Xna.Framework.Graphics.StencilOperation

Converts our StencilOperation enum to the D3D StencilOperation equivalent.

Convert ( PixelFormat format ) : Microsoft.Xna.Framework.Graphics.SurfaceFormat

Convert ( TextureAddressing type ) : Microsoft.Xna.Framework.Graphics.TextureAddressMode
Convert ( FilterType type, Axiom.Graphics.FilterOptions options, XnaTextureType texType ) : Microsoft.Xna.Framework.Graphics.TextureFilter

Convert ( VertexElementType type, bool tex ) : Microsoft.Xna.Framework.Graphics.VertexElementFormat
Convert ( VertexElementSemantic semantic ) : Microsoft.Xna.Framework.Graphics.VertexElementUsage
Convert ( TextureType type ) : XnaTextureType
Convert ( TexCoordCalcMethod method ) : int
GetClosestSupported ( Axiom format ) : Axiom.Media.PixelFormat
GetDriverInfo ( ) : DriverCollection

Enumerates driver information and their supported display modes.

IsIdentity ( Microsoft.Xna.Framework matrix ) : bool

Checks Xna matrix to see if it an identity matrix.

For whatever reason, the equality operator overloads for the Xna Matrix struct are extremely slow....

ToRectangle ( BasicBox rectangle ) : Rectangle
ToRectangle ( Core rectangle ) : Rectangle

메소드 상세

Convert() 공개 정적인 메소드

Helper method to convert Axiom scene blend factors to Xna
public static Convert ( SceneBlendFactor factor ) : Microsoft.Xna.Framework.Graphics.Blend
factor SceneBlendFactor
리턴 Microsoft.Xna.Framework.Graphics.Blend

Convert() 공개 정적인 메소드

Static method for converting LayerBlendOperationEx enum values to the Direct3D TextureOperation enum.
public static Convert ( LayerBlendOperationEx blendop ) : Microsoft.Xna.Framework.Graphics.BlendFunction
blendop LayerBlendOperationEx
리턴 Microsoft.Xna.Framework.Graphics.BlendFunction

Convert() 공개 정적인 메소드

public static Convert ( Axiom color ) : Microsoft.Xna.Framework.Color
color Axiom
리턴 Microsoft.Xna.Framework.Color

Convert() 공개 정적인 메소드

public static Convert ( Microsoft.Xna.Framework color ) : ColorEx
color Microsoft.Xna.Framework
리턴 Axiom.Core.ColorEx

Convert() 공개 정적인 메소드

public static Convert ( Axiom mode, bool flip ) : Microsoft.Xna.Framework.Graphics.CullMode
mode Axiom
flip bool
리턴 Microsoft.Xna.Framework.Graphics.CullMode

Convert() 공개 정적인 메소드

public static Convert ( Axiom matrix ) : Matrix
matrix Axiom
리턴 Microsoft.Xna.Framework.Matrix

Convert() 공개 정적인 메소드

public static Convert ( Axiom.Graphics.BufferUsage usage ) : Microsoft.Xna.Framework.Graphics.Axiom.Graphics.BufferUsage
usage Axiom.Graphics.BufferUsage
리턴 Microsoft.Xna.Framework.Graphics.Axiom.Graphics.BufferUsage

Convert() 공개 정적인 메소드

Converts our CompareFunction enum to the XFG.Compare equivalent.
public static Convert ( Axiom.Graphics.CompareFunction func ) : Microsoft.Xna.Framework.Graphics.Axiom.Graphics.CompareFunction
func Axiom.Graphics.CompareFunction
리턴 Microsoft.Xna.Framework.Graphics.Axiom.Graphics.CompareFunction

Convert() 공개 정적인 메소드

public static Convert ( SurfaceFormat semantic ) : PixelFormat
semantic SurfaceFormat
리턴 PixelFormat

Convert() 공개 정적인 메소드

Converts the D3D ShadingMode to our Shading enum equivalent.
public static Convert ( Axiom op ) : Microsoft.Xna.Framework.Graphics.StencilOperation
op Axiom
리턴 Microsoft.Xna.Framework.Graphics.StencilOperation

Convert() 공개 정적인 메소드

Converts our StencilOperation enum to the D3D StencilOperation equivalent.
public static Convert ( Axiom op, bool invert ) : Microsoft.Xna.Framework.Graphics.StencilOperation
op Axiom
invert bool
리턴 Microsoft.Xna.Framework.Graphics.StencilOperation

Convert() 공개 정적인 메소드

public static Convert ( PixelFormat format ) : Microsoft.Xna.Framework.Graphics.SurfaceFormat
format PixelFormat
리턴 Microsoft.Xna.Framework.Graphics.SurfaceFormat

Convert() 공개 정적인 메소드

public static Convert ( TextureAddressing type ) : Microsoft.Xna.Framework.Graphics.TextureAddressMode
type TextureAddressing
리턴 Microsoft.Xna.Framework.Graphics.TextureAddressMode

Convert() 공개 정적인 메소드

public static Convert ( FilterType type, Axiom.Graphics.FilterOptions options, XnaTextureType texType ) : Microsoft.Xna.Framework.Graphics.TextureFilter
type FilterType
options Axiom.Graphics.FilterOptions
texType XnaTextureType
리턴 Microsoft.Xna.Framework.Graphics.TextureFilter

Convert() 공개 정적인 메소드

public static Convert ( VertexElementType type, bool tex ) : Microsoft.Xna.Framework.Graphics.VertexElementFormat
type VertexElementType
tex bool
리턴 Microsoft.Xna.Framework.Graphics.VertexElementFormat

Convert() 공개 정적인 메소드

public static Convert ( VertexElementSemantic semantic ) : Microsoft.Xna.Framework.Graphics.VertexElementUsage
semantic VertexElementSemantic
리턴 Microsoft.Xna.Framework.Graphics.VertexElementUsage

Convert() 공개 정적인 메소드

public static Convert ( TextureType type ) : XnaTextureType
type TextureType
리턴 XnaTextureType

Convert() 공개 정적인 메소드

public static Convert ( TexCoordCalcMethod method ) : int
method TexCoordCalcMethod
리턴 int

GetClosestSupported() 공개 정적인 메소드

public static GetClosestSupported ( Axiom format ) : Axiom.Media.PixelFormat
format Axiom
리턴 Axiom.Media.PixelFormat

GetDriverInfo() 공개 정적인 메소드

Enumerates driver information and their supported display modes.
public static GetDriverInfo ( ) : DriverCollection
리턴 DriverCollection

IsIdentity() 공개 정적인 메소드

Checks Xna matrix to see if it an identity matrix.
For whatever reason, the equality operator overloads for the Xna Matrix struct are extremely slow....
public static IsIdentity ( Microsoft.Xna.Framework matrix ) : bool
matrix Microsoft.Xna.Framework
리턴 bool

ToRectangle() 공개 정적인 메소드

public static ToRectangle ( BasicBox rectangle ) : Rectangle
rectangle BasicBox
리턴 Microsoft.Xna.Framework.Rectangle

ToRectangle() 공개 정적인 메소드

public static ToRectangle ( Core rectangle ) : Rectangle
rectangle Core
리턴 Microsoft.Xna.Framework.Rectangle