An AbstractTask to set transformation matrices in programs. More...
#include <SetTransformsTask.h>
Public Member Functions | |
SetTransformsTask (const string &screen, QualifiedName m, const char *t, const char *ltow, const char *ltos, const char *ctow, const char *ctos, const char *stoc, const char *wtos, const char *wp, const char *wd) | |
Creates a new SetTransformsTask. | |
virtual | ~SetTransformsTask () |
Deletes this SetTransformsTask. | |
virtual ptr< Task > | getTask (ptr< Object > context) |
Creates a new task. | |
Protected Member Functions | |
SetTransformsTask () | |
Creates an uninitialized SetTransformsTask. | |
void | init (const string &screen, QualifiedName m, const char *t, const char *ltow, const char *ltos, const char *ctow, const char *ctos, const char *stoc, const char *wtos, const char *wp, const char *wd) |
Initializes this SetTransformsTask. | |
void | swap (ptr< SetTransformsTask > t) |
Swaps this SetTransformsTask with the given one. |
An AbstractTask to set transformation matrices in programs.
ork::SetTransformsTask::SetTransformsTask | ( | const string & | screen, | |
QualifiedName | m, | |||
const char * | t, | |||
const char * | ltow, | |||
const char * | ltos, | |||
const char * | ctow, | |||
const char * | ctos, | |||
const char * | stoc, | |||
const char * | wtos, | |||
const char * | wp, | |||
const char * | wd | |||
) |
Creates a new SetTransformsTask.
screen | the "screen" node to be used for transformation involving the "screen" space. An empty name means the "real" screen space of the camera node. | |
m | a "node.module" qualified name. The first part specifies the scene node that contains the module. The second part specifies the name of a module in this node. This module is used to find the uniforms that this task must set. | |
t | the vec2 uniform that contains time of current frame and time elapsed since last frame. | |
ltow | the mat4 uniform to be set to the local to world transformation. | |
ltos | the mat4 uniform to be set to the local to screen transformation. | |
ctow | the mat4 uniform to be set to the camera to world transformation. | |
ctos | the mat4 uniform to be set to the camera to screen transformation. | |
stoc | the mat4 uniform to be set to the screen to camera transformation. | |
wtos | the mat4 uniform to be set to the world to screen transformation. | |
wp | the vec3 uniform to be set to the world coordinates of the origin of the local frame. | |
wd | the vec3 uniform to be set to the world coordinates of the unit z vector of the local frame. |
virtual ork::SetTransformsTask::~SetTransformsTask | ( | ) | [virtual] |
Deletes this SetTransformsTask.
ork::SetTransformsTask::SetTransformsTask | ( | ) | [protected] |
Creates an uninitialized SetTransformsTask.
Creates a new task.
context | an optional parameter to control the task creation. |
Implements ork::TaskFactory.
void ork::SetTransformsTask::init | ( | const string & | screen, | |
QualifiedName | m, | |||
const char * | t, | |||
const char * | ltow, | |||
const char * | ltos, | |||
const char * | ctow, | |||
const char * | ctos, | |||
const char * | stoc, | |||
const char * | wtos, | |||
const char * | wp, | |||
const char * | wd | |||
) | [protected] |
Initializes this SetTransformsTask.
See SetTransformsTask.
void ork::SetTransformsTask::swap | ( | ptr< SetTransformsTask > | t | ) | [protected] |
Swaps this SetTransformsTask with the given one.
t | a SetTransformsTask. |