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().

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 bool

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

renderType int

GDK_GL_RGBA_TYPE.

Return: the new #GdkGLContext.

Meta