summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-10-16 16:17:26 -0700
committerSven Gothel <[email protected]>2009-10-16 16:17:26 -0700
commit86d20e3590ab4a9767b697f5ac07fe3e554ffb68 (patch)
treea5c170d4434ba9dc8645598689dc12d0bb52450f
parent242da40f2ba446b3f92966461aa55c1bced8debc (diff)
GLProfile: usesNativeGLES[12] remove check with non impl GL2ES[12] ; Add usesNativeGL[23]
-rw-r--r--src/jogl/classes/javax/media/opengl/GLProfile.java23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLProfile.java b/src/jogl/classes/javax/media/opengl/GLProfile.java
index abb6ca4f3..a63136944 100644
--- a/src/jogl/classes/javax/media/opengl/GLProfile.java
+++ b/src/jogl/classes/javax/media/opengl/GLProfile.java
@@ -171,14 +171,14 @@ public class GLProfile implements Cloneable {
* This requires an EGL interface.
*/
public static final boolean usesNativeGLES1(String profileImpl) {
- return GLES1.equals(profileImpl) || GL2ES1.equals(profileImpl) ;
+ return GLES1.equals(profileImpl);
}
/** Indicates whether the native OpenGL ES2 profile is in use.
* This requires an EGL interface.
*/
public static final boolean usesNativeGLES2(String profileImpl) {
- return GLES2.equals(profileImpl) || GL2ES2.equals(profileImpl) ;
+ return GLES2.equals(profileImpl);
}
/** Indicates whether either of the native OpenGL ES profiles are in use. */
@@ -283,12 +283,12 @@ public class GLProfile implements Cloneable {
/** Indicates whether this profile uses the native OpenGL ES1 implementations. */
public final boolean usesNativeGLES1() {
- return GLES1.equals(profileImpl) || GL2ES1.equals(profileImpl) ;
+ return GLES1.equals(profileImpl);
}
/** Indicates whether this profile uses the native OpenGL ES2 implementations. */
public final boolean usesNativeGLES2() {
- return GLES2.equals(profileImpl) || GL2ES2.equals(profileImpl) ;
+ return GLES2.equals(profileImpl);
}
/** Indicates whether this profile uses either of the native OpenGL ES implementations. */
@@ -296,6 +296,21 @@ public class GLProfile implements Cloneable {
return usesNativeGLES2() || usesNativeGLES1();
}
+ /** Indicates whether this profile uses the native desktop OpenGL GL2 implementations. */
+ public final boolean usesNativeGL2() {
+ return GL2.equals(profileImpl) || GL2ES12.equals(profileImpl) ;
+ }
+
+ /** Indicates whether this profile uses the native desktop OpenGL GL3 implementations. */
+ public final boolean usesNativeGL3() {
+ return GL3.equals(profileImpl);
+ }
+
+ /** Indicates whether this profile uses the native desktop OpenGL GL2 or GL3 implementations. */
+ public final boolean usesNativeGL2GL3() {
+ return usesNativeGL2() || usesNativeGL3() ;
+ }
+
/** Indicates whether this profile supports GLSL. */
public final boolean hasGLSL() {
return isGL2ES2() ;