00001 00025 #ifndef SCREEN_H 00026 #define SCREEN_H 00027 00028 #include <SDL/SDL.h> 00029 00030 #include "debug.h" 00031 00033 unsigned char *workVideoBuffer; 00035 unsigned char *frontVideoBuffer; 00037 unsigned char *frontVideoBufferbis; 00038 00040 int screenLockupTable[2000]; 00041 00043 unsigned char pressedKeyMap[29]; 00045 unsigned short int pressedKeyCharMap[31]; 00046 00048 extern short int skipedKey; 00050 extern short int pressedKey; 00052 extern short int skipIntro; 00054 extern short int currentKey; 00056 extern short int key; 00057 00058 short int leftMouse; 00059 short int rightMouse; 00060 00062 extern SDL_Surface *screen; 00063 00065 void sdl_close(); 00066 00069 int sdl_initialize(); 00070 00072 void fps_cycles(int fps); 00073 00076 void delay(unsigned int time); 00077 00080 void set_palette(unsigned char * palette); 00081 00083 void fade_black_2_white(); 00084 00086 void flip(); 00087 00093 void copy_block_phys(int left, int top, int right, int bottom); 00094 00099 void init_screen_buffer(unsigned char *buffer, int width, int height); 00100 00104 void cross_fade(unsigned char *buffer, unsigned char *palette); 00105 00107 void toggle_fullscreen(); 00108 00110 void read_keys(); 00111 00112 void ttf_draw_text(int X, int Y, char *string, int center); 00113 void get_mouse_positions(MouseStatusStruct *mouseData); 00114 00115 #endif
1.5.5