2 // animation.hxx - classes to manage model animation.
3 // Written by David Megginson, started 2002.
5 // This file is in the Public Domain, and comes with no warranty.
7 #ifndef _SG_MATERIALANIMATION_HXX
8 #define _SG_MATERIALANIMATION_HXX 1
11 # error This library requires C++
14 #include <osg/Material>
15 #include "animation.hxx"
17 //////////////////////////////////////////////////////////////////////
19 //////////////////////////////////////////////////////////////////////
21 class SGMaterialAnimation : public SGAnimation {
23 SGMaterialAnimation(const SGPropertyNode* configNode,
24 SGPropertyNode* modelRoot);
25 virtual osg::Group* createAnimationGroup(osg::Group& parent);
26 virtual void install(osg::Node& node);
28 osg::ref_ptr<osg::Material> defaultMaterial;
29 osg::Vec4 defaultAmbientDiffuse;
32 #endif // _SG_MATERIALANIMATION_HXX