DirectX9Context

Description

class Tinman.AddOns.DirectX9.DirectX9Context

Derived from

GraphicsContext abstract

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

An implementation of the IGraphicsContext interface for DirectX 9.

You can use the DirectX9ContextFactory object to configure and create an instance of this class. Also you can use the ForDevice method to wrap an existing IDirect3DDevice9* COM pointer.

The returned INativeHandles can be interpreted as follows:

Public / Constructors

ForDevice


[OwnerReturn]
public static method ForDevice → (3)

deviceHandle in : IntPtr

The IDirect3DDevice9* COM pointer. Upon disposal, Release will be called on the COM pointer.

shaderRepository opt : Path = null

Path to the shader repository (see IGraphicsContextFactory.ShaderRepository).

availableVideoMemory opt : int32 = 0

[>=0]
See IGraphicsContextFactory.AvailableVideoMemory.

returns → DirectX9Context

The graphics context of null if deviceHandle in is zero.

Creates a new instance of DirectX9Context for the given native handle.

RenderException

If a graphics subsystem error has occurred.

Protected / Constructors

DirectX9Context


protected constructor DirectX9Context → (3)

deviceHandle in : IntPtr

The IDirect3DDevice9* COM pointer. Upon disposal, Release will be called on the COM pointer.

availableVideoMemory in : int32

[>=0]
See IGraphicsContextFactory.AvailableVideoMemory.

shaderRepository in : Path

[not-null]
See IGraphicsContextFactory.ShaderRepository.

Creates a new instance of DirectX9Context.

RenderException

If a graphics subsystem error has occurred.