diff options
author | Kenneth Russel <[email protected]> | 2005-04-24 00:10:41 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-04-24 00:10:41 +0000 |
commit | bafff33544dae0f28a0a7141d2a4ee05295ea2ec (patch) | |
tree | 52ab68a2f188a8f207474ab3c80d2abeaa125bb0 /make/gl-impl-win32.cfg | |
parent | 95a1681443162db968c5430097780bfd0ade0a68 (diff) |
Fixed Issue 92: Platform Independent VSync functionality
Added GL.setSwapInterval() which delegates to appropriate
platform-dependent routines. Must be called only from within
GLEventListener callbacks.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@260 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/gl-impl-win32.cfg')
-rw-r--r-- | make/gl-impl-win32.cfg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/make/gl-impl-win32.cfg b/make/gl-impl-win32.cfg index bf4f93998..252425659 100644 --- a/make/gl-impl-win32.cfg +++ b/make/gl-impl-win32.cfg @@ -60,5 +60,11 @@ CustomJavaCode WindowsGLImpl public java.nio.ByteBuffer glAllocateMemoryNV(int CustomJavaCode WindowsGLImpl return wglAllocateMemoryNV(arg0, arg1, arg2, arg3); CustomJavaCode WindowsGLImpl } +CustomJavaCode WindowsGLImpl public void setSwapInterval(int interval) { +CustomJavaCode WindowsGLImpl if (isExtensionAvailable("WGL_EXT_swap_control")) { +CustomJavaCode WindowsGLImpl wglSwapIntervalEXT(interval); +CustomJavaCode WindowsGLImpl } +CustomJavaCode WindowsGLImpl } + IncludeAs CustomJavaCode WindowsGLImpl gl-impl-CustomJavaCode.java IncludeAs CustomCCode gl-impl-CustomCCode.c |