An AbstractTask to set a program. More...
#include <SetProgramTask.h>
Public Member Functions | |
SetProgramTask (const vector< QualifiedName > &modules, bool setUniforms) | |
Creates a SetProgramTask. | |
virtual | ~SetProgramTask () |
Deletes this SetProgramTask. | |
virtual ptr< Task > | getTask (ptr< Object > context) |
Creates a new task. | |
Protected Member Functions | |
SetProgramTask () | |
Creates an uninitialized SetProgramTask. | |
void | init (const vector< QualifiedName > &modules, bool setUniforms) |
Initializes this SetProgramTask. | |
void | swap (ptr< SetProgramTask > t) |
Swaps this SetProgramTask with the given one. |
An AbstractTask to set a program.
ork::SetProgramTask::SetProgramTask | ( | const vector< QualifiedName > & | modules, | |
bool | setUniforms | |||
) |
Creates a SetProgramTask.
modules | the modules of the program to be set. Each module is specified by a "node.module" qualified name. The first part specifies the scene node that contains the module. The second part specifies the name of the module in this node. | |
setUniforms | true to set the uniforms of the program, using the values defined in the scene node from which this task is called. |
virtual ork::SetProgramTask::~SetProgramTask | ( | ) | [virtual] |
Deletes this SetProgramTask.
ork::SetProgramTask::SetProgramTask | ( | ) | [protected] |
Creates an uninitialized SetProgramTask.
Creates a new task.
context | an optional parameter to control the task creation. |
Implements ork::TaskFactory.
void ork::SetProgramTask::init | ( | const vector< QualifiedName > & | modules, | |
bool | setUniforms | |||
) | [protected] |
Initializes this SetProgramTask.
modules | the modules of the program to be set. Each module is specified by a "node.module" qualified name. The first part specifies the scene node that contains the module. The second part specifies the name of the module in this node. | |
setUniforms | true to set the uniforms of the program, using the values defined in the scene node from which this task is called. |
void ork::SetProgramTask::swap | ( | ptr< SetProgramTask > | t | ) | [protected] |
Swaps this SetProgramTask with the given one.
t | a SetProgramTask. |