Supported Browsers Home   
MGL_glEnableMGLFuncs Previous   
MGL_glGetProcAddress Next   
External Functions Up   

MGL_glEnumerateDrivers

Enumerates the names of all available OpenGL implementations.

Declaration

const char ** MGLAPI MGL_glEnumerateDrivers(void)

Prototype In

mgraph.h

Return Value

Pointer to a NULL terminated list of available OpenGL driver names.

Description

This function returns a NULL terminated list of OpenGL driver names to the application program, which describes all the available OpenGL drivers on the system. Once you have obtained the driver names, you can change the current OpenGL driver with MGL_glSetDriver.

Note that this function will always returns built in names for 'auto', 'microsoft', 'sgi' and 'mesa' and setting a driver to these names corresponds to changing the OpenGL driver type with MGL_glSetOpenGLType. However if there are multiple fullscreen hardware OpenGL drivers on the system and registered with the MGL, they will be listed one after the other. For example if you have an ATI 3DRage, a 3Dfx Voodoo and an NEC PowerVR installed in your system and there are fullscreen OpenGL drivers for all these boards registered with the MGL, the names for these drivers would be returned in this list also.

See Also

MGL_glSetDriver, MGL_glSetOpenGLType

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