GFXD3D9TextureTarget Class Reference

#include <gfxD3D9Target.h>

Inheritance diagram for GFXD3D9TextureTarget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GFXD3D9TextureTarget ()
 ~GFXD3D9TextureTarget ()
virtual const Point2I getSize ()
 Returns the size in pixels of this rendering target.
virtual void attachTexture (RenderSlot slot, GFXTextureObject *tex, U32 mipLevel=0, U32 zOffset=0)
virtual void attachTexture (RenderSlot slot, GFXCubemap *tex, U32 face, U32 mipLevel=0)
virtual void clearAttachments ()
 Detach all bound textures.
virtual void activate ()
 This is called when the target is not being used anymore.
virtual void deactivate ()
 This is called when the target is not being used anymore.
void zombify ()
 When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.
void resurrect ()
 When called the resource should restore all device sensitive information destroyed by zombify().

Private Attributes

IDirect3DSurface9 * mTargets [MaxRenderSlotId]
GFXD3D9TextureObjectmTextures [MaxRenderSlotId]
GFXD3D9DevicemDevice
 Owning d3d device.

Friends

class GFXD3D9Device

Constructor & Destructor Documentation

GFXD3D9TextureTarget::GFXD3D9TextureTarget (  ) 

GFXD3D9TextureTarget::~GFXD3D9TextureTarget (  ) 


Member Function Documentation

virtual const Point2I GFXD3D9TextureTarget::getSize (  )  [virtual]

Returns the size in pixels of this rendering target.

Implements GFXTarget.

virtual void GFXD3D9TextureTarget::attachTexture ( RenderSlot  slot,
GFXTextureObject tex,
U32  mipLevel = 0,
U32  zOffset = 0 
) [virtual]

virtual void GFXD3D9TextureTarget::attachTexture ( RenderSlot  slot,
GFXCubemap tex,
U32  face,
U32  mipLevel = 0 
) [virtual]

virtual void GFXD3D9TextureTarget::clearAttachments (  )  [virtual]

Detach all bound textures.

This is a helper function to make it easy to make sure a GFXTextureTarget is entirely empty before you move on to other rendering tasks. Because a GFXTextureTarget will keep references to bound GFXTextureObjects, not clearing can results in resource leaks and hard to track down bugs.

Implements GFXTextureTarget.

virtual void GFXD3D9TextureTarget::activate (  )  [virtual]

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

Reimplemented from GFXTarget.

virtual void GFXD3D9TextureTarget::deactivate (  )  [virtual]

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

Reimplemented from GFXTarget.

void GFXD3D9TextureTarget::zombify (  )  [virtual]

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

Implements GFXResource.

void GFXD3D9TextureTarget::resurrect (  )  [virtual]

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

Implements GFXResource.


Friends And Related Function Documentation

friend class GFXD3D9Device [friend]

Reimplemented from GFXTarget.


Member Data Documentation

IDirect3DSurface9* GFXD3D9TextureTarget::mTargets[MaxRenderSlotId] [private]

Owning d3d device.