| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/alternativetechniquegl.h>

Public Member Functions | |
| AlternativeTechniqueGL () | |
| virtual bool | canBeUsed (Engine *) const |
| virtual void | start (Engine *) |
| virtual void | stop (Engine *) |
| virtual bool | preparePass (Engine *) |
| virtual void | finishPass (Engine *) |
| virtual void | nextPass (Engine *) |
| virtual bool | prepareEval (Engine *engine, const Shape *shape) |
| virtual void | finishEval (Engine *engine, const Shape *shape) |
| VRS_TYPEINFO (AlternativeTechniqueGL, TechniqueGL) | |
| VRS::AlternativeTechniqueGL::AlternativeTechniqueGL | ( | ) |
AlternativeTechniqueGL allows alpha blending between different alternative parts of a scene. To control the intensity of a scene part, use the Alternative attribute.
Also see the comments to the Alternative attribute
| virtual bool VRS::AlternativeTechniqueGL::canBeUsed | ( | Engine * | ) | const [virtual] |
May check for extensions of the low rendering system which would be necessary for the technique to run.
Reimplemented from VRS::Technique.
| virtual void VRS::AlternativeTechniqueGL::start | ( | Engine * | ) | [virtual] |
Starts a technique. For all techniques in the scene graph, this method is called at the end of the pretraversal. The default behaviour is to add all passes in the pass array to the current TechniqueProcessor. If this is expected, subclasses should call "Technique::class()".
Reimplemented from VRS::Technique.
| virtual void VRS::AlternativeTechniqueGL::stop | ( | Engine * | ) | [virtual] |
Stops a technique. For all techniques in the scene graph, this method is called in the method "stop()" of the TechniqueProcessor.
Reimplemented from VRS::Technique.
| virtual bool VRS::AlternativeTechniqueGL::preparePass | ( | Engine * | ) | [virtual] |
For an active technique, this method is invoked before the traversal of the scene graph in a rendering pass. Settings of the low-level rendering system valid for the whole rendering pass should be made here. "preparePass()" can return false, which indicates that the technique does not need to evaluate the scene graph. However, if at least one of the active techniques returns true, the scene graph is evaluated.
Implements VRS::Technique.
| virtual void VRS::AlternativeTechniqueGL::finishPass | ( | Engine * | ) | [virtual] |
For an active technique, this method is invoked after the traversal of the scene graph. The changes made in "preparePass()" should be undone here
Implements VRS::Technique.
| virtual void VRS::AlternativeTechniqueGL::nextPass | ( | Engine * | ) | [virtual] |
For an active technique, this method is also invoked after the traversal of the scene graph. If a technique decides that it needs to redo a rendering pass, it can tell the TechniqueProcessor here, using "addPass()"
Reimplemented from VRS::Technique.
| virtual bool VRS::AlternativeTechniqueGL::prepareEval | ( | Engine * | engine, | |
| const Shape * | shape | |||
| ) | [virtual] |
For an active Technique, this method is invoked before the evaluation of a shape. Settings of the low-level rendering system only needed for certain shapes (usually indicated by special attributes) should be applied here. "prepareEval()" can forbid the evaluation of a shape by returning false. In this case, even when all other active techniques return true, the shape is not evaluated.
Implements VRS::Technique.
| virtual void VRS::AlternativeTechniqueGL::finishEval | ( | Engine * | engine, | |
| const Shape * | shape | |||
| ) | [virtual] |
For an active Technique, this method is invoked after the evaluation of a shape (also when shape evaluation was forbidden in "prepareEval()"). Changes made in "prepareEval()" should be undone here.
Implements VRS::Technique.
| VRS::AlternativeTechniqueGL::VRS_TYPEINFO | ( | AlternativeTechniqueGL | , | |
| TechniqueGL | ||||
| ) |