summaryrefslogtreecommitdiff
path: root/src/openglgraphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r--src/openglgraphics.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/openglgraphics.h b/src/openglgraphics.h
index d61bf3db..63c32261 100644
--- a/src/openglgraphics.h
+++ b/src/openglgraphics.h
@@ -43,6 +43,16 @@ class OpenGLGraphics : public Graphics
void setSync(bool sync);
bool getSync() const { return mSync; }
+ /**
+ * Sets whether input lag should be reduced.
+ *
+ * This means waiting until the graphics card has finished drawing and
+ * displaying the current frame until continuing towards the next,
+ * possibly at the cost of performance and CPU usage.
+ */
+ void setReduceInputLag(bool reduceInputLag);
+ bool getReduceInputLag() const { return mReduceInputLag; }
+
bool setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel);
bool drawImage(Image *image,
@@ -52,7 +62,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 +70,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 +101,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.
*/
@@ -125,6 +124,7 @@ class OpenGLGraphics : public Graphics
bool mAlpha, mTexture;
bool mColorAlpha;
bool mSync;
+ bool mReduceInputLag;
};
#endif //USE_OPENGL