]> git.tdb.fi Git - libs/demoscene.git/blob - source/colorfade.h
Initial files lifted from the Skrolliparty 2 demo
[libs/demoscene.git] / source / colorfade.h
1 #ifndef MSP_DEMOSCENE_COLORFADE_H_
2 #define MSP_DEMOSCENE_COLORFADE_H_
3
4 #include <msp/gl/color.h>
5 #include "sequencer.h"
6
7 class ColorFadeAction: public Sequencer::InterpolationAction
8 {
9 protected:
10         Msp::GL::Color start_color;
11         Msp::GL::Color end_color;
12
13         ColorFadeAction(const Msp::GL::Color &);
14
15 public:
16         virtual void start(float, float);
17         virtual void interpolate(float, float);
18         virtual const Msp::GL::Color &get_color() const = 0;
19         virtual void set_color(const Msp::GL::Color &) = 0;
20 };
21
22 #endif