diff options
author | Sven Gothel <[email protected]> | 2008-06-21 02:33:51 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-06-21 02:33:51 +0000 |
commit | 006acbb9463af33a8b45aa0b3a298604eba72d82 (patch) | |
tree | 2c71662575a2c098b22c4b19b471bb5c732041c5 /src/classes/com/sun/opengl/impl/egl/EGLDrawable.java | |
parent | cbc45e816f4ee81031bffce19a99550681462a24 (diff) |
2nd big refactoring.
Goals are orthogonal components for:
- OS Windowing system
- NEWT, X11, Windows, MacOsX
- GL Windowing GLUE
- EGL, GLX, WGL, CGL
- GL profiles
- core and util packages
- generate all Java components from any platform
All above goals are achieved.
TODO:
- Native compilation fix and test
- Check/Fix Win32, MacOSX and the mobile devices
- ..
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1665 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/egl/EGLDrawable.java')
-rwxr-xr-x | src/classes/com/sun/opengl/impl/egl/EGLDrawable.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java b/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java index 0227ba32f..b562d7423 100755 --- a/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java +++ b/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java @@ -41,7 +41,6 @@ import javax.media.opengl.*; public class EGLDrawable extends GLDrawableImpl { private long display; - private GLCapabilities capabilities; private GLCapabilitiesChooser chooser; private _EGLConfig config; private long surface; @@ -51,9 +50,8 @@ public class EGLDrawable extends GLDrawableImpl { NativeWindow component, GLCapabilities capabilities, GLCapabilitiesChooser chooser) throws GLException { - this.factory = factory; - this.component = component; - this.capabilities = capabilities; + super(factory, component, true); + setChosenGLCapabilities(capabilities); this.chooser = chooser; display = EGL.eglGetDisplay((component.getDisplayHandle()>0)?component.getDisplayHandle():EGL.EGL_DEFAULT_DISPLAY); @@ -141,11 +139,6 @@ public class EGLDrawable extends GLDrawableImpl { EGL.eglSwapBuffers(display, surface); } - public GLCapabilities getChosenGLCapabilities() { - // FIXME - return null; - } - public String toString() { return "EGLDrawable[ displayHandle " + component.getDisplayHandle() + ", screenHandle "+ component.getScreenHandle() + |