#ifndef _BEATCHART_H
#define _BEATCHART_H
#include <GLES2/gl2.h>
#include "RShader.h"
#include "Component.h"
#include "Clock.h"
class BeatChart : public Component {
public:
BeatChart(Clock* clock);
~BeatChart();
RShader* shader;
void setSize(int w, int h);
void draw(int t);
private:
Clock* clock;
int beats_per_measure;
int beat, beat_start;
int fade_time;
float blip_w;
GLshort blipVertices[8];
void setTranslation(int x, int y);
};
#endif