glXMakeContextCurrent

attach a GLX context to a GLX drawable

Signature

glXMakeContextCurrent( Display * ( display ) , GLXDrawable ( draw ) , GLXDrawable ( read ) , GLXContext ( ctx ) )-> Bool
glXMakeContextCurrent( dpy , draw , read , ctx ) -> <class 'ctypes.c_uint'>

Parameters

VariablesDescription
display
Specifies the connection to the X server.
draw
Specifies a GLX drawable to render into. Must be an XID representing a GLXWindow, GLXPixmap, or GLXPbuffer.
read
Specifies a GLX drawable to read from. Must be an XID representing a GLXWindow, GLXPixmap, or GLXPbuffer.
ctx
Specifies the GLX context to be bound to read and ctx .