]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Animation.hh
improved new vorbisfile compatibility
[chaz/yoink] / src / Moof / Animation.hh
index 57ce6a8ffe6f280b5a8396d77725bef07b8b86c2..38a055d8834c56fa9fa6f309057aadb4afd89af0 100644 (file)
@@ -45,6 +45,9 @@
 namespace Mf {
 
 
+class Animation;
+typedef boost::shared_ptr<Animation> AnimationP;
+
 /**
  * A class to manage frame-based animation.  Animation sequences can be loaded
  * from file, then named sequences are started.  The animation is updated
@@ -55,7 +58,16 @@ namespace Mf {
 
 class Animation : public Resource
 {
+       class Impl;
+       boost::shared_ptr<Impl> impl_;
+
 public:
+
+       static AnimationP alloc(const std::string& name)
+       {
+               return AnimationP(new Animation(name));
+       }
+
        Animation(const std::string& name);
 
        void startSequence(const std::string& name);
@@ -63,11 +75,7 @@ public:
        void update(Scalar t, Scalar dt);
        unsigned getFrame() const;
 
-       static std::string getPathToResource(const std::string& name);
-
-private:
-       class AnimationImpl;
-       boost::shared_ptr<AnimationImpl> impl_;
+       static std::string getPath(const std::string& name);
 };
 
 
This page took 0.019438 seconds and 4 git commands to generate.