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
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);
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);
};