Top | ![]() |
![]() |
![]() |
![]() |
GdkGLConfig *
gdk_gl_config_new (const int *attrib_list
);
Returns an OpenGL frame buffer configuration that match the specified attributes.
attrib_list is a int array that contains the attribute/value pairs. Available attributes are: 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.
GdkGLConfig * gdk_gl_config_new_for_screen (GdkScreen *screen
,const int *attrib_list
);
Returns an OpenGL frame buffer configuration that match the specified attributes.
GdkGLConfig *
gdk_gl_config_new_by_mode (GdkGLConfigMode mode
);
Returns an OpenGL frame buffer configuration that match the specified display mode.
GdkGLConfig * gdk_gl_config_new_by_mode_for_screen (GdkScreen *screen
,GdkGLConfigMode mode
);
Returns an OpenGL frame buffer configuration that match the specified display mode.
GdkScreen *
gdk_gl_config_get_screen (GdkGLConfig *glconfig
);
Gets GdkScreen.
gboolean gdk_gl_config_get_attrib (GdkGLConfig *glconfig
,int attribute
,int *value
);
Gets information about a OpenGL frame buffer configuration.
glconfig |
a GdkGLConfig. |
|
attribute |
the attribute to be returned. |
|
value |
returns the requested value. |
GdkColormap *
gdk_gl_config_get_colormap (GdkGLConfig *glconfig
);
Gets the GdkColormap that is appropriate for the OpenGL frame buffer configuration.
GdkVisual *
gdk_gl_config_get_visual (GdkGLConfig *glconfig
);
Gets the GdkVisual that is appropriate for the OpenGL frame buffer configuration.
gint
gdk_gl_config_get_depth (GdkGLConfig *glconfig
);
Gets the color depth of the OpenGL-capable visual.
gint
gdk_gl_config_get_layer_plane (GdkGLConfig *glconfig
);
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.
gint
gdk_gl_config_get_n_aux_buffers (GdkGLConfig *glconfig
);
Gets the number of auxiliary color buffers.
gint
gdk_gl_config_get_n_sample_buffers (GdkGLConfig *glconfig
);
Gets the number of multisample buffers.
gboolean
gdk_gl_config_is_rgba (GdkGLConfig *glconfig
);
Returns whether the configured frame buffer is RGBA mode.
gboolean
gdk_gl_config_is_double_buffered (GdkGLConfig *glconfig
);
Returns whether the configuration supports the double-buffered visual.
gboolean
gdk_gl_config_is_stereo (GdkGLConfig *glconfig
);
Returns whether the configuration supports the stereo visual.
gboolean
gdk_gl_config_has_alpha (GdkGLConfig *glconfig
);
Returns whether the configured color buffer has alpha bits.
gboolean
gdk_gl_config_has_depth_buffer (GdkGLConfig *glconfig
);
Returns whether the configured frame buffer has depth buffer.
gboolean
gdk_gl_config_has_stencil_buffer (GdkGLConfig *glconfig
);
Returns whether the configured frame buffer has stencil buffer.
gboolean
gdk_gl_config_has_accum_buffer (GdkGLConfig *glconfig
);
Returns whether the configured frame buffer has accumulation buffer.