1 #ifndef MSP_DEMOSCENE_BEATCOUNTER_H_
2 #define MSP_DEMOSCENE_BEATCOUNTER_H_
4 #include <msp/datafile/collection.h>
5 #include <msp/gl/objectinstance.h>
6 #include <msp/gl/renderable.h>
7 #include <msp/gl/text.h>
14 class BeatCounter: public Msp::GL::Renderable, public Action
18 Msp::GL::ObjectInstance instance;
21 BeatCounter(Resources &);
23 void set_matrix(const Msp::GL::Matrix &);
25 virtual void validate() const { }
26 virtual void beat(int);
28 virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
31 } // namespace DemoScene