Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <RenderingCallback.hpp>

Public Member Functions | |
| virtual const char * | className () |
| Returns the name of the class. | |
| RenderingCallback () | |
| virtual bool | renderingCallback (const RenderingAbstract *rendering, ERenderingCallback reason)=0 |
| Implements the actual code to be executed upon callback activation. | |
| void | setRemoveAfterCall (bool remove) |
| Defines if the callback shall be removed after being executed. | |
| bool | removeAfterCall () const |
| Defines if the callback shall be removed after being executed. | |
Protected Attributes | |
| float | mRank |
| bool | mRemoveAfterCall |
Install a callback to react to the following two events: vl::RC_PreRendering and vl::RC_PostRendering. The callbacks are executed in the same order in which they appear in the vl::Rendering::renderingCallbacks() collection. For more information see:
| vl::RenderingCallback::RenderingCallback | ( | ) | [inline] |
| virtual const char* vl::RenderingCallback::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::Object.
Reimplemented in vl::BlitFramebuffer, vl::CopyTexSubImage1D, vl::CopyTexSubImage2D, vl::CopyTexSubImage3D, and vl::ReadPixels.
| virtual bool vl::RenderingCallback::renderingCallback | ( | const RenderingAbstract * | rendering, | |
| ERenderingCallback | reason | |||
| ) | [pure virtual] |
Implements the actual code to be executed upon callback activation.
true if the callback reacted to the given reason Implemented in vl::BlitFramebuffer, vl::CopyTexSubImage, and vl::ReadPixels.
| void vl::RenderingCallback::setRemoveAfterCall | ( | bool | remove | ) | [inline] |
Defines if the callback shall be removed after being executed.
Note that the callback is removed only if the renderingCallback() method returns true.
| bool vl::RenderingCallback::removeAfterCall | ( | ) | const [inline] |
Defines if the callback shall be removed after being executed.
Note that the callback is removed only if the renderingCallback() method returns true.
float vl::RenderingCallback::mRank [protected] |
bool vl::RenderingCallback::mRemoveAfterCall [protected] |