00001 /*************************************************************************** 00002 sdlgraph.h - description 00003 ------------------- 00004 begin : Sat Dec 18 1999 00005 copyright : (C) 1999 by Martin Bickel 00006 email : bickel@asc-hq.org 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 00019 #ifndef graphicsH 00020 #define graphicsH 00021 00022 #include "../global.h" 00023 #include "../palette.h" 00024 #include "../basegfx.h" 00025 #include "../graphics/surface.h" 00026 00027 00028 00029 //*********** Initialization ************ 00030 00031 extern void initASCGraphicSubsystem ( SDL_Surface* screen ); 00032 extern void shutdownASCGraphicSubsystem(); 00033 00034 //*********** Misc ************ 00035 00036 00037 extern int copy2screen( void ); 00038 extern int copy2screen( int x1, int y1, int x2, int y2 ); 00039 00040 // extern SDL_Surface* getScreen(); 00041 00042 extern Surface& getActiveSurface(); 00043 00044 class MouseHider { 00045 int x; 00046 int y; 00047 bool locked; 00048 public: 00049 MouseHider(); 00050 void unlock(); 00051 ~MouseHider(); 00052 }; 00053 00054 00055 #endif
1.4.2