|
OpenWalnut
1.2.5
|
Update callback which handles the shader reloading. More...
#include <WGEShader.h>
Inheritance diagram for WGEShader::SafeUpdaterCallback:Public Member Functions | |
| SafeUpdaterCallback (WGEShader *shader) | |
| Constructor. | |
| virtual void | operator() (osg::Node *node, osg::NodeVisitor *nv) |
| Callback method called by the NodeVisitor when visiting a node. | |
Protected Attributes | |
| WGEShader * | m_shader |
| The shader belonging to the node currently getting updated. | |
Update callback which handles the shader reloading.
This ensures thread safe modification of the osg node.
Definition at line 249 of file WGEShader.h.
|
explicit |
Constructor.
Creates a new callback.
| shader | the shader which needs to be updated. |
Definition at line 197 of file WGEShader.cpp.
|
virtual |
Callback method called by the NodeVisitor when visiting a node.
This inserts and removes enqueued nodes from this group node instance.
| node | the node calling this update |
| nv | The node visitor which performs the traversal. Should be an update visitor. |
Definition at line 202 of file WGEShader.cpp.
|
protected |
The shader belonging to the node currently getting updated.
Definition at line 274 of file WGEShader.h.
1.8.1