summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-10 00:11:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-10 00:11:20 +0300
commitf199b9ba7da47cb6f9aa95f843c0628621899aa9 (patch)
tree9b1ff96b456f7d93d1a66f3471cd251908f3c227 /src/resources/image.h
parentff11053f5f638749c3564c464dc41ebc474b4897 (diff)
downloadmanaplus-f199b9ba7da47cb6f9aa95f843c0628621899aa9.tar.gz
manaplus-f199b9ba7da47cb6f9aa95f843c0628621899aa9.tar.bz2
manaplus-f199b9ba7da47cb6f9aa95f843c0628621899aa9.tar.xz
manaplus-f199b9ba7da47cb6f9aa95f843c0628621899aa9.zip
Move SubImage class to separate file.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 2a3f16c85..4bee1f0ed 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -211,39 +211,4 @@ class Image : public Resource
#endif
};
-/**
- * A clipped version of a larger image.
- */
-class SubImage : public Image
-{
- public:
- /**
- * Constructor.
- */
- SubImage(Image *parent, SDL_Surface *image,
- int x, int y, int width, int height);
-#ifdef USE_OPENGL
- SubImage(Image *parent, GLuint image, int x, int y,
- int width, int height, int texWidth, int textHeight);
-#endif
-
- /**
- * Destructor.
- */
- ~SubImage();
-
- /**
- * Creates a new image with the desired clipping rectangle.
- *
- * @return <code>NULL</code> if creation failed and a valid
- * image otherwise.
- */
- Image *getSubImage(int x, int y, int width, int height);
-
- SDL_Rect mInternalBounds;
-
- private:
- Image *mParent;
-};
-
#endif