diff options
author | Duane Bailey <nayryeliab@gmail.com> | 2005-09-17 21:35:26 +0000 |
---|---|---|
committer | Duane Bailey <nayryeliab@gmail.com> | 2005-09-17 21:35:26 +0000 |
commit | 3debd1554b39a6a2e790526fa02d56d1b81fda85 (patch) | |
tree | 360aed13b07b78d6260786cf28706b637037abdd /src/graphics.h | |
parent | 7eaa123ee5129ccd81ff169ada7665a812dee435 (diff) | |
download | mana-3debd1554b39a6a2e790526fa02d56d1b81fda85.tar.gz mana-3debd1554b39a6a2e790526fa02d56d1b81fda85.tar.bz2 mana-3debd1554b39a6a2e790526fa02d56d1b81fda85.tar.xz mana-3debd1554b39a6a2e790526fa02d56d1b81fda85.zip |
2005-09-17 Duane Bailey <nayryeliab@gmail.com>
* src/net/messagin.cpp, src/net/messageout.cpp, src/net/network.cpp:
removed replaced MACOSX defines with big endian defines
* src/graphics.cpp, src/graphics.h: added screenshot method
* src/game.cpp: added code, so that when one presses 'alt-p' (for
picture), it takes a screenshot and saves it to a png
* src/Makefile.am, config.ac: added png library stuff
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h index 6bd32ec2..b45bc15c 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -119,6 +119,11 @@ class Graphics : public gcn::SDLGraphics { */ int getHeight(); + /** + * takes a screenshot, and saves it as a png + */ + bool saveScreenshot(char *filename, ...); + protected: SDL_Surface *mScreen; bool mFullscreen, mHWAccel; |