version 0.2
[zeRace] / sdl.h
1 /* some useful functions for zeRace game */
2
3 #include <string.h>
4 #include <SDL.h>
5 #include <SDL_image.h>
6
7 void print(SDL_Surface *dst,int x,int y,unsigned char *text);
8 void readstring(SDL_Surface *dst,int x,int y,unsigned char *text,int limit);
9 Uint32 getpixel(SDL_Surface *surface, int x, int y);
10 void putpixel(SDL_Surface *surface, int x, int y, Uint32 pixel);
11 void setpixel(SDL_Surface *screen, int x, int y, Uint8 r, Uint8 g, Uint8 b);