mapimageexport.h

Go to the documentation of this file.
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    public:
00029       Surface surface;
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 extern void writemaptostream ( GameMap* gamemap, int width, int height, tnstream& stream  );
00040 extern Surface loadmapfromstream ( tnstream& stream  );
00041 #endif

Generated on Mon May 21 01:26:35 2012 for Advanced Strategic Command by  doxygen 1.5.1