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/GLContext.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/net/java/games/jogl/impl/GLContext.java') diff --git a/src/net/java/games/jogl/impl/GLContext.java b/src/net/java/games/jogl/impl/GLContext.java index e0def092a..82672b1c3 100644 --- a/src/net/java/games/jogl/impl/GLContext.java +++ b/src/net/java/games/jogl/impl/GLContext.java @@ -464,12 +464,21 @@ public abstract class GLContext { which to read pixels (GL.GL_FRONT or GL.GL_BACK). */ public abstract int getOffscreenContextReadBuffer(); + /** Only called for offscreen contexts; needed by glReadPixels */ + public abstract int getOffscreenContextWidth(); + + /** Only called for offscreen contexts; needed by glReadPixels */ + public abstract int getOffscreenContextHeight(); + + /** Only called for offscreen contexts; needed by glReadPixels */ + public abstract int getOffscreenContextPixelDataType(); + /** On some platforms the mismatch between OpenGL's coordinate system (origin at bottom left) and the window system's coordinate system (origin at top left) necessitates a vertical flip of pixels read from offscreen contexts. */ public abstract boolean offscreenImageNeedsVerticalFlip(); - + /** Attempts to make the GL context current. If necessary, creates a context and calls the initAction once the context is current. Most error conditions cause an exception to be thrown, except -- cgit v1.2.3