X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FAnimation.hh;h=c8cdca8ed752c4b3addfdc4ee0ccd61906cabc19;hp=ba3860113ba180a69f5c0ae276bf455879958199;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hpb=831f04d4bc19a390415ac0bbac4331c7a65509bc diff --git a/src/Animation.hh b/src/Animation.hh index ba38601..c8cdca8 100644 --- a/src/Animation.hh +++ b/src/Animation.hh @@ -1,13 +1,11 @@ -/*] 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_ @@ -22,7 +20,6 @@ #include #include -#include class Animation; @@ -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 moof::resource +class Animation { - class impl; - boost::shared_ptr impl_; - public: Animation(const std::string& name); @@ -50,13 +43,15 @@ public: 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_; };