Supported Browsers Home   
MGL_glSetDriver Previous   
MGL_glSetPalette Next   
External Functions Up   

MGL_glSetOpenGLType

Sets the OpenGL implementation type to use.

Declaration

void MGLAPI MGL_glSetOpenGLType(
    int type)

Prototype In

mgraph.h

Parameters

type

New OpenGL type to set (MGL_glOpenGLType)

 

Description

This function sets the current OpenGL implementation type to use according to the passed in type parameter (MGL_glOpenGLType enumeration). In the AUTO mode we automatically determine which version of OpenGL to use depending on the target runtime system. Unless there is hardware acceleration available we choose Silicon Graphic's OpenGL, but if hardware acceleration is present we use the system provided OpenGL implementation so we can utilize the hardware (which is Microsoft OpenGL for Win32).

Note:    If you wish to be able to choose between the registered MGL hardware OpenGL drivers within your application, use the MGL_glEnumerateDrivers and MGL_glSetDriver functions instead.

See Also

MGL_glSetDriver, MGL_glEnumerateDrivers

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