Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
An abstract class used to react to rendering events. More...
#include <RenderEventCallback.hpp>
Public Member Functions | |
| virtual const char * | className () |
| Returns the name of the class. | |
| RenderEventCallback () | |
| virtual bool | onRenderingStarted (const RenderingAbstract *)=0 |
| Reimplement to react to this event. | |
| virtual bool | onRenderingFinished (const RenderingAbstract *)=0 |
| Reimplement to react to this event. | |
| virtual bool | onRendererStarted (const RendererAbstract *)=0 |
| Reimplement to react to this event. | |
| virtual bool | onRendererFinished (const RendererAbstract *)=0 |
| Reimplement to react to this event. | |
| 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. | |
| void | setEnabled (bool enabled) |
| Enabled/disabled callback. | |
| bool | isEnabled () const |
| Whether the callback is enabled or not. | |
Protected Attributes | |
| bool | mRemoveAfterCall |
| bool | mEnabled |
An abstract class used to react to rendering events.
You can bind a callback to both Rendering and Renderer. The callbacks are executed in the same order in which they appear in the containing collection.
| vl::RenderEventCallback::RenderEventCallback | ( | ) | [inline] |
| virtual const char* vl::RenderEventCallback::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::Object.
Reimplemented in vl::BlitFramebuffer, vl::CopyTexSubImage, vl::CopyTexSubImage1D, vl::CopyTexSubImage2D, vl::CopyTexSubImage3D, and vl::ReadPixels.
| virtual bool vl::RenderEventCallback::onRenderingStarted | ( | const RenderingAbstract * | ) | [pure virtual] |
Reimplement to react to this event.
true if the callback reacted to the given event. Implemented in vl::BlitFramebuffer, vl::CopyTexSubImage, and vl::ReadPixels.
| virtual bool vl::RenderEventCallback::onRenderingFinished | ( | const RenderingAbstract * | ) | [pure virtual] |
Reimplement to react to this event.
true if the callback reacted to the given event. Implemented in vl::BlitFramebuffer, vl::CopyTexSubImage, and vl::ReadPixels.
| virtual bool vl::RenderEventCallback::onRendererStarted | ( | const RendererAbstract * | ) | [pure virtual] |
Reimplement to react to this event.
true if the callback reacted to the given event. Implemented in vl::BlitFramebuffer, vl::CopyTexSubImage, and vl::ReadPixels.
| virtual bool vl::RenderEventCallback::onRendererFinished | ( | const RendererAbstract * | ) | [pure virtual] |
Reimplement to react to this event.
true if the callback reacted to the given event. Implemented in vl::BlitFramebuffer, vl::CopyTexSubImage, and vl::ReadPixels.
| void vl::RenderEventCallback::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::RenderEventCallback::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.
| void vl::RenderEventCallback::setEnabled | ( | bool | enabled ) | [inline] |
Enabled/disabled callback.
Disabled callbacks won't be notified of any event.
| bool vl::RenderEventCallback::isEnabled | ( | ) | const [inline] |
Whether the callback is enabled or not.
Disabled callbacks won't be notified of any event.
bool vl::RenderEventCallback::mRemoveAfterCall [protected] |
bool vl::RenderEventCallback::mEnabled [protected] |