Supported Browsers Home   
MGL_glCreateContext Previous   
MGL_glDisableMGLFuncs Next   
External Functions Up   

MGL_glDeleteContext

Delete the OpenGL rendering context associated with the MGL device contex.

Declaration

void MGLAPI MGL_glDeleteContext(
    MGLDC *dc)

Prototype In

mgraph.h

Parameters

dc

MGL device context to delete OpenGL rendering context for

 

Description

This function destroys the OpenGL rendering context for the MGL device context, and calls OpenGL to ensure that no rendering context is still current. You must call this function before you destroy and MGL device context if you have enabled OpenGL via MGL_glCreateContext.

Note:    After you have called this function, it is an error to make calls to the OpenGL API as OpenGL will not have a current rendering context active.

See Also

MGL_glCreateContext, MGL_glMakeCurrent

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