C# Класс Axiom.RenderSystems.DirectX9.D3DHelper

Helper class for Direct3D that includes conversion functions and things that are specific to D3D.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ConvertEnum ( SlimDX.Direct3D9 format ) : Axiom.Media.PixelFormat
ConvertEnum ( SceneBlendFactor factor ) : SlimDX.Direct3D9.Blend

Helper method to convert Axiom scene blend factors to D3D

ConvertEnum ( SceneBlendOperation op ) : SlimDX.Direct3D9.BlendOperation
ConvertEnum ( CompareFunction func ) : SlimDX.Direct3D9.Compare

Converts our CompareFunction enum to the D3D.Compare equivalent.

ConvertEnum ( Axiom mode, bool flip ) : SlimDX.Direct3D9.Cull
ConvertEnum ( TextureType type ) : D3DTextureType
ConvertEnum ( VertexElementType type ) : SlimDX.Direct3D9.DeclarationType
ConvertEnum ( VertexElementSemantic semantic ) : SlimDX.Direct3D9.DeclarationUsage
ConvertEnum ( PolygonMode mode ) : SlimDX.Direct3D9.FillMode
ConvertEnum ( Axiom mode ) : SlimDX.Direct3D9.FogMode

ConvertEnum ( Axiom format ) : SlimDX.Direct3D9.Format
ConvertEnum ( BufferLocking locking ) : SlimDX.Direct3D9.LockFlags
ConvertEnum ( BufferLocking locking, BufferUsage usage ) : SlimDX.Direct3D9.LockFlags
ConvertEnum ( FilterType type ) : SlimDX.Direct3D9.SamplerState
ConvertEnum ( ShadeOptions opt ) : SlimDX.Direct3D9.ShadeMode
ConvertEnum ( Shading shading ) : SlimDX.Direct3D9.ShadeMode

Converts our Shading enum to the D3D ShadingMode equivalent.

ConvertEnum ( SlimDX.Direct3D9 shading ) : Shading

Converts the D3D ShadingMode to our Shading enum equivalent.

ConvertEnum ( Axiom op ) : SlimDX.Direct3D9.StencilOperation
ConvertEnum ( Axiom op, bool invert ) : SlimDX.Direct3D9.StencilOperation

Converts our StencilOperation enum to the D3D StencilOperation equivalent.

ConvertEnum ( TextureAddressing type ) : SlimDX.Direct3D9.TextureAddress
ConvertEnum ( LayerBlendSource lbs, bool perStageConstants ) : TextureArgument
ConvertEnum ( LayerBlendSource blendSource ) : SlimDX.Direct3D9.TextureArgument
ConvertEnum ( FilterType type, FilterOptions options, SlimDX.Direct3D9 devCaps, D3DTextureType texType ) : SlimDX.Direct3D9.TextureFilter

ConvertEnum ( LayerBlendOperationEx lbo, SlimDX devCaps ) : TextureOperation
ConvertEnum ( LayerBlendOperationEx blendop ) : SlimDX.Direct3D9.TextureOperation

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

ConvertEnum ( BufferUsage usage ) : SlimDX.Direct3D9.Usage
ConvertEnum ( TexCoordCalcMethod method, SlimDX.Direct3D9 caps ) : int
D3DHelper ( ) : System
FromColor ( System color ) : ColorEx

Static method used to create a new ColorEx instance based on an existing System.Drawing.Color structure.

GetClosestSupported ( Axiom format ) : Axiom.Media.PixelFormat
GetDriverInfo ( SlimDX.Direct3D9 manager ) : DriverCollection

Enumerates driver information and their supported display modes.

IsIdentity ( SlimDX &matrix ) : bool

Checks D3D matrix to see if it an identity matrix.

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

ToColor ( ColorEx color ) : Color
ToRectangle ( Rectangle rect ) : System.Drawing.Axiom.Core.Rectangle

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

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

public static ConvertEnum ( SlimDX.Direct3D9 format ) : Axiom.Media.PixelFormat
format SlimDX.Direct3D9
Результат Axiom.Media.PixelFormat

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

Helper method to convert Axiom scene blend factors to D3D
public static ConvertEnum ( SceneBlendFactor factor ) : SlimDX.Direct3D9.Blend
factor SceneBlendFactor
Результат SlimDX.Direct3D9.Blend

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

public static ConvertEnum ( SceneBlendOperation op ) : SlimDX.Direct3D9.BlendOperation
op SceneBlendOperation
Результат SlimDX.Direct3D9.BlendOperation

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

Converts our CompareFunction enum to the D3D.Compare equivalent.
public static ConvertEnum ( CompareFunction func ) : SlimDX.Direct3D9.Compare
func CompareFunction
Результат SlimDX.Direct3D9.Compare

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

public static ConvertEnum ( Axiom mode, bool flip ) : SlimDX.Direct3D9.Cull
mode Axiom
flip bool
Результат SlimDX.Direct3D9.Cull

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

public static ConvertEnum ( TextureType type ) : D3DTextureType
type TextureType
Результат D3DTextureType

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

public static ConvertEnum ( VertexElementType type ) : SlimDX.Direct3D9.DeclarationType
type VertexElementType
Результат SlimDX.Direct3D9.DeclarationType

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

public static ConvertEnum ( VertexElementSemantic semantic ) : SlimDX.Direct3D9.DeclarationUsage
semantic VertexElementSemantic
Результат SlimDX.Direct3D9.DeclarationUsage

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

public static ConvertEnum ( PolygonMode mode ) : SlimDX.Direct3D9.FillMode
mode PolygonMode
Результат SlimDX.Direct3D9.FillMode

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

public static ConvertEnum ( Axiom mode ) : SlimDX.Direct3D9.FogMode
mode Axiom
Результат SlimDX.Direct3D9.FogMode

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

public static ConvertEnum ( Axiom format ) : SlimDX.Direct3D9.Format
format Axiom
Результат SlimDX.Direct3D9.Format

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

public static ConvertEnum ( BufferLocking locking ) : SlimDX.Direct3D9.LockFlags
locking BufferLocking
Результат SlimDX.Direct3D9.LockFlags

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

public static ConvertEnum ( BufferLocking locking, BufferUsage usage ) : SlimDX.Direct3D9.LockFlags
locking BufferLocking
usage BufferUsage
Результат SlimDX.Direct3D9.LockFlags

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

public static ConvertEnum ( FilterType type ) : SlimDX.Direct3D9.SamplerState
type FilterType
Результат SlimDX.Direct3D9.SamplerState

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

public static ConvertEnum ( ShadeOptions opt ) : SlimDX.Direct3D9.ShadeMode
opt ShadeOptions
Результат SlimDX.Direct3D9.ShadeMode

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

Converts our Shading enum to the D3D ShadingMode equivalent.
public static ConvertEnum ( Shading shading ) : SlimDX.Direct3D9.ShadeMode
shading Shading
Результат SlimDX.Direct3D9.ShadeMode

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

Converts the D3D ShadingMode to our Shading enum equivalent.
public static ConvertEnum ( SlimDX.Direct3D9 shading ) : Shading
shading SlimDX.Direct3D9
Результат Shading

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

public static ConvertEnum ( Axiom op ) : SlimDX.Direct3D9.StencilOperation
op Axiom
Результат SlimDX.Direct3D9.StencilOperation

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

Converts our StencilOperation enum to the D3D StencilOperation equivalent.
public static ConvertEnum ( Axiom op, bool invert ) : SlimDX.Direct3D9.StencilOperation
op Axiom
invert bool
Результат SlimDX.Direct3D9.StencilOperation

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

public static ConvertEnum ( TextureAddressing type ) : SlimDX.Direct3D9.TextureAddress
type TextureAddressing
Результат SlimDX.Direct3D9.TextureAddress

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

public static ConvertEnum ( LayerBlendSource lbs, bool perStageConstants ) : TextureArgument
lbs LayerBlendSource
perStageConstants bool
Результат TextureArgument

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

public static ConvertEnum ( LayerBlendSource blendSource ) : SlimDX.Direct3D9.TextureArgument
blendSource LayerBlendSource
Результат SlimDX.Direct3D9.TextureArgument

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

public static ConvertEnum ( FilterType type, FilterOptions options, SlimDX.Direct3D9 devCaps, D3DTextureType texType ) : SlimDX.Direct3D9.TextureFilter
type FilterType
options FilterOptions
devCaps SlimDX.Direct3D9
texType D3DTextureType
Результат SlimDX.Direct3D9.TextureFilter

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

public static ConvertEnum ( LayerBlendOperationEx lbo, SlimDX devCaps ) : TextureOperation
lbo LayerBlendOperationEx
devCaps SlimDX
Результат TextureOperation

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

Static method for converting LayerBlendOperationEx enum values to the Direct3D TextureOperation enum.
public static ConvertEnum ( LayerBlendOperationEx blendop ) : SlimDX.Direct3D9.TextureOperation
blendop LayerBlendOperationEx
Результат SlimDX.Direct3D9.TextureOperation

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

public static ConvertEnum ( BufferUsage usage ) : SlimDX.Direct3D9.Usage
usage BufferUsage
Результат SlimDX.Direct3D9.Usage

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

public static ConvertEnum ( TexCoordCalcMethod method, SlimDX.Direct3D9 caps ) : int
method TexCoordCalcMethod
caps SlimDX.Direct3D9
Результат int

D3DHelper() публичный Метод

public D3DHelper ( ) : System
Результат System

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

Static method used to create a new ColorEx instance based on an existing System.Drawing.Color structure.
public static FromColor ( System color ) : ColorEx
color System .Net color structure to use as a basis.
Результат ColorEx

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 ( SlimDX.Direct3D9 manager ) : DriverCollection
manager SlimDX.Direct3D9
Результат DriverCollection

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

Checks D3D matrix to see if it an identity matrix.
For whatever reason, the equality operator overloads for the D3D Matrix struct are extremely slow....
public static IsIdentity ( SlimDX &matrix ) : bool
matrix SlimDX
Результат bool

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

public static ToColor ( ColorEx color ) : Color
color ColorEx
Результат System.Drawing.Color

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

public static ToRectangle ( Rectangle rect ) : System.Drawing.Axiom.Core.Rectangle
rect Axiom.Core.Rectangle
Результат System.Drawing.Axiom.Core.Rectangle