GLWidget.createGLContext

Creates a new GdkGLContext with the appropriate GdkGLDrawable for this widget. The GL context must be freed when you're finished with it. See also gtk_widget_get_gl_context().

class GLWidget
static
createGLContext

Parameters

widget Widget

a GtkWidget.

shareList GLContext

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

direct int

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

renderType int

GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE (currently not used).

Return Value

Type: GLContext

the new GdkGLContext.

Meta