halo
04-18-2005, 07:18 AM
I am trying to get antialiasing with GL_MULTISAMPLE_ARB to work. I am not using C/C++. I am trying to get the simplest case working before I go back and refine it. I already know my card supports 2x and 4x antialiasing, so I am not going to check. I just want to make sure I have all the steps right.
1) Create a rendering context, so that you can get the wglChoosePixelFormat() address.
2) Use wglChoosePixelFormatARB() to choose a pixel format with WGL_SAMPLE_BUFFERS_ARB=GL_TRUE and WGL_SAMPLES_ARB=2.
3) Make the hrc current and call glEnable GL_MULTISAMPLE_ARB
At that point, your rendering should be antialiased.
Did I leave anything crucial out? Because while wglChoosePixelFormatARB() is returning 1, I then set the pixel format, but SetPixelFormat() fails on the first multisample pixel format. Do I need to describe the pixel format or something?
1) Create a rendering context, so that you can get the wglChoosePixelFormat() address.
2) Use wglChoosePixelFormatARB() to choose a pixel format with WGL_SAMPLE_BUFFERS_ARB=GL_TRUE and WGL_SAMPLES_ARB=2.
3) Make the hrc current and call glEnable GL_MULTISAMPLE_ARB
At that point, your rendering should be antialiased.
Did I leave anything crucial out? Because while wglChoosePixelFormatARB() is returning 1, I then set the pixel format, but SetPixelFormat() fails on the first multisample pixel format. Do I need to describe the pixel format or something?