From dc5883b13f157586dd2d89a84f9ea91d945edf70 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 4 Aug 2008 12:11:21 +0000 Subject: ../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 --- make/glu-CustomJavaCode-base.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'make/glu-CustomJavaCode-base.java') 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).
Interface to C language function:
GLUquadric * gluNewQuadric(void); */ 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).
Interface to C language function:
void gluPartialDisk(GLUquadric * quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops, GLdouble start, GLdouble sweep); */ -- cgit v1.2.3