]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/beatcounter.h
Dynamically check for AnimatedObject in Animate
[libs/demoscene.git] / source / beatcounter.h
index 856c8d7d7f2b4bd5fb4e2e4600701a0d6835c574..98af61b025bb9b12d0c31eb5810ed4726c7959a1 100644 (file)
@@ -5,20 +5,29 @@
 #include <msp/gl/objectinstance.h>
 #include <msp/gl/renderable.h>
 #include <msp/gl/text.h>
-#include "sequencer.h"
+#include "resources.h"
+#include "action.h"
 
-class BeatCounter: public Msp::GL::Renderable, public Sequencer::Action
+namespace Msp {
+namespace DemoScene {
+
+class BeatCounter: public Msp::GL::Renderable, public Action
 {
 private:
        Msp::GL::Text text;
        Msp::GL::ObjectInstance instance;
 
 public:
-       BeatCounter(Msp::DataFile::Collection &);
+       BeatCounter(Resources &);
+
+       virtual void validate() const { }
 
        virtual void beat(int);
 
        virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
 };
 
+} // namespace DemoScene
+} // namespace Msp
+
 #endif