From f199b9ba7da47cb6f9aa95f843c0628621899aa9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Jun 2012 00:11:20 +0300 Subject: Move SubImage class to separate file. --- src/resources/image.h | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'src/resources/image.h') 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 NULL 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 -- cgit v1.2.3-70-g09d2