00001 #if !defined( __ARSGRAF_H__ ) 00002 #define __ARSGRAF_H__ 00003 00004 namespace Ars 00005 { 00006 namespace Graf 00007 { 00008 int LoadImg( const string &aSection , const string &aId , string aCfgFile = "" ); 00009 int LoadImg( const string &aFilename ); 00010 SDL_Surface *Img( const int id , XRect *r = 0 ); 00011 SDL_Surface *ButtonImg( const int id , XRect &r , const bool smooth = false ); 00012 void ResetImage( void ); 00013 SDL_Surface *CreateLight( const int radius , const int r = 0xdd , const int g = 0x88, const int b = 0x00 ); 00014 SDL_Surface *CreateDark( const int radius , const int r = 128 , const int g = 128, const int b = 128 ); 00015 int AddImage( SDL_Surface *aImage , string aFilename = "" ); 00016 int HasImage( string aFilename ); 00017 enum eBaseImg { Light = 0 , Dark = 1 }; 00018 00019 void ResetCursors( void ); 00020 void SetMouse( const int aCursorId ); 00021 const int GetCursorId( void ); 00022 void ShowMouse( const bool aShow = true ); 00023 00024 int SDL_StretchBlt( SDL_Surface *src , SDL_Rect *aSrcRect , SDL_Surface *dst , SDL_Rect *aDstRect = 0 , const bool smooth = false ); 00025 SDL_Surface *NewSurface( const int w , const int h , SDL_Surface *sfc = 0 ); 00026 } 00027 } 00028 00029 #endif