summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-12 03:55:01 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-16 22:47:14 +0300
commitd0e6d477d245610288ab622ecf47426a9dcbc400 (patch)
treee998d168d8eb4397602021b3b1411f80cc1466a9 /src/graphics.h
parent68b1e0ec82321757f2a29792d38d7eabb7d2cf98 (diff)
downloadplus-d0e6d477d245610288ab622ecf47426a9dcbc400.tar.gz
plus-d0e6d477d245610288ab622ecf47426a9dcbc400.tar.bz2
plus-d0e6d477d245610288ab622ecf47426a9dcbc400.tar.xz
plus-d0e6d477d245610288ab622ecf47426a9dcbc400.zip
Add tiles caching for software mode.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h
index 40db25c5d..d6e5f774c 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -35,6 +35,8 @@
class GraphicsVertexes;
class Image;
+class ImageVertexes;
+class MapLayer;
struct SDL_Surface;
@@ -202,6 +204,10 @@ class Graphics : public gcn::SDLGraphics
int x, int y,
int w, int h);
+ virtual void calcTile(ImageVertexes *vert, int x, int y);
+
+ virtual void drawTile(ImageVertexes *vert);
+
virtual void drawImageRect2(GraphicsVertexes* vert,
const ImageRect &imgRect);
@@ -263,6 +269,8 @@ class Graphics : public gcn::SDLGraphics
bool getRedraw()
{ return mRedraw; }
+ void drawMapLayer(MapLayer *layer);
+
int mWidth;
int mHeight;