[ Previous | Next
| Table Of Contents

7.2 PVISUALCONFIG *pglQueryConfigs( hab)

PVISUALCONFIG *pglQueryConfigs( hab)

Description:

This call will return a NULL terminated array of pointers to available visual config structures for an OpenGL application to choose from. A visual config defines what buffer configurations (depth,accum,alpha,stencil) are available. An application should choose the simplest visual config that will suit its needs (least number of buffers).Programmers can also use the helper routine pglChooseC- onfig which will choose a suitable visual based on minimum require- ments. A PVISUALCONFIG is required to create an OpenGL context. The list of Visual Configs is not guaranteed to be in any certain order.

Parameters:
HAB hab Handle to anchor block

Return Values:
PVISUALCONFIG * Pointer to null terminated array of pointers to VISUALCONFIG structures containing buffer configs

Notes:

The user should not modify the fields of the returned PVISUAL- CONFIG structures.

When the user is done with the returned PVISUALCONFIG list , that memory can be freed by calling the C library routine free(). 


[ Previous | Next | Table Of Contents ]