Over 10 Million Study Resources Now at Your Fingertips


Download as :
Rating : ⭐⭐⭐⭐⭐
Price : $10.99
Language:EN
Pages: 2

And whether you want enable the swap interval extension

682

CHAPTER 19

Wiggle: OpenGL on Windows

Description

WGL_SUPPORT_GDI_ARB
WGL_SUPPORT_OPENGL_ARB WGL_DOUBLE_BUFFER_ARB WGL_STEREO_ARB
WGL_PIXEL_TYPE_ARB

WGL_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.

TABLE 19.4

Acceleration Flags for WGL_ACCELERATION_ARB

Constant Description
Constant Description

WGL_SWAP_EXCHANGE_ARB WGL_SWAP_COPY_ARB
WGL_SWAP_UNDEFINED_ARB

Swapping 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
How It Works
Login account
Login Your Account
Add to cart
Add to Cart
Payment
Make payment
Document download
Download File
PageId: ELIA3D6F18
img
Uploaded by :
w8wE6YqR
Page 1 Preview
and whether you want enable the swap interval exte
Sell Your Old Documents & Earn Wallet Balance