OpenWalnut
1.4.0
|
Update callback which handles the shader reloading. More...
#include <WGEShader.h>
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 243 of file WGEShader.h.
WGEShader::SafeUpdaterCallback::SafeUpdaterCallback | ( | WGEShader * | shader | ) | [explicit] |
Constructor.
Creates a new callback.
shader | the shader which needs to be updated. |
Definition at line 193 of file WGEShader.cpp.
void WGEShader::SafeUpdaterCallback::operator() | ( | osg::Node * | node, |
osg::NodeVisitor * | nv | ||
) | [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.
WGEShader* WGEShader::SafeUpdaterCallback::m_shader [protected] |
The shader belonging to the node currently getting updated.
Definition at line 267 of file WGEShader.h.