glXCreateContext

create a new GLX rendering context

Signature

glXCreateContext( Display * ( dpy ) , XVisualInfo * ( vis ) , GLXContext ( shareList ) , Bool ( direct ) )-> GLXContext
glXCreateContext( dpy , vis , shareList , direct ) -> <class 'OpenGL.raw.GLX._types.LP_struct___GLXcontextRec'>

Parameters

VariablesDescription
dpy
Specifies the connection to the X server.
vis
Specifies the visual that defines the frame buffer resources available to the rendering context. It is a pointer to an XVisualInfo structure, not a visual ID or a pointer to a Visual .
shareList
Specifies the context with which to share display lists. NULL indicates that no sharing is to take place.
direct
Specifies whether rendering is to be done with a direct connection to the graphics system if possible ( True ) or through the X server ( False ).