PDA

View Full Version : WGL_SAMPLES_ARB values of 0 and 1



MickeyMouse
11-03-2010, 04:09 PM
Asked this in the beginners forum but got no answer, so I'll try my luck here ;)

When I'm calling wglGetPixelFormatAttribivARB to get WGL_SAMPLES_ARB value for some formats, I'm getting 0s or 1s (apart from getting 2, 4 and 8 for other formats).

Does anyone know what's the difference between WGL_SAMPLES_ARB value of 0 vs 1? I imagine the both mean "No Anti-Aliasing", right?

alder
11-09-2010, 12:22 PM
Please check the "Additions to the WGL Specification"
in http://www.opengl.org/registry/specs/ARB/multisample.txt. (http://www.opengl.org/registry/specs/ARB/multisample.txt) It explains the meaning of SAMPLES_ARB and SAMPLE_BUFFERS_ARB.
If you want to find a pixel format for multi-sampling try adding "WGL_SAMPLE_BUFFERS_ARB, 1," in your wglChoosePixelFormatARB attrib list.