glXCreateNewContext

create a new GLX rendering context

Signature

glXCreateNewContext( Display * ( dpy ) , GLXFBConfig ( config ) , int ( render_type ) , GLXContext ( share_list ) , Bool ( direct ) )-> GLXContext
glXCreateNewContext( dpy , config , render_type , share_list , direct ) -> <class 'OpenGL.raw.GLX._types.LP_struct___GLXcontextRec'>

Parameters

VariablesDescription
dpy
Specifies the connection to the X server.
config
Specifies the GLXFBConfig structure with the desired attributes for the context.
render_type
Specifies the type of the context to be created. Must be one of GLX_RGBA_TYPE or GLX_COLOR_INDEX_TYPE .
share_list
Specifies the context with which to share display lists. NULL indicates that no sharing is to take place.
share_list
Specifies whether rendering is to be done with a direct connection to the graphics system if possible ( True ) or through the X server ( False ).