Debian Codegraph @

src/effect/Color.h

raw
1 #ifndef HEADER_COLOR_H
2 #define HEADER_COLOR_H
3
4 #include "SDL.h"
5
6 /**
7 * Constructor for SDL_Color.
8 */
9 class Color : public SDL_Color {
10 public:
11 Color(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha=255)
12 {
13 this->r = red;
14 this->g = green;
15 this->b = blue;
16 this->unused = alpha;
17 }
18 };
19
20 #endif