The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

X11::GLX::Context - Opaque wrapper for GLXContext pointer

VERSION

version 0.03

DESCRIPTION

GLXContext is an opaque object used by the GLX API to reference the collection of state used for OpenGL rendering, usually by one thread onto one X11 window.

The only method you can call on this object is "xid", since that is the only GLX function that doesn't also require a handle to the display.

See X11::GLX::DWIM for a convenient object-oriented interface to GLX that performs the things you probably want it to do.

ATTRIBUTES

display

X11 connection this Context was created from.

autofree

Whether to automatically call glXDestroyContext when this object goes out of scope.

imported

Read-only. Always False in base class. Overridden in subclass ::Imported to be True.

id

The X11 ID of the GLX context. This is not available unless you have the GLX_EXT_import_context extension.

AUTHOR

Michael Conrad <mike@nrdvana.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 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.