diff options
author | Carsten Weisse <[email protected]> | 2007-01-11 23:36:21 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2007-01-11 23:36:21 +0000 |
commit | 8d4f24b415303af4d33dcc816c92f92931d0b803 (patch) | |
tree | 903eb3ce31ff8ff1b04f8168a33976faf6250ddb /src/jake2/render/opengl/CountGL.java | |
parent | b0da0689d0af92b409e775a7607a3a0683c43eb9 (diff) |
add setSwapInterval() for vsync (works on Win32 and Mac OS X)
turn it off on console:
gl_swapinterval 0
turn it on:
gl_swapinterval 1
Diffstat (limited to 'src/jake2/render/opengl/CountGL.java')
-rw-r--r-- | src/jake2/render/opengl/CountGL.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jake2/render/opengl/CountGL.java b/src/jake2/render/opengl/CountGL.java index 1e2f525..2752916 100644 --- a/src/jake2/render/opengl/CountGL.java +++ b/src/jake2/render/opengl/CountGL.java @@ -311,4 +311,11 @@ public class CountGL implements QGL { ++count; } + /* + * util extensions + */ + public void setSwapInterval(int interval) { + ++count; + } + } |