aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/macosx
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/games/jogl/impl/macosx')
-rw-r--r--src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java42
-rw-r--r--src/net/java/games/jogl/impl/macosx/MacOSXOffscreenGLContext.java8
-rw-r--r--src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java16
-rw-r--r--src/net/java/games/jogl/impl/macosx/MacOSXPbufferGLContext.java10
4 files changed, 30 insertions, 46 deletions
diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
index 56fba2900..d0ea429a4 100644
--- a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
+++ b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
@@ -75,18 +75,6 @@ public abstract class MacOSXGLContext extends GLContextImpl
return glExtensionName;
}
- public int getOffscreenContextPixelDataType() {
- throw new GLException("Should not call this");
- }
-
- public int getOffscreenContextReadBuffer() {
- throw new GLException("Should not call this");
- }
-
- public boolean offscreenImageNeedsVerticalFlip() {
- throw new GLException("Should not call this");
- }
-
protected boolean create() {
return create(false, false);
}
@@ -233,6 +221,36 @@ public abstract class MacOSXGLContext extends GLContextImpl
return super.isExtensionAvailable(glExtensionName);
}
+ public int getOffscreenContextPixelDataType() {
+ throw new GLException("Should not call this");
+ }
+
+ public int getOffscreenContextReadBuffer() {
+ throw new GLException("Should not call this");
+ }
+
+ public boolean offscreenImageNeedsVerticalFlip() {
+ throw new GLException("Should not call this");
+ }
+
+ public boolean canCreatePbufferContext() {
+ return false;
+ }
+
+ public GLDrawableImpl createPbufferDrawable(GLCapabilities capabilities,
+ int initialWidth,
+ int initialHeight) {
+ throw new GLException("Not supported");
+ }
+
+ public void bindPbufferToTexture() {
+ throw new GLException("Should not call this");
+ }
+
+ public void releasePbufferFromTexture() {
+ throw new GLException("Should not call this");
+ }
+
//----------------------------------------------------------------------
// Internals only below this point
//
diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXOffscreenGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXOffscreenGLContext.java
index c6ac894b1..797ba2459 100644
--- a/src/net/java/games/jogl/impl/macosx/MacOSXOffscreenGLContext.java
+++ b/src/net/java/games/jogl/impl/macosx/MacOSXOffscreenGLContext.java
@@ -61,12 +61,4 @@ public class MacOSXOffscreenGLContext extends MacOSXPbufferGLContext
public boolean offscreenImageNeedsVerticalFlip() {
return true;
}
-
- public void bindPbufferToTexture() {
- throw new GLException("Should not call this");
- }
-
- public void releasePbufferFromTexture() {
- throw new GLException("Should not call this");
- }
}
diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java
index a8ffcf8ec..6dd2c4b4a 100644
--- a/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java
+++ b/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java
@@ -55,14 +55,6 @@ public class MacOSXOnscreenGLContext extends MacOSXGLContext {
this.drawable = drawable;
}
- public int getOffscreenContextReadBuffer() {
- throw new GLException("Should not call this");
- }
-
- public boolean offscreenImageNeedsVerticalFlip() {
- throw new GLException("Should not call this");
- }
-
public boolean canCreatePbufferContext() {
return true;
}
@@ -75,14 +67,6 @@ public class MacOSXOnscreenGLContext extends MacOSXGLContext {
return buf;
}
- public void bindPbufferToTexture() {
- throw new GLException("Should not call this");
- }
-
- public void releasePbufferFromTexture() {
- throw new GLException("Should not call this");
- }
-
protected int makeCurrentImpl() throws GLException {
try {
int lockRes = drawable.lockSurface();
diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXPbufferGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXPbufferGLContext.java
index 02e5c1ead..b9d8dbf52 100644
--- a/src/net/java/games/jogl/impl/macosx/MacOSXPbufferGLContext.java
+++ b/src/net/java/games/jogl/impl/macosx/MacOSXPbufferGLContext.java
@@ -34,16 +34,6 @@ public class MacOSXPbufferGLContext extends MacOSXGLContext {
this.drawable = drawable;
}
- public boolean canCreatePbufferContext() {
- return false;
- }
-
- public GLDrawableImpl createPbufferDrawable(GLCapabilities capabilities,
- int initialWidth,
- int initialHeight) {
- throw new GLException("Not supported");
- }
-
public void bindPbufferToTexture() {
GL gl = getGL();
gl.glBindTexture(textureTarget, texture);