GFXWindowTarget Class Reference

#include <gfxTarget.h>

Inheritance diagram for GFXWindowTarget:

Inheritance graph
[legend]
List of all members.

Detailed Description

A render target associated with an OS window.

Various API/OS combinations will implement their own GFXTargets for rendering to a window. However, they are all subclasses of GFXWindowTarget.

This allows platform-neutral code to safely distinguish between various types of render targets (using dynamic_cast<>), as well as letting it gain access to useful things like the corresponding PlatformWindow.


Public Member Functions

 GFXWindowTarget ()
 GFXWindowTarget (PlatformWindow *windowObject)
virtual ~GFXWindowTarget ()
PlatformWindowgetWindow ()
 Returns a pointer to the window this target is bound to.
virtual bool present ()=0
 Present latest buffer, if buffer swapping is in effect.
virtual void resetMode ()=0
 Notify the target that the video mode on the window has changed.

Protected Attributes

PlatformWindowmWindow


Constructor & Destructor Documentation

GFXWindowTarget::GFXWindowTarget (  )  [inline]

GFXWindowTarget::GFXWindowTarget ( PlatformWindow windowObject  )  [inline]

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


Member Function Documentation

PlatformWindow* GFXWindowTarget::getWindow (  )  [inline]

Returns a pointer to the window this target is bound to.

virtual bool GFXWindowTarget::present (  )  [pure virtual]

Present latest buffer, if buffer swapping is in effect.

Implemented in GFXD3D8WindowTarget, GFXD3D9WindowTarget, GFXGLWindowTarget, and GFXNullWindowTarget.

virtual void GFXWindowTarget::resetMode (  )  [pure virtual]

Notify the target that the video mode on the window has changed.

Implemented in GFXD3D8WindowTarget, GFXD3D9WindowTarget, GFXGLWindowTarget, and GFXNullWindowTarget.


Member Data Documentation