X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FAnimation.hh;h=d49dfb5f785f99d13b99ca2940a4fc967f1c3a6d;hp=d8651dddf76a2032c0912584a60722d583202c79;hb=44b3014bce798789e795242d1556cb7449e6386a;hpb=90b2c7fb10b244b781b84965a0d36f1f323ee94d diff --git a/src/Animation.hh b/src/Animation.hh index d8651dd..d49dfb5 100644 --- a/src/Animation.hh +++ b/src/Animation.hh @@ -1,30 +1,27 @@ -/*] 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 #include -#include -#include +#include +/** + * \file Animation.hh + * Motion picture!! + */ + class Animation; typedef boost::shared_ptr AnimationP; @@ -35,12 +32,8 @@ typedef boost::shared_ptr 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 Mf::Resource +class Animation { - class Impl; - boost::shared_ptr mImpl; - public: Animation(const std::string& name); @@ -50,13 +43,15 @@ public: return AnimationP(new Animation(name)); } - void startSequence(const std::string& name); - void update(Mf::Scalar t, Mf::Scalar dt); + void update(moof::scalar t, moof::scalar dt); unsigned getFrame() const; - static bool getPath(std::string& name); +private: + + class impl; + boost::shared_ptr impl_; };