1 2 #ifndef _GUI_types_h 3 #define _GUI_types_h 4 #error FIXME: Not done yet 5 6 /* Basic GUI data types and classes */ 7 8 #include "SDL.h" 9 10 class GUI_image { 11 12 public: 13 /* Load an image from a BMP file */ 14 GUI_image(char *file); 15 16 /* Use a SDL_Surface as the image 17 The surface shouldn't be freed while the miage object exists. 18 */ 19 GUI_image(SDL_Surface *picture, int shouldfree = 0); 20 21 private: 22 SDL_Surface *image; 23 }; 24 25 #endif _GUI_types_h 26 27