DirectX9RenderTarget

Description

class Tinman.AddOns.DirectX9.DirectX9RenderTarget

Derived from

RenderTarget abstract

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

Implementation of the IRenderTarget interface that uses a Direct3D 9 IDirect3DSurface9* COM object.

Protected / Constructors

Direct​X9​Render​Target


protected constructor DirectX9RenderTarget → (5)

size in : Vec2I

The render target size.

format in : RenderTargetFormat

The render target format.

textureHandle in : IntPtr own

The IDirect3DTexture9* COM pointer that has been obtained by calling IDirect3DDevice9::CreateTexture with D3DUSAGE_RENDERTARGET usage. Upon disposal, Release will be called on the COM pointer.

backbufferHandle in : IntPtr own

The IDirect3DSurface9* COM pointer that has been obtained by calling IDirect3DDevice9::CreateRenderTarget resp. IDirect3DDevice9Ex::CreateRenderTargetEx, or IntPtr.Zero (i.e. NULL). Upon disposal, Release will be called on the COM pointer.

depthStencilHandle in : IntPtr own

The IDirect3DSurface9* COM pointer that has been obtained by calling IDirect3DDevice9::CreateDepthStencilSurface resp. IDirect3DDevice9Ex::CreateDepthStencilSurfaceEx, or IntPtr.Zero (i.e. NULL). Upon disposal, Release will be called on the COM pointer.

Creates a new instance of DirectX9RenderTarget.

The backbufferHandle in and textureHandle in parameters a mutually exclusive, i.e. one of them should be IntPtr.Zero.

RenderException

If a graphics subsystem error has occurred.