]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/model/animation.hxx
Frederic Bouvier:
[simgear.git] / simgear / scene / model / animation.hxx
index 609c33d5dd63d3d9edfd10b7dff6ed3f48bf7f83..d5063feb221e30803ef6f9929e301c478ac6b1eb 100644 (file)
@@ -108,6 +108,8 @@ private:
   SGPropertyNode_ptr _max_prop;
   float _min;
   float _max;
+  float _min_factor;
+  float _max_factor;
 };
 
 
@@ -379,4 +381,21 @@ private:
 };
 
 
+/**
+ * An animation to enable the alpha test 
+ */
+class SGAlphaTestAnimation : public SGAnimation
+{
+public:
+  SGAlphaTestAnimation (SGPropertyNode *prop_root,
+                        SGPropertyNode_ptr props);
+  virtual ~SGAlphaTestAnimation ();
+  virtual void update();
+private:
+  void setAlphaClampToBranch(ssgBranch *b, float clamp);
+  bool _done;
+  float _alpha_clamp;
+};
+
+
 #endif // _SG_ANIMATION_HXX