Call this function before using any other GtkGLExt functions in your
applications. It will initialize everything needed to operate the library
and parses some standard command line options. @argc and
never see those standard arguments.
<note><para>
This function will terminate your program if it was unable to initialize
the library for some reason. If you want your program to fall back to a
textual interface you want to call gtk_gl_init_check() instead.
</para></note>
Address of the <parameter>argc</parameter> parameter of your <function>main()</function> function. Changed if any arguments were handled.
Address of the <parameter>argv</parameter> parameter of <function>main()</function>. Any parameters understood by gtk_gl_init() are stripped before return.
This function does the same work as gtk_gl_init() with only
initialized. Instead it returns %FALSE on failure.
This way the application can fall back to some other means of communication
with the user - for example a curses or command line interface.
%FALSE otherwise.
%TRUE if the GUI has been successfully initialized,
Address of the <parameter>argc</parameter> parameter of your <function>main()</function> function. Changed if any arguments were handled.
Address of the <parameter>argv</parameter> parameter of <function>main()</function>. Any parameters understood by gtk_gl_init() are stripped before return.
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().
the new #GdkGLContext.
a #GtkWidget.
the #GdkGLContext with which to share display lists and texture objects. NULL indicates that no sharing is to take place.
whether rendering is to be done with a direct connection to the graphics system.
GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE (currently not used).
Returns the #GdkGLConfig referred by the @widget.
the #GdkGLConfig.
a #GtkWidget.
Returns the #GdkGLContext with the appropriate #GdkGLDrawable
for this widget. Unlike the GL context returned by
gtk_widget_create_gl_context(), this context is owned by the widget.
#GdkGLContext is needed for the function gdk_gl_drawable_begin,
or for sharing display lists (see gtk_widget_set_gl_capability()).
the #GdkGLContext.
a #GtkWidget.
Returns the #GdkGLWindow owned by the @widget.
the #GdkGLWindow.
a #GtkWidget.
Returns whether the @widget is OpenGL-capable.
TRUE if the @widget is OpenGL-capable, FALSE otherwise.
a #GtkWidget.
Set the OpenGL-capability to the @widget.
This function prepares the widget for its use with OpenGL.
TRUE if it is successful, FALSE otherwise.
the #GtkWidget to be used as the rendering area.
a #GdkGLConfig.
the #GdkGLContext with which to share display lists and texture objects. NULL indicates that no sharing is to take place.
whether rendering is to be done with a direct connection to the graphics system.
GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE (currently not used).