GFXWindowTarget
A render target associated with an OS window.
Protected Attributes
Public Functions
GFXWindowTarget(PlatformWindow * windowObject)
Returns a pointer to the window this target is bound to.
bool
present()
Present latest buffer, if buffer swapping is in effect.
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.
Protected Attributes
PlatformWindow * mWindow
Public Functions
GFXWindowTarget()
GFXWindowTarget(PlatformWindow * windowObject)
~GFXWindowTarget()
getWindow()
Returns a pointer to the window this target is bound to.
present()
Present latest buffer, if buffer swapping is in effect.
Reimplemented by: GFXD3D11WindowTarget, GFXGLWindowTarget, GFXNullWindowTarget
resetMode()
Notify the target that the video mode on the window has changed.
Reimplemented by: GFXD3D11WindowTarget, GFXGLWindowTarget, GFXNullWindowTarget