blob: 67503900c6373d2473656d01cdde54699d323aea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef GRAPHIC_H
#define GRAPHIC_H
#include <glib.h> /* defines inline for better portability */
typedef unsigned int Uint;
typedef struct
{
unsigned short r,v,b;
}
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;
extern inline void setPixelRGB (Uint *buffer, Uint x, Uint y, Color c) ;
extern inline void getPixelRGB (Uint *buffer, Uint x, Uint y, Color *c) ;
#endif /*GRAPHIC_H*/
|