]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/beatcounter.h
Allow stages to define actions
[libs/demoscene.git] / source / beatcounter.h
index 952ed6b0460869dd2af309257fb7336501e65cb7..ed0dd27609cfe1c071e24f035e8958d75c96565c 100644 (file)
@@ -5,8 +5,12 @@
 #include <msp/gl/objectinstance.h>
 #include <msp/gl/renderable.h>
 #include <msp/gl/text.h>
+#include "resources.h"
 #include "action.h"
 
+namespace Msp {
+namespace DemoScene {
+
 class BeatCounter: public Msp::GL::Renderable, public Action
 {
 private:
@@ -14,11 +18,17 @@ private:
        Msp::GL::ObjectInstance instance;
 
 public:
-       BeatCounter(Msp::DataFile::Collection &);
+       BeatCounter(Resources &);
+
+       void set_matrix(const Msp::GL::Matrix &);
 
+       virtual void validate() const { }
        virtual void beat(int);
 
        virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
 };
 
+} // namespace DemoScene
+} // namespace Msp
+
 #endif