00001 #ifndef GRAPHIC_H 00002 #define GRAPHIC_H 00003 00004 typedef unsigned int Uint; 00005 00006 typedef struct 00007 { 00008 unsigned short r, v, b; 00009 } 00010 Color; 00011 00012 extern const Color BLACK; 00013 extern const Color WHITE; 00014 extern const Color RED; 00015 extern const Color BLUE; 00016 extern const Color GREEN; 00017 extern const Color YELLOW; 00018 extern const Color ORANGE; 00019 extern const Color VIOLET; 00020 00021 //inline void setPixelRGB (Uint * buffer, Uint x, Uint y, Color c); 00022 //inline void getPixelRGB (Uint * buffer, Uint x, Uint y, Color * c); 00023 00024 #endif /* GRAPHIC_H */