OpenGL::Modern(3pm)

OpenGL::Modern3pm

Perl extension to modern opengl api up to 4.5

Usage

  use OpenGL::Modern qw(:all);
  use OpenGL qw(:glutfunctions :glutconstants);  # for GLUT

Overview

"OpenGL::Modern" provides perl bindings to the OpenGL graphics APIs using the OpenGL Extension Wrangler (GLEW) library. These bindings were largely generated by parsing the GLEW include file, "glew.h".

This module updates the original Perl OpenGL bindings OpenGL (often abbreviated as POGL) to include support for all OpenGL API from 1.0 through 4.5. The "modern" OpenGL APIs are those starting with version 3.1 and higher.

OpenGL 3.1 was the first version where the legacy OpenGL functionality from versions 1.x-3.0 was fully deprecated. Much of the functionality that used to be accessed via the extension mechanism in "OpenGL" now is standardized and in the OpenGL Core APIs.

OpenGL::Image

The module OpenGL::Image was written for the original OpenGL.pm, however it can be made to work seamlessly with OpenGL::Modern. Where-as you previously loaded it like this:

    use OpenGL::Image;             # loads OpenGL.pm on its own

You can prepend two use lines, and get this:

    use OpenGL::Array;             # not part of OpenGL::Modern
    use OpenGL::Modern::ImageHack; # sets up a fake OpenGL namespace
    use OpenGL::Image;             # now safe to do, won't load OpenGL.pm

Export

None by default.

Author

Chris Marshall, < devel dot chm dot 01 AT gmail dot com >

From libopengl-modern-perl 0.04-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.