aboutsummaryrefslogtreecommitdiffstats
path: root/make/gl-impl-CustomJavaCode-gles2.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-08-11 02:40:46 +0000
committerKenneth Russel <[email protected]>2008-08-11 02:40:46 +0000
commit2bf0794404b9ec92e13577f3b812a3947b57a0d1 (patch)
tree4b816d6747da81ef966aeef3f97c67ac204082fc /make/gl-impl-CustomJavaCode-gles2.java
parent2360494f69b0b624b12ac8dbd838d79b214ebf6f (diff)
Removed unnecessary use of reflection which was showing up hot on
profiles of some JavaFX content git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1746 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/gl-impl-CustomJavaCode-gles2.java')
-rwxr-xr-xmake/gl-impl-CustomJavaCode-gles2.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/make/gl-impl-CustomJavaCode-gles2.java b/make/gl-impl-CustomJavaCode-gles2.java
index ea36745cd..358949568 100755
--- a/make/gl-impl-CustomJavaCode-gles2.java
+++ b/make/gl-impl-CustomJavaCode-gles2.java
@@ -8,6 +8,50 @@ public GLES2Impl(GLContextImpl context) {
this.enableFixedFunctionEmulationMode(FIXED_EMULATION_MATRIX);
}
+public final boolean isGL2() {
+ return false;
+}
+
+public final boolean isGLES1() {
+ return false;
+}
+
+public final boolean isGLES2() {
+ return true;
+}
+
+public final boolean isGLES() {
+ return true;
+}
+
+public final boolean isGL2ES1() {
+ return false;
+}
+
+public final boolean isGL2ES2() {
+ return true;
+}
+
+public final GL2 getGL2() throws GLException {
+ throw new GLException("Not a GL2 implementation");
+}
+
+public final GLES1 getGLES1() throws GLException {
+ throw new GLException("Not a GLES1 implementation");
+}
+
+public final GLES2 getGLES2() throws GLException {
+ return this;
+}
+
+public final GL2ES1 getGL2ES1() throws GLException {
+ throw new GLException("Not a GL2ES1 implementation");
+}
+
+public final GL2ES2 getGL2ES2() throws GLException {
+ return this;
+}
+
public boolean isFunctionAvailable(String glFunctionName) {
return _context.isFunctionAvailable(glFunctionName);
}