logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PDL::Graphics::OpenGL::Perl::OpenGL - PDL TriD OpenGL interface using POGL

Acknowledgements

       TBD including PDL TriD developers and POGL developers...thanks to all.

Author

       Chris Marshall, "<devel dot chm dot 01 at gmail.com>"

Bugs

       Bugs  and  feature   requests   may   be   submitted   through   the   PDL   GitHub   project   page   at
       <https://github.com/PDLPorters/pdl/issues> .

Config

       Defaults to using OpenGL::GLUT - override by setting the environment variable "POGL_WINDOW_TYPE" to "x11"
       (the default is "glut").

Export

       See the documentation for the OpenGL module.  More details to follow as the refactored TriD module
       interface and build environment matures

Functions

       *glpOpenWindow = \&OpenGL::glpOpenWindow;

       *glpcOpenWindow = \&OpenGL::glpcOpenWindow;

   TBDnew
       Returns a new OpenGL object.

         new($class,$options,[$window_type])

         Attributes are specified in the $options field; the 3d $window_type is optionsl. The attributes are:

       x,y - the position of the upper left corner of the window (0,0)
       width,height - the width and height of the window in pixels (500,500)
       parent - the parent under which the new window should be opened (root)
       mask - the user interface mask (StructureNotifyMask)
       attributes - attributes to pass to glXChooseVisual

       Allowed 3d window types, case insensitive, are:

       glut - use Perl OpenGL bindings and GLUT windows (no Tk)
       x11  - use Perl OpenGL (POGL) bindings with X11 (disabled)

   defaultGLUTcallbacks
       These  routines are set as the default GLUT callbacks for when GLUT windows are used for PDL/POGL.  Their
       only function at the moment is to drive a fake XEvent queue to feed the existing TriD GUI  controls.   At
       some point, the X11 stuff will be deprecated and we can rewrite this more cleanly.

   default_options
       default options for object oriented methods

   XPending()
       OO interface to XPending

   XResizeWindow
       OO interface to XResizeWindow

         XResizeWindow(x,y)

   glpXNextEvent()
       OO interface to glpXNextEvent

   glpRasterFont()
       OO interface to the glpRasterFont function

   swap_buffers
       OO interface to swapping display buffers

   set_window
       OO interface to setting the display window (if appropriate)

   AUTOLOAD
       If  the  function is not prototyped in OO we assume there is no explicit mention of the three identifying
       parameters (Display, Window, Context) and try to load the OpenGL function.

   glXSwapBuffers
       OO interface to the glXSwapBuffers function

Name

       PDL::Graphics::OpenGL::Perl::OpenGL - PDL TriD OpenGL interface using POGL

Support

       PDL  uses a mailing list support model.  The Perldl mailing list is the best for questions, problems, and
       feature discussions with other PDL users and PDL developers.

       To subscribe see the page at <http://pdl.perl.org/?page=mailing-lists>

Synopsis

       This module provides the glue between the Perl OpenGL functions and the API defined by the internal
       PDL::Graphics::OpenGL one. It also supports any miscellaneous OpenGL or GUI related functionality to
       support PDL::Graphics::TriD refactoring.

       You should eventually be able to replace:

           use PDL::Graphics::OpenGL
       by
           use PDL::Graphics::OpenGL::Perl::OpenGL;

       This module also includes support for FreeGLUT and GLUT instead of X11+GLX as mechanism for creating
       windows and graphics contexts.

Version

       Version 0.01_10

See Also