PDA

View Full Version : Query available antialias levels



halo
04-18-2005, 09:33 AM
I know how to get the pixelformats for Antialiasing, i.e. WGL_SAMPLES_ARB=2, WGL_SAMPLES_ARB=4, etc, and how to tell if they are not supported.

How many quality levels should I test? What are the standard antialias levels? Is it 2,4,6, and 8?

dorbie
04-18-2005, 11:49 AM
Originally posted by halo:
I know how to get the pixelformats for Antialiasing, i.e. WGL_SAMPLES_ARB=2, WGL_SAMPLES_ARB=4, etc, and how to tell if they are not supported.

How many quality levels should I test? What are the standard antialias levels? Is it 2,4,6, and 8?You'll have to go through the pixel formats and querry. You could do this with standard pixel format enumeration code adding wglGetPixelFormatAttribivEXT with the WGL_SAMPLES_ARB attribute. I assume WGL_SAMPLE_BUFFERS_ARB would have to query as non zero before calling it for samples.