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/windows/WindowsGLContext.java | 12 ++++++++++++ .../games/jogl/impl/windows/WindowsOffscreenGLContext.java | 12 ++++++++++++ 2 files changed, 24 insertions(+) (limited to 'src/net/java/games/jogl/impl/windows') diff --git a/src/net/java/games/jogl/impl/windows/WindowsGLContext.java b/src/net/java/games/jogl/impl/windows/WindowsGLContext.java index 9232cf37a..ff61bbd52 100644 --- a/src/net/java/games/jogl/impl/windows/WindowsGLContext.java +++ b/src/net/java/games/jogl/impl/windows/WindowsGLContext.java @@ -101,6 +101,18 @@ public abstract class WindowsGLContext 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/windows/WindowsOffscreenGLContext.java b/src/net/java/games/jogl/impl/windows/WindowsOffscreenGLContext.java index 8c2e72a7d..6185ae9fd 100644 --- a/src/net/java/games/jogl/impl/windows/WindowsOffscreenGLContext.java +++ b/src/net/java/games/jogl/impl/windows/WindowsOffscreenGLContext.java @@ -73,6 +73,18 @@ public class WindowsOffscreenGLContext extends WindowsGLContext { } } + public int getOffscreenContextWidth() { + return width; + } + + public int getOffscreenContextHeight() { + return height; + } + + public int getOffscreenContextPixelDataType() { + return GL.GL_UNSIGNED_BYTE; + } + public int getOffscreenContextReadBuffer() { // On Windows these contexts are always single-buffered return GL.GL_FRONT; -- cgit v1.2.3