PipelineTaskΒΆ
Inherited: Object
DescriptionΒΆ
All render tasks must be inherited from this class.
Public MethodsΒΆ
void |
analyze (World * world) |
void |
exec () |
int |
inputCount () const |
inputName (int index) const |
|
bool |
isEnabled () const |
Texture * |
output (int index) |
int |
outputCount () const |
outputName (int index) const |
|
void |
resize (int width, int height) |
void |
setContext (PipelineContext * context) |
void |
setEnabled (bool enable) |
void |
setInput (int index, Texture * source) |
Static MethodsΒΆ
None
Methods DescriptionΒΆ
void PipelineTask::analyze (World * world)
This method can be used to analyze a scene graphs for the provided world.
void PipelineTask::exec ()
Executes the rendering commands associated with this pipeline task.
int PipelineTask::inputCount () const
Return the number of inputs.
TString PipelineTask::inputName (int index) const
Returns by index a name of input.
bool PipelineTask::isEnabled () const
Returns true if task is enabled; otherwise returns false.
Texture * PipelineTask::output (int index)
Returns by index a result of task as a render texture.
int PipelineTask::outputCount () const
Return the number of outputs.
TString PipelineTask::outputName (int index) const
Returns by index a name of output.
void PipelineTask::resize (int width, int height)
A callback to react on screen width and height changed.
void PipelineTask::setContext (PipelineContext * context)
Sets the pipeline context which the given task belongs.
void PipelineTask::setEnabled (bool enable)
Sets task to enable or disable. The disabled effect will not be executed.
See also isEnabled().
void PipelineTask::setInput (int index, Texture * source)
Set a source texture with given index to use it in the render task.