gtk_gl_area_share_new

Langue: en

Version: 297825 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME gtk_gl_area_share_new - create an OpenGL widget

SYNOPSIS

GtkWidget* gtk_gl_area_share_new(int *attrList, GtkGLArea *share )
attrList
Specifies a list of Boolean attributes and enum/integer attribute/value pairs. The last attribute must be zero or GDK_GL_NONE.
share
Specifies the widget with which to share display lists and texture objects. NULL indicates that no sharing is to take place.

DESCRIPTION

Make an OpenGL widget, attrList is passed to glXChooseVisual GLX call. See glXChooseVisual man page for explanation of attrList. Widget is created with visual and colormap of the requested type and GLX context is created for this widget. You can't do opengl calls on widget until it has X window. X window is not created until widget is realized. gtk_gl_area_new_vargs takes attrList as variable arguments, last argument must still be zero.

The GtkGLArea widget is derived from GtkDrawingArea widget. For an example, see examples/simple.c as a good starting point.

LIBRARY USE

Use -lgtkgl as a flag to the loader.

SEE ALSO

glXChooseVisual(3), gtk_gl_area_new(3), gtk_gl_area_new_vargs(3)

AUTHORS

The author of the GTKGLArea library is Janne Löf.

This manpage was created by Morten Kjeldgaard for the Debian project