Gtk2::Gdk::GLExt::Config.3pm

Langue: en

Version: 2005-10-10 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

NAME

Gtk2::Gdk::GLExt::Config

HIERARCHY

   Glib::Object
   +----Gtk2::Gdk::GLExt::Config
 
 

ATTRIB_LIST

The attribute lists in new() and new_for_screen() are handed directly over to glXChooseVisual() by GtkGLExt. Boolean attributes in the list will be interpreted as TRUE (don't use them at all if you want them to continue being FALSE), while other attributes may take integer values. While the C API documentation for GtkGLExt states that the attribute list should be terminated by GDK_GL_ATTRIB_LIST_NONE, this is not needed (and indeed is an error) when called from perl.

METHODS


config = Gtk2::Gdk::GLExt::Config->new ($attrib1, ...)

* $attrib1 (string) first attribute
* ... (list) more attributes or attribute pairs (see above)

Create a new config with the given attributes, for the default screen. For example:
   $config = Gtk2::Gdk::GLExt::Config->new (
     'use_gl', 'blue-size' => 8, 'rgba'
   );
 
 

config or undef = Gtk2::Gdk::GLExt::Config->new_by_mode ($mode)

* $mode (Gtk2::Gdk::GLExt::ConfigMode)

config or undef = Gtk2::Gdk::GLExt::Config->new_by_mode_for_screen ($screen, $mode)


config or undef = Gtk2::Gdk::GLExt::Config->new_by_mode_for_screen ($screen, $mode)

* $screen (Gtk2::Gdk::Screen)
* $mode (Gtk2::Gdk::GLExt::ConfigMode)

config or undef = Gtk2::Gdk::GLExt::Config->new_for_screen ($screen, $attrib1, ...)


config or undef = Gtk2::Gdk::GLExt::Config->new_for_screen ($screen, $attrib1, ...)

* $screen (Gtk2::Gdk::Screen)
* $attrib1 (string) first attribute
* ... (list) more attributes (see above)

Create a new config for a particular Gtk2::Gdk::Screen. Fro example:
   $config = Gtk2::Gdk::GLExt::Config->new_for_screen (
     $screen, 'use_gl', 'blue-size' => 8, 'rgba'
   );
 
 

integer = $glconfig->get_attrib ($attribute)


integer = $glconfig->get_attrib ($attribute)

* $attribute (Gtk2::Gdk::GLExt::ConfigAttrib)

colormap = $glconfig->get_colormap


colormap = $glconfig->get_colormap


integer = $glconfig->get_depth


integer = $glconfig->get_depth


boolean = $glconfig->has_accum_buffer


boolean = $glconfig->has_accum_buffer


boolean = $glconfig->has_alpha


boolean = $glconfig->has_alpha


boolean = $glconfig->has_depth_buffer


boolean = $glconfig->has_depth_buffer


boolean = $glconfig->has_stencil_buffer


boolean = $glconfig->has_stencil_buffer


boolean = $glconfig->is_double_buffered


boolean = $glconfig->is_double_buffered


boolean = $glconfig->is_rgba


boolean = $glconfig->is_rgba


boolean = $glconfig->is_stereo


boolean = $glconfig->is_stereo


integer = $glconfig->get_layer_plane


integer = $glconfig->get_layer_plane


integer = $glconfig->get_n_aux_buffers


integer = $glconfig->get_n_aux_buffers


integer = $glconfig->get_n_sample_buffers


integer = $glconfig->get_n_sample_buffers


screen = $glconfig->get_screen


screen = $glconfig->get_screen


visual = $glconfig->get_visual


visual = $glconfig->get_visual

ENUMS AND FLAGS


enum Gtk2::Gdk::GLExt::ConfigAttrib

* 'use-gl' / 'GDK_GL_USE_GL'
* 'buffer-size' / 'GDK_GL_BUFFER_SIZE'
* 'level' / 'GDK_GL_LEVEL'
* 'rgba' / 'GDK_GL_RGBA'
* 'doublebuffer' / 'GDK_GL_DOUBLEBUFFER'
* 'stereo' / 'GDK_GL_STEREO'
* 'aux-buffers' / 'GDK_GL_AUX_BUFFERS'
* 'red-size' / 'GDK_GL_RED_SIZE'
* 'green-size' / 'GDK_GL_GREEN_SIZE'
* 'blue-size' / 'GDK_GL_BLUE_SIZE'
* 'alpha-size' / 'GDK_GL_ALPHA_SIZE'
* 'depth-size' / 'GDK_GL_DEPTH_SIZE'
* 'stencil-size' / 'GDK_GL_STENCIL_SIZE'
* 'accum-red-size' / 'GDK_GL_ACCUM_RED_SIZE'
* 'accum-green-size' / 'GDK_GL_ACCUM_GREEN_SIZE'
* 'accum-blue-size' / 'GDK_GL_ACCUM_BLUE_SIZE'
* 'accum-alpha-size' / 'GDK_GL_ACCUM_ALPHA_SIZE'
* 'config-caveat' / 'GDK_GL_CONFIG_CAVEAT'
* 'x-visual-type' / 'GDK_GL_X_VISUAL_TYPE'
* 'transparent-type' / 'GDK_GL_TRANSPARENT_TYPE'
* 'transparent-index-value' / 'GDK_GL_TRANSPARENT_INDEX_VALUE'
* 'transparent-red-value' / 'GDK_GL_TRANSPARENT_RED_VALUE'
* 'transparent-green-value' / 'GDK_GL_TRANSPARENT_GREEN_VALUE'
* 'transparent-blue-value' / 'GDK_GL_TRANSPARENT_BLUE_VALUE'
* 'transparent-alpha-value' / 'GDK_GL_TRANSPARENT_ALPHA_VALUE'
* 'drawable-type' / 'GDK_GL_DRAWABLE_TYPE'
* 'render-type' / 'GDK_GL_RENDER_TYPE'
* 'x-renderable' / 'GDK_GL_X_RENDERABLE'
* 'fbconfig-id' / 'GDK_GL_FBCONFIG_ID'
* 'max-pbuffer-width' / 'GDK_GL_MAX_PBUFFER_WIDTH'
* 'max-pbuffer-height' / 'GDK_GL_MAX_PBUFFER_HEIGHT'
* 'max-pbuffer-pixels' / 'GDK_GL_MAX_PBUFFER_PIXELS'
* 'visual-id' / 'GDK_GL_VISUAL_ID'
* 'screen' / 'GDK_GL_SCREEN'
* 'sample-buffers' / 'GDK_GL_SAMPLE_BUFFERS'
* 'samples' / 'GDK_GL_SAMPLES'

flags Gtk2::Gdk::GLExt::ConfigMode

* 'rgb' / 'GDK_GL_MODE_RGB'
* 'rgba' / 'GDK_GL_MODE_RGBA'
* 'index' / 'GDK_GL_MODE_INDEX'
* 'single' / 'GDK_GL_MODE_SINGLE'
* 'double' / 'GDK_GL_MODE_DOUBLE'
* 'stereo' / 'GDK_GL_MODE_STEREO'
* 'alpha' / 'GDK_GL_MODE_ALPHA'
* 'depth' / 'GDK_GL_MODE_DEPTH'
* 'stencil' / 'GDK_GL_MODE_STENCIL'
* 'accum' / 'GDK_GL_MODE_ACCUM'
* 'multisample' / 'GDK_GL_MODE_MULTISAMPLE'

SEE ALSO

Glib::Object Copyright (C) 2005 Gtk2-Perl Team