1OpenGL(3)             User Contributed Perl Documentation            OpenGL(3)
2
3
4

NAME

6       PDL::Graphics::OpenGL::Perl::OpenGL - PDL TriD OpenGL interface using
7       POGL
8

VERSION

10       Version 0.01_10
11

SYNOPSIS

13       This module provides the glue between the Perl OpenGL functions and the
14       API defined by the internal PDL::Graphics::OpenGL one. It also supports
15       any miscellaneous OpenGL or GUI related functionality to support
16       PDL::Graphics::TriD refactoring.
17
18       You should eventually be able to replace:
19
20           use PDL::Graphics::OpenGL
21       by
22           use PDL::Graphics::OpenGL::Perl::OpenGL;
23
24       This module also includes support for FreeGLUT and GLUT instead of
25       X11+GLX as mechanism for creating windows and graphics contexts.
26

EXPORT

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

FUNCTIONS

32   TBD
33   TBD
34   new
35       Returns a new OpenGL object.
36
37         new($class,$options,[$window_type])
38
39         Attributes are specified in the $options field; the 3d $window_type is optionsl. The attributes are:
40
41       x,y - the position of the upper left corner of the window (0,0)
42       width,height - the width and height of the window in pixels (500,500)
43       parent - the parent under which the new window should be opened (root)
44       mask - the user interface mask (StructureNotifyMask)
45       attributes - attributes to pass to glXChooseVisual
46
47       Allowed 3d window types, case insensitive, are:
48
49       glut - use Perl OpenGL bindings and GLUT windows (no Tk)
50       x11  - use Perl OpenGL (POGL) bindings with X11 (disabled)
51
52   default GLUT callbacks
53       These routines are set as the default GLUT callbacks for when GLUT
54       windows are used for PDL/POGL.  Their only function at the moment is to
55       drive a fake XEvent queue to feed the existing TriD GUI controls.  At
56       some point, the X11 stuff will be deprecated and we can rewrite this
57       more cleanly.
58
59   default_options
60       default options for object oriented methods
61
62   XPending()
63       OO interface to XPending
64
65   XResizeWindow
66       OO interface to XResizeWindow
67
68         XResizeWindow(x,y)
69
70   glpXNextEvent()
71       OO interface to glpXNextEvent
72
73   glpRasterFont()
74       OO interface to the glpRasterFont function
75
76   swap_buffers
77       OO interface to swapping display buffers
78
79   set_window
80       OO interface to setting the display window (if appropriate)
81
82   AUTOLOAD
83       If the function is not prototyped in OO we assume there is no explicit
84       mention of the three identifying parameters (Display, Window, Context)
85       and try to load the OpenGL function.
86
87   glXSwapBuffers
88       OO interface to the glXSwapBuffers function
89

AUTHOR

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

BUGS

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

SUPPORT

98       PDL uses a mailing list support model.  The Perldl mailing list is the
99       best for questions, problems, and feature discussions with other PDL
100       users and PDL developers.
101
102       To subscribe see the page at <http://pdl.perl.org/?page=mailing-lists>
103

ACKNOWLEDGEMENTS

105       TBD including PDL TriD developers and POGL developers...thanks to all.
106
108       Copyright 2009 Chris Marshall.
109
110       This program is free software; you can redistribute it and/or modify it
111       under the terms of either: the GNU General Public License as published
112       by the Free Software Foundation; or the Artistic License.
113
114       See http://dev.perl.org/licenses/ for more information.
115
116
117
118perl v5.36.0                      2023-01-20                         OpenGL(3)
Impressum