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.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Does it support glutInitDisplayMode
Page Index Toggle Pages: 1
Does it support glutInitDisplayMode? (Read 855 times)
Does it support glutInitDisplayMode?
Oct 31st, 2006, 9:25am
 
Hi

I have tried glutInitDisplayMode(GLUT_DOUBLE|GLUT_ACCUM ...

However, Processing complains about the GLUT_DOUBLE.

Any suggestion?
Re: Does it support glutInitDisplayMode?
Reply #1 - Oct 31st, 2006, 10:56am
 
you have to import javax.media.opengl.*; and you have to prefix all constants with the class they're in, e.g. GLUT.GLUT_DOUBLE.

HOWEVER, as far as I can tell jogl (which Processing uses for OpenGL( doesn't include the full set of glut instructions, and glutInitDisplayMode isn't one of them.
Jogl handles display options with GLCapabilities instead.

There's yet another problem, in that unless you're doing somethign really fancy, you'll have trouble setting up a new display, as processing handles all that itself when you do size(640,480,OPENGL);
Page Index Toggle Pages: 1