![]() |
OGRE-Next 3.0.0
Object-Oriented Graphics Rendering Engine
|
Base class that users can derive from in order to implement custom passes for the compositor. More...
#include <OgreCompositorPassProvider.h>
Public Member Functions | |
virtual | ~CompositorPassProvider () |
virtual CompositorPass * | addPass (const CompositorPassDef *definition, Camera *defaultCamera, CompositorNode *parentNode, const RenderTargetViewDef *rtvDef, SceneManager *sceneManager)=0 |
Creates a CompositorPass from a CompositorPassDef for Compositor Pass of type 'custom'. | |
virtual CompositorPassDef * | addPassDef (CompositorPassType passType, IdString customId, CompositorTargetDef *parentTargetDef, CompositorNodeDef *parentNodeDef)=0 |
Called from CompositorTargetDef::addPass when adding a Compositor Pass of type 'custom'. | |
virtual void | translateCustomPass (const AbstractNodePtr &node, CompositorPassDef *customPassDef) |
virtual void | translateCustomPass (ScriptCompiler *compiler, const AbstractNodePtr &node, IdString customId, CompositorPassDef *customPassDef) |
Optional override which allows users to define custom properties in the compositor scripts for custom passes. | |
Base class that users can derive from in order to implement custom passes for the compositor.
The first one is this class. You need to overload the two public virtuals. i.e. CompositorPassDef* MyProvider::addPassDef( ... ) { return OGRE_NEW MyPassDef( ... ); }
CompositorPass* MyProvider::addPass( ... ) { return OGRE_NEW MyPass( ... ); }
The second and third one are the implementations.
|
virtual |
|
pure virtual |
Creates a CompositorPass from a CompositorPassDef for Compositor Pass of type 'custom'.
|
pure virtual |
Called from CompositorTargetDef::addPass when adding a Compositor Pass of type 'custom'.
passType | |
customId | Arbitrary ID in case there is more than one type of custom pass you want to implement. Defaults to IdString() |
parentTargetDef | |
parentNodeDef |
|
inlinevirtual |
References translateCustomPass().
|
inlinevirtual |
Optional override which allows users to define custom properties in the compositor scripts for custom passes.
node | The AST node for this pass |
customPassDef | The CompositorPassDef returned in CompositorPassProvider::addPassDef |
References translateCustomPass().
Referenced by translateCustomPass(), and translateCustomPass().