| Top |
| gboolean | gtk_widget_set_gl_capability () |
| gboolean | gtk_widget_is_gl_capable () |
| GdkGLConfig * | gtk_widget_get_gl_config () |
| GdkGLContext * | gtk_widget_create_gl_context () |
| GdkGLContext * | gtk_widget_get_gl_context () |
| GdkGLWindow * | gtk_widget_get_gl_window () |
| #define | gtk_widget_get_gl_drawable() |
gboolean gtk_widget_set_gl_capability (GtkWidget *widget,GdkGLConfig *glconfig,GdkGLContext *share_list,gboolean direct,int render_type);
Set the OpenGL-capability to the widget
.
This function prepares the widget for its use with OpenGL.
widget |
the GtkWidget to be used as the rendering area. |
|
glconfig |
a GdkGLConfig. |
|
share_list |
the GdkGLContext with which to share display lists and texture objects. NULL indicates that no sharing is to take place. |
|
direct |
whether rendering is to be done with a direct connection to the graphics system. |
|
render_type |
GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE (currently not used). |
gboolean
gtk_widget_is_gl_capable (GtkWidget *widget);
Returns whether the widget
is OpenGL-capable.
GdkGLConfig *
gtk_widget_get_gl_config (GtkWidget *widget);
Returns the GdkGLConfig referred by the widget
.
GdkGLContext * gtk_widget_create_gl_context (GtkWidget *widget,GdkGLContext *share_list,gboolean direct,int render_type);
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().
widget |
a GtkWidget. |
|
share_list |
the GdkGLContext with which to share display lists and texture objects. NULL indicates that no sharing is to take place. |
|
direct |
whether rendering is to be done with a direct connection to the graphics system. |
|
render_type |
GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE (currently not used). |
GdkGLContext *
gtk_widget_get_gl_context (GtkWidget *widget);
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()).
GdkGLWindow *
gtk_widget_get_gl_window (GtkWidget *widget);
Returns the GdkGLWindow owned by the widget
.