Name
gl.GetCurrentContext -- get current OpenGL context
Synopsis
id = gl.GetCurrentContext()
Function
This function returns the identifier of the display whose OpenGL context is the current one.

You can use gl.SetCurrentContext() to set the current GL context.

Inputs
none

Results
id
identifier of the display whose OpenGL context is the current one

Show TOC