aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/opengl/LwjglGL.java
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2007-01-11 23:36:21 +0000
committerCarsten Weisse <[email protected]>2007-01-11 23:36:21 +0000
commit8d4f24b415303af4d33dcc816c92f92931d0b803 (patch)
tree903eb3ce31ff8ff1b04f8168a33976faf6250ddb /src/jake2/render/opengl/LwjglGL.java
parentb0da0689d0af92b409e775a7607a3a0683c43eb9 (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/LwjglGL.java')
-rw-r--r--src/jake2/render/opengl/LwjglGL.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jake2/render/opengl/LwjglGL.java b/src/jake2/render/opengl/LwjglGL.java
index 3557aea..c248c3a 100644
--- a/src/jake2/render/opengl/LwjglGL.java
+++ b/src/jake2/render/opengl/LwjglGL.java
@@ -301,4 +301,11 @@ public class LwjglGL implements QGL {
GL13.glMultiTexCoord2f(target, s, t);
}
+ /*
+ * util extensions
+ */
+ public void setSwapInterval(int interval) {
+ Display.setSwapInterval(interval);
+ }
+
}