DirectX9Context

Description

sealed 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 IDirect3DDevice9Ex* COM pointer.

The returned INativeHandles can be interpreted as follows:

Using Direct3D 9 imposes the following restrictions:

Public / Constructors

For​Device


[OwnerReturn]
public static method ForDevice → (4)

deviceHandle in : IntPtr own

The IDirect3DDevice9Ex* 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.

maximumTextureSize opt : int32 = 0

[>=0]
See IGraphicsContextFactory.MaximumTextureSize.

returns → DirectX9Context

The graphics context or 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.