aboutsummaryrefslogtreecommitdiffstats
path: root/make/glu-CustomJavaCode-base.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-08-04 12:11:21 +0000
committerSven Gothel <[email protected]>2008-08-04 12:11:21 +0000
commitdc5883b13f157586dd2d89a84f9ea91d945edf70 (patch)
treed94df2e293bc24529b632514dfde6e73e22545fb /make/glu-CustomJavaCode-base.java
parent3224cf710cd4eaaca51d42dfd7302579be412498 (diff)
../jogl.log
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1741 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/glu-CustomJavaCode-base.java')
-rwxr-xr-xmake/glu-CustomJavaCode-base.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/make/glu-CustomJavaCode-base.java b/make/glu-CustomJavaCode-base.java
index 8e2127804..b506be00e 100755
--- a/make/glu-CustomJavaCode-base.java
+++ b/make/glu-CustomJavaCode-base.java
@@ -1196,8 +1196,15 @@ public final void gluDisk(GLUquadric quad, double inner, double outer, int slice
/** Option (throws GLUnsupportedException if not available in profile). <br> Interface to C language function: <br> <code> GLUquadric * gluNewQuadric(void); </code> */
public final GLUquadric gluNewQuadric() {
+ return gluNewQuadric(false);
+}
+
+public final GLUquadric gluNewQuadric(boolean useGLSL) {
+ if(useGLSL && !GLProfile.isGL2ES2()) {
+ throw new GLException("GLUquadric GLSL implementation not supported for profile: "+GLProfile.getProfile());
+ }
validateGLUquadricImpl();
- return new GLUquadricImpl();
+ return new GLUquadricImpl(useGLSL);
}
/** Option (throws GLUnsupportedException if not available in profile). <br> Interface to C language function: <br> <code> void gluPartialDisk(GLUquadric * quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops, GLdouble start, GLdouble sweep); </code> */