OpenWalnut  1.4.0
Public Member Functions | Protected Attributes
WGEShader::SafeUpdaterCallback Class Reference

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

#include <WGEShader.h>

+ Inheritance diagram for WGEShader::SafeUpdaterCallback:

List of all members.

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

WGEShaderm_shader
 The shader belonging to the node currently getting updated.

Detailed Description

Update callback which handles the shader reloading.

This ensures thread safe modification of the osg node.

Definition at line 243 of file WGEShader.h.


Constructor & Destructor Documentation

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

The shader belonging to the node currently getting updated.

Definition at line 267 of file WGEShader.h.


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