1 /* 2 * file SDL_common.h - global variables for Win32 engine 3 * 4 * $Id: sdl_common.h,v 1.7 2006/03/28 11:49:10 fzago Exp $ 5 * 6 * Program XBLAST 7 * (C) by Oliver Vogel (e-mail: m.vogel@ndh.net) 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published 11 * by the Free Software Foundation; either version 2; or (at your option) 12 * any later version 13 * 14 * This program is distributed in the hope that it will be entertaining, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILTY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 17 * Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License along 20 * with this program; if not, write to the Free Software Foundation, Inc. 21 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 */ 23 24 #ifndef XBLAST_SDL_COMMON_H 25 #define XBLAST_SDL_COMMON_H 26 27 #include <SDL/SDL.h> 28 #include <SDL/SDL_image.h> 29 #include <SDL/SDL_ttf.h> 30 #include <SDL/SDL_gfxPrimitives.h> 31 #include <SDL/SDL_keyboard.h> 32 33 #include "sdl_event.h" 34 #include "sdl_keysym.h" 35 #include "sdl_joystick.h" 36 #include "sdl_image.h" 37 #include "sdl_config.h" 38 #include "sdl_text.h" 39 #include "sdl_sprite.h" 40 #include "sdl_socket.h" 41 #include "sdl_tile.h" 42 #include "sdl_pixmap.h" 43 44 #if SDL_BYTEORDER == SDL_LIL_ENDIAN 45 #define RMASK 0x0000FF 46 #define GMASK 0x00FF00 47 #define BMASK 0xFF0000 48 #else 49 #define RMASK 0xFF0000 50 #define GMASK 0x00FF00 51 #define BMASK 0x0000FF 52 #endif 53 54 /* 55 * global constants 56 */ 57 #define NUM_FONTS 3 58 59 /* 60 * global variables 61 */ 62 extern SDL_Surface *screen; 63 extern SDL_Surface *pix; 64 65 extern const char *xblastClass; 66 67 #endif 68 /* 69 * end of file SDL_common.h 70 */ 71