From bafff33544dae0f28a0a7141d2a4ee05295ea2ec Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 24 Apr 2005 00:10:41 +0000 Subject: 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 --- make/gl-impl-macosx.cfg | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'make/gl-impl-macosx.cfg') diff --git a/make/gl-impl-macosx.cfg b/make/gl-impl-macosx.cfg index 8ce128851..5a09750dd 100644 --- a/make/gl-impl-macosx.cfg +++ b/make/gl-impl-macosx.cfg @@ -73,5 +73,9 @@ CustomJavaCode MacOSXGLImpl // FIXME CustomJavaCode MacOSXGLImpl throw new GLException("Not yet implemented"); CustomJavaCode MacOSXGLImpl } +CustomJavaCode MacOSXGLImpl public void setSwapInterval(int interval) { // FIXME: not implemented yet +CustomJavaCode MacOSXGLImpl _context.setSwapInterval(interval); +CustomJavaCode MacOSXGLImpl } + IncludeAs CustomJavaCode MacOSXGLImpl gl-impl-CustomJavaCode.java IncludeAs CustomCCode gl-impl-CustomCCode.c -- cgit v1.2.3