aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/javax/media
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-11-13 20:26:57 +0000
committerSven Gothel <[email protected]>2008-11-13 20:26:57 +0000
commitc25a62a71154340da6b50e56ceef3fa780f89a93 (patch)
tree8fdec21df1774d491e165814e1a2e0067b84289f /src/classes/javax/media
parent9802bc053ef45140690bb58232429d225dfe0f75 (diff)
- Removed StaticGLInfo usage.
Function availability is checked by the dynamic ProcAddressTable, so it works as described/desired and removed around 30 kB of text. - Adding EGLExt to support EGLImage to share video buffers between another API (e.g. OpenMax) - EGL: Added platform extension query support - EGLClientBuffer is opaque long - GLXExt: Removed duplicated enumerates from GLX - GLContext: Promoted getPlatformExtensionsString() - GLProfile.setProfile<GL*>(void) changed order of setting the GL profile to: highest -> lowest: GL2 .. GL2ES12 .. GLES2 .. GLES1 git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1784 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/javax/media')
-rw-r--r--src/classes/javax/media/opengl/GLContext.java6
-rw-r--r--src/classes/javax/media/opengl/GLProfile.java9
2 files changed, 12 insertions, 3 deletions
diff --git a/src/classes/javax/media/opengl/GLContext.java b/src/classes/javax/media/opengl/GLContext.java
index 998ede419..ae9c11786 100644
--- a/src/classes/javax/media/opengl/GLContext.java
+++ b/src/classes/javax/media/opengl/GLContext.java
@@ -194,6 +194,12 @@ public abstract class GLContext {
" Factory: "+ getGLDrawable().getFactory().getClass().getName()+")";
}
+ /** Returns a non-null (but possibly empty) string containing the
+ space-separated list of available platform-dependent (e.g., WGL,
+ GLX) extensions. Can only be called while this context is
+ current. */
+ public abstract String getPlatformExtensionsString();
+
/**
* Mapping fixed function (client) array indices to
* GLSL array attribute names.
diff --git a/src/classes/javax/media/opengl/GLProfile.java b/src/classes/javax/media/opengl/GLProfile.java
index 14a57cc8c..0d1c73d07 100644
--- a/src/classes/javax/media/opengl/GLProfile.java
+++ b/src/classes/javax/media/opengl/GLProfile.java
@@ -123,23 +123,26 @@ public class GLProfile {
/**
* Selects a profile, implementing the interface GL2ES1.
+ * Order: GL2, GL2ES12, GLES1
*/
public static synchronized final void setProfileGL2ES1() {
- setProfile(new String[] { GLES1, GL2ES12, GL2 });
+ setProfile(new String[] { GL2, GL2ES12, GLES1 });
}
/**
* Selects a profile, implementing the interface GL2ES2.
+ * Order: GL2, GL2ES12, GLES2
*/
public static synchronized final void setProfileGL2ES2() {
- setProfile(new String[] { GLES2, GL2ES12, GL2 });
+ setProfile(new String[] { GL2, GL2ES12, GLES2 });
}
/**
* Selects a profile, implementing the interface GL
+ * Order: GL2, GL2ES12, GLES2, GLES1
*/
public static synchronized final void setProfileGLAny() {
- setProfile(new String[] { GLES2, GLES1, GL2ES12, GL2 });
+ setProfile(new String[] { GL2, GL2ES12, GLES2, GLES1 });
}
public static final String getProfile() {