You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/components/sceneutil/extradata.hpp

37 lines
691 B
C++

#ifndef OPENMW_COMPONENTS_RESOURCE_EXTRADATA_H
#define OPENMW_COMPONENTS_RESOURCE_EXTRADATA_H
#include <osg/NodeVisitor>
namespace Resource
{
class SceneManager;
}
namespace osg
{
class Node;
}
namespace SceneUtil
{
void setupSoftEffect(osg::Node& node, float size, bool falloff, float falloffDepth);
class ProcessExtraDataVisitor : public osg::NodeVisitor
{
public:
ProcessExtraDataVisitor(Resource::SceneManager* sceneMgr)
: osg::NodeVisitor(TRAVERSE_ALL_CHILDREN)
, mSceneMgr(sceneMgr)
{
}
void apply(osg::Node& node) override;
private:
Resource::SceneManager* mSceneMgr;
};
}
#endif