Query available antialias levels

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?

Originally posted by halo:
[b]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?[/b]
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.