MGL_disableDriver
Disables a driver from being used in the detection process.
Declaration
int MGLAPI MGL_disableDriver(
const char *name)
Prototype In
mgraph.h
Parameters
name |
Name of the driver to register |
Return Value
grOK on success, error code on failure.
Description
This function disables a specific device driver so that it will no longer be used as part of the dynamic detection process for the currently active device. By default all device drivers are enabled, and this function allows the programmer to control the device detection process. For instance SciTech SNAP Graphics is used in preference to DirectDraw on Windows systems. To disable the SciTech SNAP Graphicsdriver and allow DirectDraw to be used, you would do the following:
MGL_disableDriver(MGL_SNAPNAME);
The names of the standard device drivers currently supported are:
Driver |
Description |
MGL_VBENAME |
SciTech SNAP Graphics VGA and VESA VBE display driver |
MGL_SNAPNAME |
SciTech SNAP Graphics Accelerated display driver |
MGL_DDRAWNAME |
Microsoft DirectDraw accelerated display driver |
MGL_OPENGLNAME |
Microsoft hardware OpenGL display driver |
MGL_GLDIRECTNAME |
SciTech GLDirect hardware OpenGL display driver |
See Also
MGL_enableAllDrivers, MGL_enableAllOpenGLDrivers
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com