PipelineTask

Inherited: None

Description

All render tasks must be inherited from this class.

Public Methods

void

analyze (World * world)

void

exec ()

void

filterByLayer (const RenderList & in, PipelineTask::GroupList & out, int layer) const

void

group (const PipelineTask::GroupList & in, PipelineTask::GroupList & out) const

int

inputCount () const

TString

inputName (int index) const

bool

isEnabled () const

Texture *

output (int index)

int

outputCount () const

TString

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.


void PipelineTask::filterByLayer (RenderList & in, PipelineTask::GroupList & out, int layer) const

Filters out an in renderable components by it’s material layer.


void PipelineTask::group (PipelineTask::GroupList & in, PipelineTask::GroupList & out) const

Groups elements from in list into out rendering instances.


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.