An AbstractTask to draw a mesh. More...
#include <DrawMeshTask.h>
Public Member Functions | |
DrawMeshTask (const QualifiedName &mesh, int count=1) | |
Creates a new DrawMeshTask. | |
virtual | ~DrawMeshTask () |
Deletes this DrawMeshTask. | |
virtual ptr< Task > | getTask (ptr< Object > context) |
Creates a new task. | |
Protected Member Functions | |
DrawMeshTask () | |
Creates an empty DrawMeshTask. | |
void | init (const QualifiedName &mesh, int count) |
Initializes this DrawMeshTask. | |
void | swap (ptr< DrawMeshTask > t) |
Swaps this DrawMeshTask with anoter one. |
An AbstractTask to draw a mesh.
The mesh is drawn using the current framebuffer and the current program.
ork::DrawMeshTask::DrawMeshTask | ( | const QualifiedName & | mesh, | |
int | count = 1 | |||
) |
Creates a new DrawMeshTask.
mesh | a "node.mesh" qualified name. The first part specifies the scene node that contains the mesh. The second part specifies the name of the mesh in this node. | |
count | the number of time this mesh must be drawn. |
virtual ork::DrawMeshTask::~DrawMeshTask | ( | ) | [virtual] |
Deletes this DrawMeshTask.
ork::DrawMeshTask::DrawMeshTask | ( | ) | [protected] |
Creates an empty DrawMeshTask.
Creates a new task.
context | an optional parameter to control the task creation. |
Implements ork::TaskFactory.
void ork::DrawMeshTask::init | ( | const QualifiedName & | mesh, | |
int | count | |||
) | [protected] |
Initializes this DrawMeshTask.
mesh | a "node.mesh" qualified name. The first part specifies the scene node that contains the mesh. The second part specifies the name of the mesh in this node. | |
count | the number of time this mesh must be drawn. |
void ork::DrawMeshTask::swap | ( | ptr< DrawMeshTask > | t | ) | [protected] |
Swaps this DrawMeshTask with anoter one.
t | a DrawMeshTask. |