update
[supertux.git] / src / screen.h
1 /*
2   screen.h
3   
4   Super Tux - Screen Functions
5   
6   by Bill Kendrick
7   bill@newbreedsoftware.com
8   http://www.newbreedsoftware.com/supertux/
9   
10   April 11, 2000 - April 21, 2000
11 */
12
13 #include <SDL.h>
14
15 #define NO_UPDATE 0
16 #define UPDATE 1
17 #define USE_ALPHA 0
18 #define IGNORE_ALPHA 1
19
20 void load_and_display_image(char * file);
21 void clearscreen(int r, int g, int b);
22 void updatescreen(void);
23 SDL_Surface * load_image(char * file, int use_alpha);
24 void drawimage(SDL_Surface * surf, int x, int y, int update);
25 void drawpart(SDL_Surface * surf, int x, int y, int w, int h, int update);
26 void drawtext(char * text, int x, int y, SDL_Surface * surf, int update);
27 void drawcenteredtext(char * text, int y, SDL_Surface * surf, int update);
28 void erasetext(char * text, int x, int y, SDL_Surface * surf, int update);
29 void erasecenteredtext(char * text, int y, SDL_Surface * surf, int update);