glXMakeCurrent

attach a GLX context to a window or a GLX pixmap

Signature

glXMakeCurrent( Display * ( dpy ) , GLXDrawable ( drawable ) , GLXContext ( ctx ) )-> Bool
glXMakeCurrent( dpy , drawable , ctx ) -> <class 'ctypes.c_uint'>

Parameters

VariablesDescription
dpy
Specifies the connection to the X server.
drawable
Specifies a GLX drawable. Must be either an X window ID or a GLX pixmap ID.
ctx
Specifies a GLX rendering context that is to be attached to drawable .