/usr/share/doc/libgtkgl2.0-dev/gtkglarea.txt is in libgtkgl2.0-dev 2.0.1-2.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | GtkGLArea widget is derived from GtkDrawingArea widget.
examples/simple.c is a good starting point.
---------------------------------------------------------
C SPECIFICATION
GtkWidget* gtk_gl_area_new(int *attrList)
GtkWidget* gtk_gl_area_share_new(int *attrList, GtkGLArea *share)
GtkWidget* gtk_gl_area_new_vargs(GtkGLArea *share, ...)
PARAMETERS
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.
---------------------------------------------------------
C SPECIFICATION
gint gtk_gl_area_make_current(GtkGLArea *gl_area)
PARAMETERS
gl_area
Specifies a gtkglarea widget.
DESCRIPTION
gtk_gl_area_make_current must be called before rendering into
OpenGL widget, it returns TRUE if rendering to widget is
possible. Rendering is not possible if widget is not
GtkGLArea widget or widget is not realized.
---------------------------------------------------------
C SPECIFICATION
gint gtk_gl_area_begingl(GtkGLArea *gl_area)
void gtk_gl_area_endgl(GtkGLArea *gl_area)
PARAMETERS
gl_area
Specifies a gtkglarea widget.
DESCRIPTION
*** Deprecated, use gtk_gl_area_make_current instead ***
gtk_gl_area_begingl must be called before rendering into
OpenGL widget, it returns TRUE if rendering to widget is
possible. Rendering is not possible if widget is not
GtkGLArea widget or widget is not realized. gtk_gl_area_endgl
is called to end opengl rendering.
---------------------------------------------------------
C SPECIFICATION
void gtk_gl_area_swap_buffers(GtkGLArea *gl_area)
void gtk_gl_area_swapbuffers(GtkGLArea *gl_area)
PARAMETERS
gl_area
Specifies a GtkGLArea widget.
DESCRIPTION
*** gtk_gl_area_swapbuffers is deprecated (wrong spelling), use
gtk_gl_area_swap_buffers ***
Wrapper around gdk_gl_swap_buffers. Promotes contents of back buffer
of widget to front buffer. The contents of front buffer become
undefined.
---------------------------------------------------------
|