And whether you want enable the swap interval extension
682 |
|
|
---|---|---|
|
---|
WGL_SUPPORT_GDI_ARB
WGL_SUPPORT_OPENGL_ARB WGL_DOUBLE_BUFFER_ARB WGL_STEREO_ARB
WGL_PIXEL_TYPE_ARBWGL_TYPE_RGBA_ARB for RGBA color modes;
WGL_TYPE_COLORINDEX_ARB for color index mode.Number of bit planes in the color buffer.
Number of blue bit planes in the color buffer.
Shift count for blue bit planes.
|
|
---|---|
Constant | Description |
Constant | Description |
WGL_SWAP_EXCHANGE_ARB WGL_SWAP_COPY_ARB
WGL_SWAP_UNDEFINED_ARBSwapping exchanges the front and back buffers.
OpenGL and WGL Extensions 683
format (we can actually cheat and just specify 1, which will be the first hardware acceler-ated format) and then obtain a pointer to one of the wglGetPixelFormatAttribARB func-tions. A convenient place to do this might be the splash screen or perhaps an initial options dialog box that is presented to the user. You should not, however, try to use the Windows desktop because your application does not own it!
// nResults[0] now contains the number of exported pixel formats
For a more detailed example showing how to look for a specific pixel format (including a multisampled pixel format), see the SPHEREWORLD32 sample program coming up next.
FIGURE 19.7 |
---|