]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/model/SGMaterialAnimation.hxx
Add preliminary spot light animation
[simgear.git] / simgear / scene / model / SGMaterialAnimation.hxx
index 808858e26bee5d9ebf90fa42861016bb880d82dd..54d1b15b3120909e001ccfc450740a3ab3cd2592 100644 (file)
@@ -11,6 +11,8 @@
 # error This library requires C++
 #endif
 
+#include <osg/Material>
+#include <osgDB/ReaderWriter>
 #include "animation.hxx"
 
 //////////////////////////////////////////////////////////////////////
 class SGMaterialAnimation : public SGAnimation {
 public:
   SGMaterialAnimation(const SGPropertyNode* configNode,
-                      SGPropertyNode* modelRoot);
+                      SGPropertyNode* modelRoot,
+                      const osgDB::Options* options);
   virtual osg::Group* createAnimationGroup(osg::Group& parent);
   virtual void install(osg::Node& node);
+  static SGPropertyNode_ptr makeEffectProperties(const SGPropertyNode* animProp);
 private:
-  struct ColorSpec;
-  struct PropSpec;
-  class MaterialVisitor;
-  class UpdateCallback;
+  osg::ref_ptr<osg::Material> defaultMaterial;
+  osg::Vec4 defaultAmbientDiffuse;
+  osgDB::FilePathList texturePathList;
 };
 
 #endif // _SG_MATERIALANIMATION_HXX