[ Previous | Next
| Table Of Contents

7.6 BOOL pglDestroyContext(hab,hgc)

BOOL pglDestroyContext(hab,hgc)

Description:

This function will destroy hgc, and all the resources that belong to it. If it is currently bound to a hwnd, this call will be ignored.

Parameters:
HAB hab Handle to Anchor Block 
HGC hgc Handle to OpenGL context

Return Values:
True Context was successfully destroyed, or context was bound to a window 
False Error occured.

Notes:

If hgc is currently bound to a window, pglDestroyContext will return without destroying hgc. A current context can be unbound from the currently bound window by calling pgl- MakeCurrent(hab,NULL,None); 


[ Previous | Next | Table Of Contents ]