OpenWalnut  1.4.0
Public Member Functions | Protected Attributes | List of all members
WGEShader::SafeUpdaterCallback Class Reference

Update callback which handles the shader reloading. More...

#include <WGEShader.h>

+ Inheritance 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

WGEShaderm_shader
 The shader belonging to the node currently getting updated. More...
 

Detailed Description

Update callback which handles the shader reloading.

This ensures thread safe modification of the osg node.

Definition at line 247 of file WGEShader.h.

Constructor & Destructor Documentation

WGEShader::SafeUpdaterCallback::SafeUpdaterCallback ( WGEShader shader)
explicit

Constructor.

Creates a new callback.

Parameters
shaderthe shader which needs to be updated.

Definition at line 193 of file WGEShader.cpp.

Member Function Documentation

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.

Parameters
nodethe node calling this update
nvThe node visitor which performs the traversal. Should be an update visitor.

Definition at line 198 of file WGEShader.cpp.

Member Data Documentation

WGEShader* WGEShader::SafeUpdaterCallback::m_shader
protected

The shader belonging to the node currently getting updated.

Definition at line 271 of file WGEShader.h.


The documentation for this class was generated from the following files: