~openmw/openmw/openmw-packaging2

« back to all changes in this revision

Viewing changes to apps/openmw/mwrender/util.hpp

  • Committer: Scott Howard
  • Date: 2016-04-16 07:00:56 UTC
  • Revision ID: showard@debian.org-20160416070056-v6l5thn424is72s4
Cron update. Git hash: 1f7a547

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef OPENMW_MWRENDER_UTIL_H
2
2
#define OPENMW_MWRENDER_UTIL_H
3
3
 
 
4
#include <osg/NodeCallback>
4
5
#include <osg/ref_ptr>
5
6
#include <string>
6
7
 
16
17
 
17
18
namespace MWRender
18
19
{
19
 
 
20
20
    void overrideTexture(const std::string& texture, Resource::ResourceSystem* resourceSystem, osg::ref_ptr<osg::Node> node);
21
21
 
 
22
    // Node callback to entirely skip the traversal.
 
23
    class NoTraverseCallback : public osg::NodeCallback
 
24
    {
 
25
    public:
 
26
        virtual void operator()(osg::Node* node, osg::NodeVisitor* nv)
 
27
        {
 
28
            // no traverse()
 
29
        }
 
30
    };
22
31
}
23
32
 
24
33
#endif