File: mapimageexport.h

package info (click to toggle)
asc 2.6.1.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 81,740 kB
  • sloc: cpp: 158,704; sh: 11,544; ansic: 6,736; makefile: 604; perl: 138
file content (41 lines) | stat: -rw-r--r-- 1,625 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

/***************************************************************************
                             mapimageexport.h
                             -------------------
    copyright            : (C) 2005 by Martin Bickel
    email                : bickel@asc-hq.org
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef mapimageexportH
 #define mapimageexportH

#include "gamemap.h"
#include "graphics/surface.h"

#include "mapdisplay.h"

class WholeMapRenderer : public MapRenderer {
      GameMap* gamemap;
   public:
      Surface surface;
      WholeMapRenderer( GameMap* actmap );
      void render();
      void writePCX( const ASCString& filename );
      void writePNG( const ASCString& filename );
      void renderVisibility();

};

extern void writemaptopcx ( GameMap* gamemap, bool addview = false );
extern void writemaptostream ( GameMap* gamemap, int width, int height, tnstream& stream  );
extern Surface loadmapfromstream ( tnstream& stream  );
#endif