2002-02-01 19:28:30 +00:00
|
|
|
#ifndef GRAPHIC_H
|
|
|
|
#define GRAPHIC_H
|
|
|
|
|
2005-10-19 10:57:46 +00:00
|
|
|
#include <glib.h> /* defines inline for better portability */
|
|
|
|
|
2002-02-01 19:28:30 +00:00
|
|
|
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;
|
|
|
|
|
2005-10-19 10:57:46 +00:00
|
|
|
extern inline void setPixelRGB (Uint *buffer, Uint x, Uint y, Color c) ;
|
|
|
|
extern 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*/
|