summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 4422fcc8..f497f608 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -88,6 +88,16 @@ class Image : public Resource
static Image *load(SDL_Surface *);
/**
+ * Gets an scaled instance of an image.
+ *
+ * @param width The desired width of the scaled image.
+ * @param height The desired height of the scaled image.
+ *
+ * @return A new Image* object.
+ */
+ Image* SDLgetScaledImage(int width, int height);
+
+ /**
* Frees the resources created by SDL.
*/
virtual void unload();
@@ -105,6 +115,12 @@ class Image : public Resource
{ return mBounds.h; }
/**
+ * Tells if the image was loade using OpenGL or SDL
+ * @return true if OpenGL, false if SDL.
+ */
+ bool isAnOpenGLOne() const;
+
+ /**
* Creates a new image with the desired clipping rectangle.
*
* @return <code>NULL</code> if creation failed and a valid