X11::GLX::FBConfig - Framebuffer configuration
This is a view of the opaque GLXFBConfig struct used by OpenGL to describe a framebuffer format. This is similar to an X11 Visual, but has more attributes specific to OpenGL.
Returns reference to the X11::Xlib instance this object was created from. (this object wraps a pointer whose scope seems to be the life of the X11 connection) Note that this FBConfig holds a strong reference to the connection, so the connection won't go out of scope as long as you hold onto this object.
Returns an XVisualInfo for the FBConfig.
Returns the X11 ID for this FBConfig.
The following attributes have perl-ified names of the C API constants described in the Khronos documentation.
use X11::GLX ':constants';
my $val= $fbconfig->get_attr($GLX_CONSTANT);
Retrieve a GLX constant. Dies if $GLX_CONSTANT is not a valid attriute (according to GLX return value). Also dies if this FBConfig doesn't have an associated display or if the display has been closed.
Michael Conrad <firstname.lastname@example.org>
This software is copyright (c) 2021 by Michael Conrad.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install X11::GLX, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.