Set the OpenGL-capability to the widget. This function prepares the widget for its use with OpenGL.


widget Widget

the gtk.Widget to be used as the rendering area.

glconfig GLConfig
shareList GLContext

the gdk.GLContext with which to share display lists and texture objects. NULL indicates that no sharing is to take place.

direct bool

whether rendering is to be done with a direct connection to the graphics system.

renderType int


Return: TRUE if it is successful, FALSE otherwise.