aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/macosx
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2011-03-01 03:04:14 +0100
committerSven Gothel <sgothel@jausoft.com>2011-03-01 03:04:14 +0100
commit9d28b54913bc4a50d642a86614d0e69d6d3f3192 (patch)
tree9dc2583c689bbc3eaee3545f11a36e3f51448a2e /src/jogl/classes/jogamp/opengl/macosx
parent40bc27c7199a747ff082b784b8e2871d36b763f5 (diff)
JOGL OSX: Cleanup imports/override
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/macosx')
-rw-r--r--src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLContext.java7
-rw-r--r--src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXOnscreenCGLDrawable.java2
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 =