My Project
 
Loading...
Searching...
No Matches
banner.h
Go to the documentation of this file.
1#pragma once
2
3#include "image.h"
4
5class Banner :public Image{
6private:
7 enum State {
8 FADE_IN, STATIC, FADE_OUT
9 };
10
11 State state;
12
13 float time;
14
15 int color;
16 float fadeTime;
17 float showTime;
18
19public:
20 Banner(Image* sample);
21 Banner(const std::string& tx);
22 void show(int color, float fadeTime, float showTime);
23 void show(int color, float fadeTime);
24 virtual void update();
25};
void show(int color, float fadeTime, float showTime)
Definition banner.cpp:17
Banner(Image *sample)
Definition banner.cpp:4
virtual void update()
Definition banner.cpp:33