aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXOffscreenCGLDrawable.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-12-16 02:38:46 +0000
committerKenneth Russel <[email protected]>2008-12-16 02:38:46 +0000
commit14a94c810910f88d3b7214ae9be5027dc74df39f (patch)
tree35792a840d433342d190e1838c456c3242b39295 /src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXOffscreenCGLDrawable.java
parent06d146fc64d934039e55a2c00a18e1056e0d85f2 (diff)
Removed setSize(), setPosition(), setVisible(), and setFullscreen()
from javax.media.opengl.NativeWindow interface as these are concerns of the window toolkit and not the OpenGL binding. Removed isVisible(), isFullscreen(), getX(), and getY(). getWidth() and getHeight() remain. Changed implementations of offscreen and pbuffer drawables and changed GLJPanel to destroy and re-create its offscreen GLDrawable upon resize rather than attempting to resize the GLDrawable directly. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1823 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXOffscreenCGLDrawable.java')
-rw-r--r--src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXOffscreenCGLDrawable.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXOffscreenCGLDrawable.java b/src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXOffscreenCGLDrawable.java
index bf3e402cc..a825e1c1e 100644
--- a/src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXOffscreenCGLDrawable.java
+++ b/src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXOffscreenCGLDrawable.java
@@ -44,8 +44,11 @@ import com.sun.opengl.impl.*;
public class MacOSXOffscreenCGLDrawable extends MacOSXPbufferCGLDrawable {
- public MacOSXOffscreenCGLDrawable(GLDrawableFactory factory, GLCapabilities capabilities) {
- super(factory, capabilities, 0, 0);
+ public MacOSXOffscreenCGLDrawable(GLDrawableFactory factory,
+ GLCapabilities capabilities,
+ int width,
+ int height) {
+ super(factory, capabilities, width, height);
}
public GLContext createContext(GLContext shareWith) {