]> git.tdb.fi Git - libs/demoscene.git/blob - source/beatcounter.h
Initial files lifted from the Skrolliparty 2 demo
[libs/demoscene.git] / source / beatcounter.h
1 #ifndef MSP_DEMOSCENE_BEATCOUNTER_H_
2 #define MSP_DEMOSCENE_BEATCOUNTER_H_
3
4 #include <msp/datafile/collection.h>
5 #include <msp/gl/objectinstance.h>
6 #include <msp/gl/renderable.h>
7 #include <msp/gl/text.h>
8 #include "sequencer.h"
9
10 class BeatCounter: public Msp::GL::Renderable, public Sequencer::Action
11 {
12 private:
13         Msp::GL::Text text;
14         Msp::GL::ObjectInstance instance;
15
16 public:
17         BeatCounter(Msp::DataFile::Collection &);
18
19         virtual void beat(int);
20
21         virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
22 };
23
24 #endif