GFXTarget Class Reference

#include <gfxTarget.h>

Inheritance diagram for GFXTarget:

Inheritance graph
[legend]
List of all members.

Detailed Description

Base class for a target to which GFX can render.

Most modern graphics hardware supports selecting render targets. However, there may be multiple types of render target, with wildly varying device-level implementations, resource requirements, and so forth.

This base class is used to represent a render target; it might be a context tied to a window, or a set of surfaces or textures.


Public Member Functions

 GFXTarget ()
 Constructor to initialize the state tracking logic.
virtual ~GFXTarget ()
const bool isPendingState () const
 Called to check if we have pending state for the device to apply.
virtual const Point2I getSize ()=0
 Returns the size in pixels of this rendering target.
virtual const String describeSelf () const
 The resource should put a description of itself (number of vertices, size/width of texture, etc.) in buffer.
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.

Protected Member Functions

void invalidateState ()
 Called whenever a change is made to this target.
void stateApplied ()
 Called when the device has applied pending state.

Private Attributes

S32 mChangeToken
S32 mLastAppliedChange

Friends

class GFXD3D9Device
class GFX360Device


Constructor & Destructor Documentation

GFXTarget::GFXTarget (  )  [inline]

Constructor to initialize the state tracking logic.

virtual GFXTarget::~GFXTarget (  )  [inline, virtual]


Member Function Documentation

void GFXTarget::invalidateState (  )  [inline, protected]

Called whenever a change is made to this target.

Reimplemented in GFXD3D8TextureTarget.

void GFXTarget::stateApplied (  )  [inline, protected]

Called when the device has applied pending state.

Reimplemented in GFXD3D8TextureTarget.

const bool GFXTarget::isPendingState (  )  const [inline]

Called to check if we have pending state for the device to apply.

Reimplemented in GFXD3D8TextureTarget.

virtual const Point2I GFXTarget::getSize (  )  [pure virtual]

virtual const String GFXTarget::describeSelf (  )  const [virtual]

The resource should put a description of itself (number of vertices, size/width of texture, etc.) in buffer.

Implements GFXResource.

Reimplemented in GFXGLTextureTarget.

virtual void GFXTarget::activate (  )  [inline, virtual]

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

Reimplemented in GFXD3D9TextureTarget, and GFXD3D9WindowTarget.

virtual void GFXTarget::deactivate (  )  [inline, virtual]

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

Reimplemented in GFXD3D9TextureTarget.


Friends And Related Function Documentation

friend class GFXD3D9Device [friend]

Reimplemented in GFXD3D9TextureTarget, and GFXD3D9WindowTarget.

friend class GFX360Device [friend]

Reimplemented in GFX360TextureTarget.


Member Data Documentation

Reimplemented in GFXD3D8TextureTarget.