DirectX9Util

Description

static class Tinman.AddOns.DirectX9.DirectX9Util

Full source code is included in the Tinman 3D SDK download.

Helper class for this namespace.

Public / Methods

Constant​Value​For

6 overloads


[Pure]
public static method ConstantValueFor1 → (1)

value in : GpuUpdateFlag

The value.

returns → int32

The D3DLOCK_* value.

Returns the DirectX9 constant value for the given GpuUpdateFlag value.


[Pure]
public static method ConstantValueFor2 → (1)

value in : RenderTargetFormat

The value.

returns → int32

The D3DFMT_* value or -1 if value in is 0.

Returns the DirectX9 constant value for the given RenderTargetFormat value.


[Pure]
public static method ConstantValueFor3 → (3)

factory in : ITextureFactory

[not-null]
The texture factory.

value in : TextureFormat

[not-null]
The value.

srgb in : bool

The sRGB behaviour.

returns → int32

The D3DFMT_* value or -1 if not supported.

Returns the DirectX9 constant value for the given TextureFormat value.


[Pure]
public static method ConstantValueFor4 → (1)

value in : VertexElementUsage

The value.

returns → int32

The D3DDECLUSAGE_* value.

Returns the DirectX9 constant value for the given VertexElementUsage value.


[Pure]
public static method ConstantValueFor5 → (1)

value in : Primitive

The value.

returns → int32

The D3DPT_* value.

Returns the DirectX9 constant value for the given Primitive value.


[Pure]
public static method ConstantValueFor6 → (1)

value in : VertexElement

[not-null]
The value.

returns → int32

The D3DDECLTYPE_* value or -1 if not supported.

Returns the DirectX9 constant value for the given VertexElement value.

Constant​Value​For​Throw


[Pure]
public static method ConstantValueForThrow → (1)

value in : VertexElement

[not-null]
The value.

returns → int32

The D3DDECLTYPE_* value.

Returns the DirectX9 constant value for the given VertexElement value.

RenderException

If value in is not supported.

Read​Pixels​Decode​Format


[Pure]
public static method ReadPixelsDecodeFormat → (1)

format in : int32

The D3DFORMAT value.

returns → int32

The format in parameter value.

Returns the value of the format in parameter for GraphicsContext.DecodeScanline

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.