diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-11-01 10:52:40 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-12-02 22:49:35 -0700 |
commit | ff89a2184651b676f0e835ec7991a100361465d1 (patch) | |
tree | 985b4e0579d582106f2055bd261b4706ab522a3f /src/openglgraphics.h | |
parent | 7882d3dfcac6b2894d33947d4dca5df375712646 (diff) | |
download | mana-ff89a2184651b676f0e835ec7991a100361465d1.tar.gz mana-ff89a2184651b676f0e835ec7991a100361465d1.tar.bz2 mana-ff89a2184651b676f0e835ec7991a100361465d1.tar.xz mana-ff89a2184651b676f0e835ec7991a100361465d1.zip |
Made an option around the syncing, but no way to change it for now.
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r-- | src/openglgraphics.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/openglgraphics.h b/src/openglgraphics.h index 7d39e306..ea30e019 100644 --- a/src/openglgraphics.h +++ b/src/openglgraphics.h @@ -31,6 +31,13 @@ class OpenGLGraphics : public Graphics ~OpenGLGraphics(); + /** + * Sets whether vertical refresh syncing is enabled. Takes effect after + * the next call to setVideoMode(). Only implemented on MacOS for now. + */ + void setSync(bool sync); + bool getSync() const { return mSync; } + bool setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel); bool drawImage(Image *image, @@ -72,6 +79,7 @@ class OpenGLGraphics : public Graphics private: bool mAlpha, mTexture; bool mColorAlpha; + bool mSync; }; #endif |