GFX360TextureTarget Class Reference

#include <gfx360Target.h>

Inheritance diagram for GFX360TextureTarget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GFX360TextureTarget ()
 ~GFX360TextureTarget ()
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.

Private Attributes

IDirect3DTexture9 * mTargets [MaxRenderSlotId]
U32 mTargetData [MaxRenderSlotId]

Friends

class GFX360Device

Constructor & Destructor Documentation

GFX360TextureTarget::GFX360TextureTarget (  ) 

GFX360TextureTarget::~GFX360TextureTarget (  ) 


Member Function Documentation

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

Returns the size in pixels of this rendering target.

Implements GFXTarget.

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

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

virtual void GFX360TextureTarget::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.


Friends And Related Function Documentation

friend class GFX360Device [friend]

Reimplemented from GFXTarget.


Member Data Documentation

IDirect3DTexture9* GFX360TextureTarget::mTargets[MaxRenderSlotId] [private]

U32 GFX360TextureTarget::mTargetData[MaxRenderSlotId] [private]