summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h
index d0e70c24..b8e87af1 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -29,6 +29,9 @@ class ImageRect;
struct SDL_Surface;
+static const int defaultScreenWidth = 800;
+static const int defaultScreenHeight = 600;
+
/**
* 9 images defining a rectangle. 4 corners, 4 sides and a middle area. The
* topology is as follows:
@@ -105,6 +108,28 @@ class Graphics : public gcn::SDLGraphics
int dstX, int dstY, int width, int height);
/**
+ * Draws a resclaled version of the image
+ */
+ bool drawRescaledImage(Image *image, int srcX, int srcY,
+ int dstX, int dstY,
+ int width, int height,
+ int desiredWidth, int desiredHeight)
+ { return drawRescaledImage(image, srcX, srcY,
+ dstX, dstY,
+ width, height,
+ desiredWidth, desiredHeight,
+ false); };
+
+ /**
+ * Draws a resclaled version of the image
+ */
+ virtual bool drawRescaledImage(Image *image, int srcX, int srcY,
+ int dstX, int dstY,
+ int width, int height,
+ int desiredWidth, int desiredHeight,
+ bool useColor = false);
+
+ /**
* Blits an image onto the screen.
*
* @return <code>true</code> if the image was blitted properly
@@ -121,6 +146,13 @@ class Graphics : public gcn::SDLGraphics
int w, int h);
/**
+ * Draw a pattern based on a rescaled version of the given image...
+ */
+ virtual void drawRescaledImagePattern(Image *image,
+ int x, int y, int w, int h,
+ int scaledWidth, int scaledHeight);
+
+ /**
* Draws a rectangle using images. 4 corner images, 4 side images and 1
* image for the inside.
*/