PDA

View Full Version : glut and ARB_Multisample



andreasMank
05-19-2004, 03:49 AM
i'm using glut for window handling and want to implement antialiasing using ARB_Multisample .. is there any possibility to do it this way??
creating window and choosing pixelformat theams to be no problem .. normally i have to destroy the window and create a new one using my new pixelformat .. but this exactly is my problem ..

thx

vmh5
05-19-2004, 08:54 AM
My answer: don't use glut to create the window. And you'll have to use ARB pixel format calls.

brcain
05-19-2004, 09:06 AM
Check out the redbook example, multisamp.c. In particular, look at ...

glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_MULTISAMPLE);

glGetIntegerv (GL_SAMPLE_BUFFERS_ARB, buf);

glGetIntegerv (GL_SAMPLES_ARB, sbuf);

glEnable (GL_MULTISAMPLE_ARB);

arekkusu
05-19-2004, 11:05 AM
This works fine for me with GLUT on OS X:

glutInitDisplayString("double rgb depth=16 samples=4");