Ross McFarland > Gtk2-GLExt-0.90 > xs/GdkGLConfig.xs

Download:
Gtk2-Perl/Gtk2-GLExt-0.90.tar.gz

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

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.

  $config = Gtk2::Gdk::GLExt::Config->new (
    'use_gl', 'blue-size' => 8, 'rgba'
  );

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'
  );