aboutsummaryrefslogtreecommitdiffstats
path: root/make/gl-impl-CustomJavaCode-common.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-common.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-common.java')
-rw-r--r--make/gl-impl-CustomJavaCode-common.java59
1 files changed, 0 insertions, 59 deletions
diff --git a/make/gl-impl-CustomJavaCode-common.java b/make/gl-impl-CustomJavaCode-common.java
index 2ddfccc27..866fbc7ae 100644
--- a/make/gl-impl-CustomJavaCode-common.java
+++ b/make/gl-impl-CustomJavaCode-common.java
@@ -1,62 +1,3 @@
- public final boolean isGL2() {
- return GLProfile.implementationOfGL2(this);
- }
-
- public final boolean isGLES1() {
- return GLProfile.implementationOfGLES1(this);
- }
-
- public final boolean isGLES2() {
- return GLProfile.implementationOfGLES2(this);
- }
-
- public final boolean isGLES() {
- return GLProfile.implementationOfGLES(this);
- }
-
- public final boolean isGL2ES1() {
- return GLProfile.implementationOfGL2ES1(this);
- }
-
- public final boolean isGL2ES2() {
- return GLProfile.implementationOfGL2ES2(this);
- }
-
- public final GL2 getGL2() throws GLException {
- if(!isGL2()) {
- throw new GLException("Not a GL2 implementation");
- }
- return (GL2)this;
- }
-
- public final GLES1 getGLES1() throws GLException {
- if(!isGLES1()) {
- throw new GLException("Not a GLES1 implementation");
- }
- return (GLES1)this;
- }
-
- public final GLES2 getGLES2() throws GLException {
- if(!isGLES2()) {
- throw new GLException("Not a GLES2 implementation");
- }
- return (GLES2)this;
- }
-
- public final GL2ES1 getGL2ES1() throws GLException {
- if(!isGL2ES1()) {
- throw new GLException("Not a GL2ES1 implementation");
- }
- return (GL2ES1)this;
- }
-
- public final GL2ES2 getGL2ES2() throws GLException {
- if(!isGL2ES2()) {
- throw new GLException("Not a GL2ES2 implementation");
- }
- return (GL2ES2)this;
- }
-
public final boolean matchesProfile() {
return matchesProfile(GLProfile.getProfile());
}