From 0f343197b80999930287b8043c9197a685437116 Mon Sep 17 00:00:00 2001 From: Gerard Ziemski Date: Wed, 19 Nov 2003 18:47:55 +0000 Subject: implemented GLJPanel for Mac OS X git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@74 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java') 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; -- cgit v1.2.3