diff options
author | Kenneth Russel <[email protected]> | 2008-08-11 02:40:46 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-08-11 02:40:46 +0000 |
commit | 2bf0794404b9ec92e13577f3b812a3947b57a0d1 (patch) | |
tree | 4b816d6747da81ef966aeef3f97c67ac204082fc /make/gl-impl-CustomJavaCode-gl2es12.java | |
parent | 2360494f69b0b624b12ac8dbd838d79b214ebf6f (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-gl2es12.java')
-rw-r--r-- | make/gl-impl-CustomJavaCode-gl2es12.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/make/gl-impl-CustomJavaCode-gl2es12.java b/make/gl-impl-CustomJavaCode-gl2es12.java index 237e0f7e4..5248aa8fe 100644 --- a/make/gl-impl-CustomJavaCode-gl2es12.java +++ b/make/gl-impl-CustomJavaCode-gl2es12.java @@ -20,6 +20,50 @@ public GL2ES12Impl(GLContextImpl context) { this.bufferSizeTracker = context.getBufferSizeTracker(); } +public final boolean isGL2() { + return false; +} + +public final boolean isGLES1() { + return false; +} + +public final boolean isGLES2() { + return false; +} + +public final boolean isGLES() { + return false; +} + +public final boolean isGL2ES1() { + return true; +} + +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 { + throw new GLException("Not a GLES2 implementation"); +} + +public final GL2ES1 getGL2ES1() throws GLException { + return this; +} + +public final GL2ES2 getGL2ES2() throws GLException { + return this; +} + public boolean isFunctionAvailable(String glFunctionName) { return _context.isFunctionAvailable(glFunctionName); } |