aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/x11
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/games/jogl/impl/x11')
-rw-r--r--src/net/java/games/jogl/impl/x11/X11GLContext.java12
-rw-r--r--src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java12
2 files changed, 24 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/impl/x11/X11GLContext.java b/src/net/java/games/jogl/impl/x11/X11GLContext.java
index 3fb142bff..39bae6f62 100644
--- a/src/net/java/games/jogl/impl/x11/X11GLContext.java
+++ b/src/net/java/games/jogl/impl/x11/X11GLContext.java
@@ -93,6 +93,18 @@ public abstract class X11GLContext extends GLContext {
public abstract int getOffscreenContextBufferedImageType();
+ public int getOffscreenContextWidth() {
+ throw new GLException("Should not call this");
+ }
+
+ public int getOffscreenContextHeight() {
+ throw new GLException("Should not call this");
+ }
+
+ public int getOffscreenContextPixelDataType() {
+ throw new GLException("Should not call this");
+ }
+
public abstract int getOffscreenContextReadBuffer();
public abstract boolean offscreenImageNeedsVerticalFlip();
diff --git a/src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java b/src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java
index 6d4557407..10ffdc854 100644
--- a/src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java
+++ b/src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java
@@ -76,6 +76,18 @@ public class X11OffscreenGLContext extends X11GLContext {
}
}
+ public int getOffscreenContextWidth() {
+ return width;
+ }
+
+ public int getOffscreenContextHeight() {
+ return height;
+ }
+
+ public int getOffscreenContextPixelDataType() {
+ return GL.GL_UNSIGNED_BYTE;
+ }
+
public int getOffscreenContextReadBuffer() {
if (isDoubleBuffered) {
return GL.GL_BACK;