Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Callback object used to update/animate a Shader during the rendering. More...
#include <Shader.hpp>
Public Member Functions | |
ShaderAnimator () | |
virtual void | updateShader (Shader *shader, Camera *camera, real cur_time)=0 |
Reimplement this function to update/animate a Shader. | |
void | setEnabled (bool enable) |
Whether the ShaderAnimator is enabled or not. | |
bool | isEnabled () const |
Whether the ShaderAnimator is enabled or not. | |
Protected Attributes | |
bool | mEnabled |
Callback object used to update/animate a Shader during the rendering.
The updateShader() method will be called whenever a visible object uses the Shader to which the ShaderAnimator is bound.
Definition at line 1800 of file Shader.hpp.
vl::ShaderAnimator::ShaderAnimator | ( | ) | [inline] |
Definition at line 1805 of file Shader.hpp.
virtual void vl::ShaderAnimator::updateShader | ( | Shader * | shader, |
Camera * | camera, | ||
real | cur_time | ||
) | [pure virtual] |
Reimplement this function to update/animate a Shader.
shader | the Shader to be updated. |
camera | the camera used for the current rendering. |
cur_time | the current animation time. |
Referenced by vl::Rendering::fillRenderQueue().
void vl::ShaderAnimator::setEnabled | ( | bool | enable ) | [inline] |
Whether the ShaderAnimator is enabled or not.
Definition at line 1815 of file Shader.hpp.
bool vl::ShaderAnimator::isEnabled | ( | ) | const [inline] |
Whether the ShaderAnimator is enabled or not.
Definition at line 1818 of file Shader.hpp.
Referenced by vl::Rendering::fillRenderQueue().
bool vl::ShaderAnimator::mEnabled [protected] |
Definition at line 1821 of file Shader.hpp.