00001 #ifndef HEADER_COLOR_H 00002 #define HEADER_COLOR_H 00003 00004 #include "SDL.h" 00005 00006 /** 00007 * Constructor for SDL_Color. 00008 */ 00009 class Color : public SDL_Color { 00010 public: 00011 Color(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha=255) 00012 { 00013 this->r = red; 00014 this->g = green; 00015 this->b = blue; 00016 this->unused = alpha; 00017 } 00018 }; 00019 00020 #endif