Over 10 Million Study Resources Now at Your Fingertips


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

And the other the wgl extension

680

CHAPTER 19

Wiggle: OpenGL on Windows

PFNWGLGETEXTENSIONSSTRINGARBPROC *wglGetExtensionsStringARB;

wglGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)

GLint iLayerPlane, GLuint nAttributes,

const GLint *piAttributes, GLint *piValues);

These two variations of the same function allow you to query a particular pixel format index and retrieve an array containing the attribute data for that pixel format. The first argument, hdc, is the device context of the window that the pixel format will be used for, followed by the pixel format index. The iLayerPlane argument specifies which layer plane to query (0 on Vista, or if your implementation does not support layer planes). Next, nAttributes specifies how many attributes are being queried for this pixel format, and the array piAttributes contains the list of attribute names to be queried. The attributes that can be specified are listed in Table 19.3. The final argument is an array that will be filled with the corresponding pixel format attributes.

TABLE 19.3 Pixelformat Attributes

Number of pixel formats for this device.

Nonzero if the pixel format can be used with a window. Nonzero if the pixel format can be used with a memory

hardware driver is used.

WGL_NEED_PALETTE_ARB Nonzero if a palette is required.

double-buffered pixel formats. It is one of the values listed in

Table 19.5.

Transparent green color.

WGL_TRANSPARENT_BLUE_VALUE_ARB WGL_TRANSPARENT_ALPHA_VALUE_ARB WGL_SHARE_DEPTH_ARB

WGL_SHARE_STENCIL_ARB Nonzero if layer planes share a stencil buffer with the

main plane.

How It Works
Login account
Login Your Account
Add to cart
Add to Cart
Payment
Make payment
Document download
Download File
PageId: ELIECA56F6
img
Uploaded by :
kMJ6ZNpw
Page 1 Preview
and the other the wgl extension
Sell Your Old Documents & Earn Wallet Balance