1OpenGL(3) User Contributed Perl Documentation OpenGL(3)
2
3
4
6 PDL::Graphics::OpenGL::Perl::OpenGL - PDL TriD OpenGL interface using
7 POGL
8
10 Version 0.01_10
11
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
28 See the documentation for the OpenGL module. More details to follow as
29 the refactored TriD module interface and build environment matures
30
32 TBD
33 TBD
34 new($class,$options,[$window_type])
35 Returns a new OpenGL object with attributes specified in the options
36 field, and of the 3d window type, if specified. These attributes are:
37
38 x,y - the position of the upper left corner of the window (0,0)
39 width,height - the width and height of the window in pixels (500,500)
40 parent - the parent under which the new window should be opened (root)
41 mask - the user interface mask (StructureNotifyMask)
42 attributes - attributes to pass to glXChooseVisual
43
44 Allowed 3d window types, case insensitive, are:
45
46 pdl-legacy-x11 - use deprecated PDL::PP OpenGL interface
47 x11 - use Perl OpenGL (POGL) bindings and X11 windows
48 (supports PDL::Graphics::TriD::Tk use)
49 glut - use Perl OpenGL bindings and GLUT windows (no Tk)
50
51 default GLUT callbacks
52 These routines are set as the default GLUT callbacks for when GLUT
53 windows are used for PDL/POGL. Their only function at the moment is to
54 drive an fake XEvent queue to feed the existing TriD GUI controls. At
55 some point, the X11 stuff will the deprecated and we can rewrite this
56 more cleanly.
57
58 default_options
59 default options for object oriented methods
60
61 XPending()
62 OO interface to XPending
63
64 XResizeWindow(x,y)
65 OO interface to XResizeWindow
66
67 glpXNextEvent()
68 OO interface to glpXNextEvent
69
70 glpRasterFont()
71 OO interface to the glpRasterFont function
72
73 AUTOLOAD
74 If the function is not prototyped in OO we assume there is no explicit
75 mention of the three identifying parameters (Display, Window, Context)
76 and try to load the OpenGL function.
77
78 glXSwapBuffers
79 OO interface to the glXSwapBuffers function
80
82 Chris Marshall, "<devel dot chm dot 01 at gmail.com>"
83
85 Bugs and feature requests may be submitted through the PDL sourceforge
86 project page at <http://sourceforge.net/tracker/?group_id=612> .
87
89 PDL uses a mailing list support model. The Perldl mailing list is the
90 best for questions, problems, and feature discussions with other PDL
91 users and PDL developers.
92
93 To subscribe see the page at
94 <http://mailman.jach.hawaii.edu/mailman/listinfo/perldl>
95
97 TBD including PDL TriD developers and POGL developers...thanks to all.
98
100 Copyright 2009 Chris Marshall.
101
102 This program is free software; you can redistribute it and/or modify it
103 under the terms of either: the GNU General Public License as published
104 by the Free Software Foundation; or the Artistic License.
105
106 See http://dev.perl.org/licenses/ for more information.
107
108
109
110perl v5.12.3 2009-12-20 OpenGL(3)