Returns an OpenGL frame buffer configuration that match the specified
attributes.
attrib_list is a int array that contains the attribute/value pairs.
GDK_GL_USE_GL, GDK_GL_BUFFER_SIZE, GDK_GL_LEVEL, GDK_GL_RGBA,
GDK_GL_DOUBLEBUFFER, GDK_GL_STEREO, GDK_GL_AUX_BUFFERS,
GDK_GL_RED_SIZE, GDK_GL_GREEN_SIZE, GDK_GL_BLUE_SIZE, GDK_GL_ALPHA_SIZE,
GDK_GL_DEPTH_SIZE, GDK_GL_STENCIL_SIZE, GDK_GL_ACCUM_RED_SIZE,
GDK_GL_ACCUM_GREEN_SIZE, GDK_GL_ACCUM_BLUE_SIZE, GDK_GL_ACCUM_ALPHA_SIZE.
the new #GdkGLConfig.
a list of attribute/value pairs. The last attribute must be GDK_GL_ATTRIB_LIST_NONE.
Returns an OpenGL frame buffer configuration that match the specified
display mode.
the new #GdkGLConfig.
display mode bit mask.
Returns an OpenGL frame buffer configuration that match the specified
display mode.
the new #GdkGLConfig.
target screen.
display mode bit mask.
Returns an OpenGL frame buffer configuration that match the specified
attributes.
the new #GdkGLConfig.
target screen.
a list of attribute/value pairs. The last attribute must be GDK_GL_ATTRIB_LIST_NONE.
Gets information about a OpenGL frame buffer configuration.
TRUE if it succeeded, FALSE otherwise.
the attribute to be returned.
returns the requested value.
Gets the #GdkColormap that is appropriate for the OpenGL frame buffer
configuration.
the appropriate #GdkColormap.
Gets the color depth of the OpenGL-capable visual.
number of bits per pixel
Gets the layer plane (level) of the frame buffer.
Zero is the default frame buffer.
Positive layer planes correspond to frame buffers that overlay the default
buffer, and negative layer planes correspond to frame buffers that underlie
the default frame buffer.
layer plane.
Gets the number of auxiliary color buffers.
number of auxiliary color buffers.
Gets the number of multisample buffers.
number of multisample buffers.
Gets #GdkScreen.
the #GdkScreen.
Gets the #GdkVisual that is appropriate for the OpenGL frame buffer
configuration.
the appropriate #GdkVisual.
Returns whether the configured frame buffer has accumulation buffer.
otherwise.
TRUE if the frame buffer has accumulation buffer, FALSE
Returns whether the configured color buffer has alpha bits.
TRUE if the color buffer has alpha bits, FALSE otherwise.
Returns whether the configured frame buffer has depth buffer.
TRUE if the frame buffer has depth buffer, FALSE otherwise.
Returns whether the configured frame buffer has stencil buffer.
TRUE if the frame buffer has stencil buffer, FALSE otherwise.
Returns whether the configuration supports the double-buffered visual.
otherwise.
TRUE if the double-buffered visual is supported, FALSE
Returns whether the configured frame buffer is RGBA mode.
otherwise.
TRUE if the configured frame buffer is RGBA mode, FALSE
Returns whether the configuration supports the stereo visual.
TRUE if the stereo visual is supported, FALSE otherwise.
Creates a new OpenGL rendering context.
the new #GdkGLContext.
a #GdkGLDrawable.
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 current #GdkGLContext.
context.
the current #GdkGLContext or NULL if there is no current
Copy state from @src rendering context to @glcontext.
the glPushAttrib() function. You can use GL_ALL_ATTRIB_BITS to copy all the
rendering state information.
FALSE if it fails, TRUE otherwise.
the source context.
which portions of @src state are to be copied to @glcontext.
Gets #GdkGLConfig with which the @glcontext is configured.
the #GdkGLConfig.
Gets #GdkGLDrawable to which the @glcontext is bound.
the #GdkGLDrawable or NULL if no #GdkGLDrawable is bound.
Gets render_type of the @glcontext.
GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE.
Gets #GdkGLContext with which the @glcontext shares the display lists and
texture objects.
the #GdkGLContext.
Returns whether the @glcontext is a direct rendering context.
TRUE if the @glcontext is a direct rendering contest.
Gets #GdkGLConfig with which the @gldrawable is configured.
the #GdkGLConfig.
Fills *width and *height with the size of GL drawable.
width or height can be NULL if you only want the other one.
location to store drawable's width, or NULL.
location to store drawable's height, or NULL.
Delimits the begining of the OpenGL execution.
TRUE if it is successful, FALSE otherwise.
a #GdkGLContext.
Delimits the end of the OpenGL execution.
Returns whether the @gldrawable supports the double-buffered visual.
FALSE otherwise.
TRUE if the double-buffered visual is supported,
Attach an OpenGL rendering context to a @gldrawable.
TRUE if it is successful, FALSE otherwise.
a #GdkGLContext.
Exchange front and back buffers.
Complete GDK drawing execution prior to subsequent OpenGL calls.
Complete OpenGL execution prior to subsequent GDK drawing calls.
Creates an off-screen rendering area.
attrib_list is currently unused. This must be set to NULL or empty
(first attribute of None). See GLX 1.3 spec.
the new #GdkGLPixmap.
a #GdkGLConfig.
the #GdkPixmap to be used as the rendering area.
this must be set to NULL or empty (first attribute of None).
Returns the #GdkGLPixmap held by the @pixmap.
the #GdkGLPixmap.
a #GdkPixmap.
Returns whether the @pixmap is OpenGL-capable.
TRUE if the @pixmap is OpenGL-capable, FALSE otherwise.
a #GdkPixmap.
Set the OpenGL-capability to the @pixmap.
This function creates a new #GdkGLPixmap held by the @pixmap.
attrib_list is currently unused. This must be set to NULL or empty
(first attribute of None).
NULL otherwise.
the #GdkGLPixmap used by the @pixmap if it is successful,
the #GdkPixmap to be used as the rendering area.
a #GdkGLConfig.
this must be set to NULL or empty (first attribute of None).
Unset the OpenGL-capability of the @pixmap.
This function destroys the #GdkGLPixmap held by the @pixmap.
a #GdkPixmap.
Returns the #GdkPixmap associated with @glpixmap.
Notice that #GdkGLPixmap is not #GdkPixmap, but another
#GdkDrawable which have an associated #GdkPixmap.
the #GdkPixmap associated with @glpixmap.
Creates an on-screen rendering area.
attrib_list is currently unused. This must be set to NULL or empty
(first attribute of None). See GLX 1.3 spec.
the new #GdkGLWindow.
a #GdkGLConfig.
the #GdkWindow to be used as the rendering area.
this must be set to NULL or empty (first attribute of None).
Returns the #GdkGLWindow held by the @window.
the #GdkGLWindow.
a #GdkWindow.
Returns whether the @window is OpenGL-capable.
TRUE if the @window is OpenGL-capable, FALSE otherwise.
a #GdkWindow.
Set the OpenGL-capability to the @window.
This function creates a new #GdkGLWindow held by the @window.
attrib_list is currently unused. This must be set to NULL or empty
(first attribute of None).
NULL otherwise.
the #GdkGLWindow used by the @window if it is successful,
the #GdkWindow to be used as the rendering area.
a #GdkGLConfig.
this must be set to NULL or empty (first attribute of None).
Unset the OpenGL-capability of the @window.
This function destroys the #GdkGLWindow held by the @window.
a #GdkWindow.
Returns the #GdkWindow associated with @glwindow.
Notice that #GdkGLWindow is not #GdkWindow, but another
#GdkDrawable which have an associated #GdkWindow.
the #GdkWindow associated with @glwindow.
Returns the current #GdkGLDrawable.
the current #GdkGLDrawable or NULL if there is no current drawable.
Returns the GtkGLExt library binary age.
The binary age of the GtkGLExt library.
Returns the GtkGLExt library interface age.
The interface age of the GtkGLExt library.
Returns the GtkGLExt library major version number.
The major version number of the GtkGLExt library.
Returns the GtkGLExt library micro version number.
The micro version number of the GtkGLExt library.
Returns the GtkGLExt library minor version number.
The minor version number of the GtkGLExt library.
Returns the address of the OpenGL, GLU, or GLX function.
the address of the function named by @proc_name.
function name.
Call this function before using any other GdkGLExt functions in your
applications. It will initialize everything needed to operate the
library and parses some standard command line options. @argc and
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
gdk_gl_init_check() instead.</para></note>
Address of the <parameter>argc</parameter> parameter of your main() function. Changed if any arguments were handled.
Address of the <parameter>argv</parameter> parameter of main(). Any parameters understood by gdk_gl_init() are stripped before return.
This function does the same work as gdk_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 gdk_gl_init() are stripped before return.
Indicates whether the window system supports the OpenGL extension
(GLX, WGL, etc.).
TRUE if OpenGL is supported, FALSE otherwise.
Indicates whether the window system supports the OpenGL extension
(GLX, WGL, etc.).
TRUE if OpenGL is supported, FALSE otherwise.
the #GdkDisplay where the query is sent to.
Determines whether a given OpenGL extension is supported.
There must be a valid current rendering context to call
gdk_gl_query_gl_extension().
gdk_gl_query_gl_extension() returns information about OpenGL extensions
only. This means that window system dependent extensions (for example,
GLX extensions) are not reported by gdk_gl_query_gl_extension().
supported.
TRUE if the OpenGL extension is supported, FALSE if not
name of OpenGL extension.
Returns the version numbers of the OpenGL extension to the window system.
In the X Window System, it returns the GLX version.
In the Microsoft Windows, it returns the Windows version.
FALSE if it fails, TRUE otherwise.
returns the major version number of the OpenGL extension.
returns the minor version number of the OpenGL extension.
Returns the version numbers of the OpenGL extension to the window system.
In the X Window System, it returns the GLX version.
In the Microsoft Windows, it returns the Windows version.
FALSE if it fails, TRUE otherwise.
the #GdkDisplay where the query is sent to.
returns the major version number of the OpenGL extension.
returns the minor version number of the OpenGL extension.