setGLCapability

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

static
int
setGLCapability

Parameters

widget Widget

the GtkWidget to be used as the rendering area.

glconfig GLConfig

a GdkGLConfig.

shareList GLContext

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

direct int

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

renderType int

GDK_GL_RGBA_TYPE.

Return Value

Type: int

TRUE if it is successful, FALSE otherwise.

Meta