summaryrefslogtreecommitdiff
path: root/src/openglgraphics.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-07-24 22:59:13 +0200
committerBertram <bertram@cegetel.net>2009-07-24 22:59:13 +0200
commit8195e73cb801d56240beb966554a864729d9f20c (patch)
treef2a00036d15eaf70cb9abe4930b4199b1e5eae05 /src/openglgraphics.h
parentea6f492198a03cffc3be47df000fa16dfc3b262f (diff)
downloadmana-client-8195e73cb801d56240beb966554a864729d9f20c.tar.gz
mana-client-8195e73cb801d56240beb966554a864729d9f20c.tar.bz2
mana-client-8195e73cb801d56240beb966554a864729d9f20c.tar.xz
mana-client-8195e73cb801d56240beb966554a864729d9f20c.zip
Made the wallpaper be rescaled when necessary under SDL and OpenGL.
The SDL methods to rescale the wallpaper has been optimized to permit rescaling at load time while OpenGL draws directly rescaled. Does someone know how to smooth the rescaled image under OpenGL?
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r--src/openglgraphics.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openglgraphics.h b/src/openglgraphics.h
index dc748804..3553cac3 100644
--- a/src/openglgraphics.h
+++ b/src/openglgraphics.h
@@ -46,6 +46,15 @@ class OpenGLGraphics : public Graphics
int width, int height,
bool useColor);
+ /**
+ * 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,
+ bool useColor);
+
void drawImagePattern(Image *image,
int x, int y,
int w, int h);