An AbstractTask to set the attachments of a framebuffer. More...
#include <SetTargetTask.h>
Classes | |
struct | Target |
A framebuffer attachment specification. More... | |
Public Member Functions | |
SetTargetTask (const vector< Target > &targets, bool autoResize) | |
Creates a new SetTargetTask. | |
virtual | ~SetTargetTask () |
Deletes this SetTargetTask. | |
virtual ptr< Task > | getTask (ptr< Object > context) |
Creates a new task. | |
Static Public Member Functions | |
static ptr< FrameBuffer > | getOffscreenBuffer () |
Returns a shared offscreen framebuffer. | |
Protected Member Functions | |
SetTargetTask () | |
Creates an uninitialized SetTargetTask. | |
void | init (const vector< Target > &targets, bool autoResize) |
Initializes this SetTargetTask. | |
void | swap (ptr< SetTargetTask > t) |
Swaps this SetTargetTask with the given one. |
An AbstractTask to set the attachments of a framebuffer.
ork::SetTargetTask::SetTargetTask | ( | const vector< Target > & | targets, | |
bool | autoResize | |||
) |
Creates a new SetTargetTask.
targets | the framebuffer attachments to be set. | |
autoResize | true to automatically resize the target textures to the default framebuffer viewport size. |
virtual ork::SetTargetTask::~SetTargetTask | ( | ) | [virtual] |
Deletes this SetTargetTask.
ork::SetTargetTask::SetTargetTask | ( | ) | [protected] |
Creates an uninitialized SetTargetTask.
static ptr<FrameBuffer> ork::SetTargetTask::getOffscreenBuffer | ( | ) | [static] |
Returns a shared offscreen framebuffer.
Creates a new task.
context | an optional parameter to control the task creation. |
Implements ork::TaskFactory.
void ork::SetTargetTask::init | ( | const vector< Target > & | targets, | |
bool | autoResize | |||
) | [protected] |
Initializes this SetTargetTask.
targets | the framebuffer attachments to be set. | |
autoResize | true to automatically resize the target textures to the default framebuffer viewport size. |
void ork::SetTargetTask::swap | ( | ptr< SetTargetTask > | t | ) | [protected] |
Swaps this SetTargetTask with the given one.
t | a SetTargetTask. |