]> git.tdb.fi Git - libs/demoscene.git/blob - source/beatcounter.h
Framework for loading sequences from files
[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 "resources.h"
9 #include "action.h"
10
11 class BeatCounter: public Msp::GL::Renderable, public Action
12 {
13 private:
14         Msp::GL::Text text;
15         Msp::GL::ObjectInstance instance;
16
17 public:
18         BeatCounter(Resources &);
19
20         virtual void validate() const { }
21
22         virtual void beat(int);
23
24         virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
25 };
26
27 #endif