summaryrefslogtreecommitdiff
path: root/src/openglgraphics.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-22 21:17:15 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-05 17:14:29 +0200
commit10c75a337be97c93b6de839402461fd400baf128 (patch)
tree3541977d993b4f45f176a001cac4f80ddbb2c84f /src/openglgraphics.h
parent6c686562f03c14a51b32cb65111f0636abd5373b (diff)
downloadMana-10c75a337be97c93b6de839402461fd400baf128.tar.gz
Mana-10c75a337be97c93b6de839402461fd400baf128.tar.bz2
Mana-10c75a337be97c93b6de839402461fd400baf128.tar.xz
Mana-10c75a337be97c93b6de839402461fd400baf128.zip
Some cleanups in OpenGL code
* Removed empty and unused function `setTargetPlane` * Removed duplicated enabling of `GL_VERTEX_ARRAY` * Removed strange smoothing code from `drawRescaledImage` Reviewed-by: Erik Schilling
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r--src/openglgraphics.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/openglgraphics.h b/src/openglgraphics.h
index d61bf3db..a1d78e46 100644
--- a/src/openglgraphics.h
+++ b/src/openglgraphics.h
@@ -52,7 +52,7 @@ class OpenGLGraphics : public Graphics
bool useColor);
/**
- * Draws a resclaled version of the image
+ * Draws a rescaled version of the image
*/
bool drawRescaledImage(Image *image, int srcX, int srcY,
int dstX, int dstY,
@@ -60,15 +60,6 @@ class OpenGLGraphics : public Graphics
int desiredWidth, int desiredHeight,
bool useColor);
- /**
- * Used to get the smooth rescale option over the standard function.
- */
- bool drawRescaledImage(Image *image, int srcX, int srcY,
- int dstX, int dstY,
- int width, int height,
- int desiredWidth, int desiredHeight,
- bool useColor, bool smooth);
-
void drawImagePattern(Image *image,
int x, int y,
int w, int h);
@@ -100,8 +91,6 @@ class OpenGLGraphics : public Graphics
void fillRectangle(const gcn::Rectangle &rect);
- void setTargetPlane(int width, int height);
-
/**
* Takes a screenshot and returns it as SDL surface.
*/