2002-02-01 19:28:30 +00:00
|
|
|
#ifndef GRAPHIC_H
|
|
|
|
#define GRAPHIC_H
|
|
|
|
|
|
|
|
typedef unsigned int Uint;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2004-03-15 16:32:54 +00:00
|
|
|
unsigned short r,v,b;
|
2002-02-01 19:28:30 +00:00
|
|
|
}
|
|
|
|
Color;
|
|
|
|
|
|
|
|
extern const Color BLACK;
|
|
|
|
extern const Color WHITE;
|
|
|
|
extern const Color RED;
|
|
|
|
extern const Color BLUE;
|
|
|
|
extern const Color GREEN;
|
|
|
|
extern const Color YELLOW;
|
|
|
|
extern const Color ORANGE;
|
|
|
|
extern const Color VIOLET;
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
inline void setPixelRGB (Uint *buffer, Uint x, Uint y, Color c) ;
|
|
|
|
inline void getPixelRGB (Uint *buffer, Uint x, Uint y, Color *c) ;
|
2002-02-01 19:28:30 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
#endif /*GRAPHIC_H*/
|