Torque3D Documentation / _generateds / GFXPCD3D9TextureTarget

GFXPCD3D9TextureTarget

Engine/source/gfx/D3D9/pc/gfxPCD3D9Target.h

More...

Public Friends

Private Attributes

Owning d3d device.

IDirect3DSurface9 *
mTargets [MaxRenderSlotId]

Public Functions

This is called to set the render target.

attachTexture(RenderSlot slot, GFXCubemap * tex, U32 face, U32 mipLevel)

Support binding to cubemaps.

attachTexture(RenderSlot slot, GFXTextureObject * tex, U32 mipLevel, U32 zOffset)

Attach a surface to a given slot as part of this render target.

This is called when the target is not being used anymore.

Returns the texture format of the render target.

Returns the size in pixels of the render target.

Resolve the current render target data to the associated textures.

Note we always copy the Color0 RenderSlot.

When called the resource should restore all device sensitive information destroyed by zombify()

When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.

Detailed Description

Public Friends

Private Attributes

GFXD3D9Device * mDevice 

Owning d3d device.

GFXD3D9TextureObject * mResolveTargets [MaxRenderSlotId]
GFXFormat mTargetFormat 
IDirect3DSurface9 * mTargets [MaxRenderSlotId]
Point2I mTargetSize 

Public Functions

GFXPCD3D9TextureTarget()

~GFXPCD3D9TextureTarget()

activate()

Reimplemented from: GFXTarget

attachTexture(RenderSlot slot, GFXCubemap * tex, U32 face, U32 mipLevel)

Reimplemented from: GFXTextureTarget

attachTexture(RenderSlot slot, GFXTextureObject * tex, U32 mipLevel, U32 zOffset)

Reimplemented from: GFXTextureTarget

deactivate()

Reimplemented from: GFXTarget

getFormat()

Reimplemented from: GFXTarget

getSize()

Reimplemented from: GFXTarget

resolve()

Reimplemented from: GFXTextureTarget

resolveTo(GFXTextureObject * tex)

Reimplemented from: GFXTarget

resurrect()

Reimplemented from: GFXResource

zombify()

Reimplemented from: GFXResource