diff options
author | Sven Gothel <[email protected]> | 2011-03-01 03:04:14 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-03-01 03:04:14 +0100 |
commit | 9d28b54913bc4a50d642a86614d0e69d6d3f3192 (patch) | |
tree | 9dc2583c689bbc3eaee3545f11a36e3f51448a2e /src/jogl/classes | |
parent | 40bc27c7199a747ff082b784b8e2871d36b763f5 (diff) |
JOGL OSX: Cleanup imports/override
Diffstat (limited to 'src/jogl/classes')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLContext.java | 7 | ||||
-rw-r--r-- | src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLDrawable.java | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLContext.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLContext.java index c839c87f1..55d3a0853 100644 --- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLContext.java +++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLContext.java @@ -39,11 +39,8 @@ package jogamp.opengl.macosx.cgl; -import java.util.*; -import javax.media.nativewindow.*; import javax.media.opengl.*; -import jogamp.opengl.*; public class MacOSXOnscreenCGLContext extends MacOSXCGLContext { @@ -52,21 +49,25 @@ public class MacOSXOnscreenCGLContext extends MacOSXCGLContext { super(drawable, shareWith); } + @Override protected void makeCurrentImpl(boolean newCreated) throws GLException { super.makeCurrentImpl(newCreated); CGL.updateContext(contextHandle); } + @Override protected void releaseImpl() throws GLException { super.releaseImpl(); } + @Override protected void swapBuffers() { if (!CGL.flushBuffer(contextHandle)) { throw new GLException("Error swapping buffers"); } } + @Override protected void update() throws GLException { if (contextHandle == 0) { throw new GLException("Context not created"); diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLDrawable.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLDrawable.java index bd311217d..513dc3a04 100644 --- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLDrawable.java +++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLDrawable.java @@ -41,12 +41,10 @@ package jogamp.opengl.macosx.cgl; import java.lang.ref.WeakReference; -import java.security.*; import java.util.*; import javax.media.nativewindow.*; import javax.media.opengl.*; -import jogamp.opengl.*; public class MacOSXOnscreenCGLDrawable extends MacOSXCGLDrawable { private List/*<WeakReference<GLContext>>*/ createdContexts = |