Steve,

        Do we want to put this multisampling patch into "freeglut" before the next release?

John F. Fay
Technical Fellow, Jacobs/Sverdrup TEAS Group
850-883-1294
john.fay@eglin.af.mil
 
-----Original Message-----
From: freeglut-developer-bounces@lists.sourceforge.net [mailto:freeglut-developer-bounces@lists.sourceforge.net] On Behalf Of Markus Henschel

Sent: Tuesday, June 27, 2006 11:41 AM
To: freeglut-developer@lists.sourceforge.net
Subject: Re: [Freeglut-developer] GLUT_MULTISAMPLE

>  OK, here's what I have so far ...

>  Freeglut_window.c:135 or so:
>  <quote>
>        if( fgState.DisplayMode & GLUT_AUX3 )
>            ATTRIB_VAL( GLX_AUX_BUFFERS, 3 );
>        if( fgState.DisplayMode & GLUT_AUX4 )
>            ATTRIB_VAL( GLX_AUX_BUFFERS, 4 );
>  +     if ( fgState.DisplayMode & GLUT_MULTISAMPLE )
>  +         ATTRIB_VAL( GLX_SAMPLES_SGIS, 4 );

>        /* Push a null at the end of the list */
>        ATTRIB( None );

>        if( ! wantIndexedMode )
>  </quote>

>  I can't find anything in Windows about multisampling.  Any help here
> would  be appreciated.

On windows getting GL_MULTISAMPLE_ARB to work is just pain because of the outdated win32 API for requesting a pixel format.

PIXELFORMATDESCRIPTOR just doesn't support it. So the only way to get multisampling is "WGL_ARB_multisample" and it's dependent extensions.

The basic procedure is:

1. Create a window with opengl support the traditional way (DC, RC, SetPixelformat, ...) 2. query the extension functions via wglGetProcAddress 3. use wglChoosePixelFormatARB to get a pixel format with sample buffers 4. Destroy the created window (as it's not possible to call SetPixelFormat twice) 5. Create another window with the pixel format from 3.

I appended a patch for this. I hard coded the number of sample buffers to 4 but I was planning to add support for setting the number of sample buffers along with getting glutInitDisplayString right.

Is somebody with CVS access actually reading this list? Is it possbible to get CVS access?


Regards,
Markus