summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes')
-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() ;