diff options
author | Sven Gothel <[email protected]> | 2009-03-13 11:55:23 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-03-13 11:55:23 +0000 |
commit | a74f1100b11eb3a6944a73eea48bf17d14ede8c1 (patch) | |
tree | 48a1d2e9fb9a7beb0c71ce016104022e79d736d3 /src/classes/com/sun/opengl/impl/egl/EGLConfig.java | |
parent | 3f0266e5d20216f68f515a943ad647d01e0ff567 (diff) |
New package Native Window Interface 'java.media.nwi',
to loose JOGL dependencies for the moved interfaces, mainly NativeWindow.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1863 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/egl/EGLConfig.java')
-rw-r--r-- | src/classes/com/sun/opengl/impl/egl/EGLConfig.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/classes/com/sun/opengl/impl/egl/EGLConfig.java b/src/classes/com/sun/opengl/impl/egl/EGLConfig.java index 4948b3a0c..2c03a20a6 100644 --- a/src/classes/com/sun/opengl/impl/egl/EGLConfig.java +++ b/src/classes/com/sun/opengl/impl/egl/EGLConfig.java @@ -36,6 +36,7 @@ package com.sun.opengl.impl.egl; import java.util.*; +import javax.media.nwi.*; import javax.media.opengl.*; import com.sun.opengl.impl.*; import com.sun.gluegen.runtime.NativeLibrary; @@ -50,7 +51,7 @@ public class EGLConfig { return configID; } - public GLCapabilities getCapabilities() { + public NWCapabilities getCapabilities() { return capabilities; } @@ -82,11 +83,11 @@ public class EGLConfig { if (numConfigs[0] == 0) { throw new GLException("No valid graphics configuration selected from eglChooseConfig"); } - capabilities = new GLCapabilities(); + capabilities = new NWCapabilities(); setup(display, configID, configs[0]); } - public EGLConfig(long display, GLCapabilities caps) { + public EGLConfig(long display, NWCapabilities caps) { int[] attrs = glCapabilities2AttribList(caps); _EGLConfig[] configs = new _EGLConfig[1]; int[] numConfigs = new int[1]; @@ -99,7 +100,7 @@ public class EGLConfig { if (numConfigs[0] == 0) { throw new GLException("No valid graphics configuration selected from eglChooseConfig"); } - capabilities = (GLCapabilities)caps.clone(); + capabilities = (NWCapabilities)caps.clone(); setup(display, -1, configs[0]); } @@ -136,7 +137,7 @@ public class EGLConfig { } } - public static int[] glCapabilities2AttribList(GLCapabilities caps) { + public static int[] glCapabilities2AttribList(NWCapabilities caps) { int[] attrs = new int[] { EGL.EGL_RENDERABLE_TYPE, -1, // FIXME: does this need to be configurable? @@ -166,6 +167,6 @@ public class EGLConfig { } private _EGLConfig _config; private int configID; - private GLCapabilities capabilities; + private NWCapabilities capabilities; } |