1 /* some useful functions for zeRace game */
8 #if SDL_BYTEORDER == SDL_BIG_ENDIAN
9 #define RMASK 0xff000000
10 #define GMASK 0x00ff0000
11 #define BMASK 0x0000ff00
12 #define AMASK 0x000000ff
14 #define RMASK 0x000000ff
15 #define GMASK 0x0000ff00
16 #define BMASK 0x00ff0000
17 #define AMASK 0xff000000
20 void print(SDL_Surface *dst,int x,int y,unsigned char *text);
21 void readstring(SDL_Surface *dst,int x,int y,unsigned char *text,int limit);
22 Uint32 getpixel(SDL_Surface *surface, int x, int y);
23 void putpixel(SDL_Surface *surface, int x, int y, Uint32 pixel);
24 void setpixel(SDL_Surface *screen, int x, int y, Uint8 r, Uint8 g, Uint8 b);