![]() |
OpenWalnut
1.5.0dev
|
Update callback which handles the shader reloading. More...
#include <WGEShader.h>
Inheritance diagram for WGEShader::SafeUpdaterCallback:
Collaboration diagram for WGEShader::SafeUpdaterCallback:Public Member Functions | |
| SafeUpdaterCallback (WGEShader *shader) | |
| Constructor. More... | |
| virtual void | operator() (osg::Node *node, osg::NodeVisitor *nv) |
| Callback method called by the NodeVisitor when visiting a node. More... | |
Protected Attributes | |
| WGEShader * | m_shader |
| The shader belonging to the node currently getting updated. More... | |
Update callback which handles the shader reloading.
This ensures thread safe modification of the osg node.
Definition at line 246 of file WGEShader.h.
|
explicit |
Constructor.
Creates a new callback.
| shader | the shader which needs to be updated. |
Definition at line 193 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 198 of file WGEShader.cpp.
|
protected |
The shader belonging to the node currently getting updated.
Definition at line 270 of file WGEShader.h.