Torque3D Documentation / _generateds / GFXWindowTarget

GFXWindowTarget

Engine/source/gfx/gfxTarget.h

A render target associated with an OS window.

More...

Protected Attributes

Public Functions

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

bool

Present latest buffer, if buffer swapping is in effect.

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

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