4 typedef unsigned int Uint;
8 unsigned short r, v, b;
12 extern const Color BLACK;
13 extern const Color WHITE;
14 extern const Color RED;
15 extern const Color BLUE;
16 extern const Color GREEN;
17 extern const Color YELLOW;
18 extern const Color ORANGE;
19 extern const Color VIOLET;
24 #define B_CHANNEL 0xFF000000
25 #define G_CHANNEL 0x00FF0000
26 #define R_CHANNEL 0x0000FF00
27 #define A_CHANNEL 0x000000FF
33 typedef union _PIXEL {
46 #define A_CHANNEL 0xFF000000
47 #define R_CHANNEL 0x00FF0000
48 #define G_CHANNEL 0x0000FF00
49 #define B_CHANNEL 0x000000FF
55 typedef union _PIXEL {
66 #endif /* COLOR_BGRA */
69 inline void setPixelRGB (Pixel * buffer, Uint x, Uint y, Color c);
70 inline void getPixelRGB (Pixel * buffer, Uint x, Uint y, Color * c);
74 #endif /* GRAPHIC_H */