~ubuntu-branches/ubuntu/saucy/lordsawar/saucy

« back to all changes in this revision

Viewing changes to src/MapRenderer.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese
  • Date: 2008-12-20 13:52:12 UTC
  • mfrom: (1.1.6 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081220135212-noeb2w3y98ebo7o9
Tags: 0.1.4-1
[ Barry deFreese ]
* New upstream release.
* Move 0.0.8-2.1 changelog entry to correct point in changelog.
* Make lordsawar-data suggest lordsawar.
* Update my e-mail address.
* Add build-depends on intltool, uuid-dev, and libboost-dev.
* Don't install locales since there are no translations currently.
* Add simple man page for new lordsawar-pbm binary.
* Drop gcc4.3 patches as they have been fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#define MAPRENDERER_H
23
23
 
24
24
#include <SDL.h>
 
25
#include <string>
25
26
 
26
27
/** Class which cares about rendering of the map.
27
28
  * 
49
50
          */
50
51
        void render(int x, int y, int tileX, int tileY, int columns, int rows);
51
52
 
 
53
        void render(int x, int y, int tileStartX, int tileStartY,
 
54
                    int columns, int rows, SDL_Surface *surface);
 
55
 
 
56
        //! Save the current view of map tiles as an image (bmp file).
 
57
        bool saveViewAsBitmap(std::string filename);
 
58
 
 
59
        //! Save all of the map tiles as one big image (bmp file).
 
60
        bool saveAsBitmap(std::string filename);
52
61
    private:
53
62
        //Data
54
63
        SDL_Surface* d_surface;
 
64
 
55
65
};
56
66
 
57
67
#endif // MAPRENDERER_H