Crazy Eddie's GUI System 0.8.7
|
Interface for objects that hook into RenderingWindow to affect the rendering process, thus allowing various effects to be achieved. More...
#include <RenderEffect.h>
Public Member Functions | |
virtual int | getPassCount () const =0 |
Return the number of passes required by this effect. | |
virtual void | performPreRenderFunctions (const int pass)=0 |
Function called prior to RenderingWindow::draw being called. This is intended to be used for any required setup / state initialisation and is called once for each pass in the effect. | |
virtual void | performPostRenderFunctions ()=0 |
Function called after RenderingWindow::draw is called. This is intended to be used for any required cleanup / state restoration. This function is called once only, unlike performPreRenderFunctions which may be called multiple times; once for each pass in the effect. | |
virtual bool | realiseGeometry (RenderingWindow &window, GeometryBuffer &geometry)=0 |
Function called to generate geometry for the RenderingWindow. | |
virtual bool | update (const float elapsed, RenderingWindow &window)=0 |
Function called to perform any time based updates on the RenderEffect state. | |
Interface for objects that hook into RenderingWindow to affect the rendering process, thus allowing various effects to be achieved.
Return the number of passes required by this effect.
Function called after RenderingWindow::draw is called. This is intended to be used for any required cleanup / state restoration. This function is called once only, unlike performPreRenderFunctions which may be called multiple times; once for each pass in the effect.
Function called prior to RenderingWindow::draw being called. This is intended to be used for any required setup / state initialisation and is called once for each pass in the effect.
pass | Indicates the pass number to be initialised (starting at pass 0). |
|
pure virtual |
Function called to generate geometry for the RenderingWindow.
The geometry generated should be fully unclipped and window local. The origin for the geometry is located at the top-left corner.
window | The RenderingWindow object that is being processed. |
geometry | GeometryBuffer object where the generated geometry should be added. This object will be cleared before this function is invoked. |
|
pure virtual |
Function called to perform any time based updates on the RenderEffect state.
elapsed | The number of seconds that have elapsed since the last time this function was called. |
window | RenderingWindow object that the RenderEffect is being applied to. |