diff options
author | Sven Gothel <[email protected]> | 2008-11-26 18:55:09 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-11-26 18:55:09 +0000 |
commit | 511a3af08936b839218898ec3a3ee4c2cddec10e (patch) | |
tree | 7e873935d3d3b2e3a1bd8d7341ba4b34f4090bae /src/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java | |
parent | cc770d96bada835c19a0b38ad9cb49fb8b91d23a (diff) |
Newt Window
- Uses GLCapabilities for window creation
- Note: This is implemented in the new KDWindow only, for now.
- FIXME: Respect GLCapabilities for other implementations (X11, MacOS, Windows)
visualID shall be determined by GLCapabilities,
and set to 0 if not implemented.
- New OpenKODE KDWindow
- Compile native code at with 'ant -DuseKD=true'
- Use KD in newt with the Java property set newt.ws.name=KD
- API change:
NewtFactory.createWindow() takes GLCapabilities insteast of a fake visualID
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1804 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java')
-rwxr-xr-x | src/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java b/src/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java index 30665ce01..7f7c65a78 100755 --- a/src/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java +++ b/src/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java @@ -206,30 +206,6 @@ public class EGLDrawableFactory extends GLDrawableFactoryImpl { return false; } - public int[] glCapabilities2AttribList(GLCapabilities caps) { - int[] attrs = new int[] { - EGL.EGL_RENDERABLE_TYPE, -1, - // FIXME: does this need to be configurable? - EGL.EGL_SURFACE_TYPE, EGL.EGL_WINDOW_BIT, - EGL.EGL_RED_SIZE, caps.getRedBits(), - EGL.EGL_GREEN_SIZE, caps.getGreenBits(), - EGL.EGL_BLUE_SIZE, caps.getBlueBits(), - EGL.EGL_ALPHA_SIZE, (caps.getAlphaBits() > 0 ? caps.getAlphaBits() : EGL.EGL_DONT_CARE), - EGL.EGL_STENCIL_SIZE, (caps.getStencilBits() > 0 ? caps.getStencilBits() : EGL.EGL_DONT_CARE), - EGL.EGL_DEPTH_SIZE, caps.getDepthBits(), - EGL.EGL_NONE - }; - if (GLProfile.isGLES2()) { - attrs[1] = EGL.EGL_OPENGL_ES2_BIT; - } else if (GLProfile.isGLES1()) { - attrs[1] = EGL.EGL_OPENGL_ES_BIT; - } else { - throw new GLException("Error creating EGL drawable - invalid GLProfile"); - } - - return attrs; - } - /* // FIXME: this is the OpenGL ES 2 initialization order |