-/*] Copyright (c) 2009-2010, Charles McGarvey [**************************
+/*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
**] All rights reserved.
*
-* vi:ts=4 sw=4 tw=75
-*
* Distributable under the terms and conditions of the 2-clause BSD license;
* see the file COPYING for a complete text of the license.
*
-**************************************************************************/
+*****************************************************************************/
#ifndef _ANIMATION_HH_
#define _ANIMATION_HH_
-/**
- * @file Animation.hh
- * Motion picture!!
- */
-
#include <string>
#include <boost/shared_ptr.hpp>
#include <moof/math.hh>
-#include <moof/resource.hh>
+/**
+ * \file Animation.hh
+ * Motion picture!!
+ */
+
class Animation;
typedef boost::shared_ptr<Animation> AnimationP;
* is determined. This class is generic enough that a frame can mean just
* about anything to whatever drawing context is used to render the frame.
*/
-
-class Animation : public moof::resource
+class Animation
{
- class impl;
- boost::shared_ptr<impl> impl_;
-
public:
Animation(const std::string& name);
return AnimationP(new Animation(name));
}
-
void startSequence(const std::string& name);
void update(moof::scalar t, moof::scalar dt);
unsigned getFrame() const;
- static bool find_path(std::string& name);
+private:
+
+ class impl;
+ boost::shared_ptr<impl> impl_;
};