00001 00002 /*************************************************************************** 00003 mapimageexport.h 00004 ------------------- 00005 copyright : (C) 2005 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 #ifndef mapimageexportH 00019 #define mapimageexportH 00020 00021 #include "gamemap.h" 00022 #include "graphics/surface.h" 00023 00024 #include "mapdisplay.h" 00025 00026 class WholeMapRenderer : public MapRenderer { 00027 GameMap* gamemap; 00028 Surface surface; 00029 public: 00030 WholeMapRenderer( GameMap* actmap ); 00031 void render(); 00032 void writePCX( const ASCString& filename ); 00033 void writePNG( const ASCString& filename ); 00034 void renderVisibility(); 00035 00036 }; 00037 00038 extern void writemaptopcx ( GameMap* gamemap, bool addview = false ); 00039 00040 #endif
1.4.2