Rechercher une page de manuel
gtk_gl_area_new_vargs
Langue: en
Version: 288507 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME gtk_gl_area_new_vargs - create an OpenGL widget
SYNOPSIS
GtkWidget* gtk_gl_area_new_vargs(GtkGLArea *share, ... )- share
- Specifies the widget with which to share display lists and texture objects. NULL indicates that no sharing is to take place.
- attrList
- Specifies a list of Boolean attributes and enum/integer attribute/value pairs. The last attribute must be zero or GDK_GL_NONE.
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_share_new(3)AUTHORS
The author of the GTKGLArea library is Janne Löf.This manpage was created by Morten Kjeldgaard for the Debian project
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre