GFXD3D9WindowTarget Class Reference

#include <gfxD3D9Target.h>

Inheritance diagram for GFXD3D9WindowTarget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GFXD3D9WindowTarget ()
 ~GFXD3D9WindowTarget ()
virtual const Point2I getSize ()
 Returns the size in pixels of this rendering target.
virtual bool present ()
 Present latest buffer, if buffer swapping is in effect.
void initPresentationParams ()
void setImplicitSwapChain ()
void createAdditionalSwapChain ()
virtual void activate ()
 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 Member Functions

void resetMode ()
 Internal interface that notifies us we need to reset our video mode.

Private Attributes

IDirect3DSurface9 * mDepthStencil
 Our depth stencil buffer, if any.
IDirect3DSurface9 * mBackbuffer
 Our backbuffer.
Point2I mSize
 Maximum size we can render to.
IDirect3DSwapChain9 * mSwapChain
 Our swap chain, potentially the implicit device swap chain.
D3DPRESENT_PARAMETERS mPresentationParams
 D3D presentation info.
GFXD3D9DevicemDevice
 Owning d3d device.
bool mImplicit
 Is this the implicit swap chain?

Friends

class GFXD3D9Device

Constructor & Destructor Documentation

GFXD3D9WindowTarget::GFXD3D9WindowTarget (  ) 

GFXD3D9WindowTarget::~GFXD3D9WindowTarget (  ) 


Member Function Documentation

void GFXD3D9WindowTarget::resetMode (  )  [private, virtual]

Internal interface that notifies us we need to reset our video mode.

Implements GFXWindowTarget.

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

Returns the size in pixels of this rendering target.

Implements GFXTarget.

virtual bool GFXD3D9WindowTarget::present (  )  [virtual]

Present latest buffer, if buffer swapping is in effect.

Implements GFXWindowTarget.

void GFXD3D9WindowTarget::initPresentationParams (  ) 

void GFXD3D9WindowTarget::setImplicitSwapChain (  ) 

void GFXD3D9WindowTarget::createAdditionalSwapChain (  ) 

virtual void GFXD3D9WindowTarget::activate (  )  [virtual]

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

Reimplemented from GFXTarget.

void GFXD3D9WindowTarget::zombify (  )  [virtual]

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

Implements GFXResource.

void GFXD3D9WindowTarget::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* GFXD3D9WindowTarget::mDepthStencil [private]

Our depth stencil buffer, if any.

IDirect3DSurface9* GFXD3D9WindowTarget::mBackbuffer [private]

Our backbuffer.

Maximum size we can render to.

IDirect3DSwapChain9* GFXD3D9WindowTarget::mSwapChain [private]

Our swap chain, potentially the implicit device swap chain.

D3DPRESENT_PARAMETERS GFXD3D9WindowTarget::mPresentationParams [private]

D3D presentation info.

Owning d3d device.

Is this the implicit swap chain?