We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
GLUT in processing? (Read 1134 times)
GLUT in processing?
Feb 26th, 2009, 8:54pm
 
basically that's my question, how can i get glut in processing?
Re: GLUT in processing?
Reply #1 - Feb 26th, 2009, 10:54pm
 
have you tried adding this to your draw method?

 GL gl = ((PGraphicsOpenGL)g).gl;
 GLUT glut = new GLUT();

the first line is from the libraries/opengl documentation, the second line i made up but GLUT is in the supplied jogl jar and the PGraphicsOpenGl class creates a GLU object using the equivalent method so it might work.

(i'm still on 135 or 148 and neither of those have PGraphicsOpenGL available so no testing. you might need the relevant import as well.)
Re: GLUT in processing?
Reply #2 - Feb 26th, 2009, 11:15pm
 
ok, i need to use OPENGL in the size() in order to get access to PGraphicsOpenGL, it's not a version thing like i thought. anyway:

 GL gl = ((PGraphicsOpenGL)g).gl;
 GLUT glut = new GLUT();
 glut.glutSolidIcosahedron();

gives me an arrayOutOfBounds exception (-449) in PGraphicsOpenGL.java (line 172 in v0135)

8(
Page Index Toggle Pages: 1