2 * Copyright (C) <2003> iOS-Software
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
22 typedef unsigned int Uint;
26 unsigned short r, v, b;
30 extern const Color BLACK;
31 extern const Color WHITE;
32 extern const Color RED;
33 extern const Color BLUE;
34 extern const Color GREEN;
35 extern const Color YELLOW;
36 extern const Color ORANGE;
37 extern const Color VIOLET;
42 #define B_CHANNEL 0xFF000000
43 #define G_CHANNEL 0x00FF0000
44 #define R_CHANNEL 0x0000FF00
45 #define A_CHANNEL 0x000000FF
51 typedef union _PIXEL {
64 #define A_CHANNEL 0xFF000000
65 #define R_CHANNEL 0x00FF0000
66 #define G_CHANNEL 0x0000FF00
67 #define B_CHANNEL 0x000000FF
73 typedef union _PIXEL {
84 #endif /* COLOR_BGRA */
87 inline void setPixelRGB (Pixel * buffer, Uint x, Uint y, Color c);
88 inline void getPixelRGB (Pixel * buffer, Uint x, Uint y, Color * c);
92 #endif /* GRAPHIC_H */