MGL_glChooseVisual

Choose an OpenGL visual to best match the passed in visual.

Declaration

void MGLAPI MGL_glChooseVisual(
    MGLDC *dc,
    MGLVisual *visual)

Parameters

dc

MGL device context

visual

Structure containing OpenGL visual information

 

Description

This function examines the visual passed in and modifies the values to best match the capabilities of the underlying OpenGL implementation. If a requested capability is not supported, the structure will be modified for the capabilities that the OpenGL implementation does support (ie: lowering the depth buffer size to 16 bits etc).

See Also

MGL_glSetVisual, MGL_glCreateContext

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com