1OpenGL::GLUT(3) User Contributed Perl Documentation OpenGL::GLUT(3)
2
3
4
6 OpenGL::GLUT - Perl bindings to GLUT/FreeGLUT GUI toolkit
7
9 use OpenGL::GLUT qw(:all); # now can use GLUT calls
10
12 OpenGL::GLUT is the alpha release of a stand-alone module for
13 GLUT/FreeGLUT bindings extracted from code in the original Perl OpenGL
14 module. The purpose is to make this functionality available
15 independent of the legacy OpenGL module for use with OpenGL::Modern.
16
17 When you register a "glutCloseFunc", ensure that you de-register it
18 before destroying the window. See the supplied test.pl.
19
20 EXPORT
21 :all - exports all GLUT functions and constants
22 :constants - export only GLUT constants (same as :glutconstants)
23 :functions - export only GLUT functions (same as :glutfunctions)
24
25 Exportable functions
26 void glutAddMenuEntry( const char* label, int value )
27 void glutAddSubMenu( const char* label, int subMenu )
28 void glutAttachMenu( int button )
29 void glutBitmapCharacter( void* font, int character )
30 int glutBitmapLength( void* font, const unsigned char* string )
31 int glutBitmapWidth( void* font, int character )
32 void glutButtonBoxFunc( void (* callback)( int, int ) )
33 void glutChangeToMenuEntry( int item, const char* label, int value )
34 void glutChangeToSubMenu( int item, const char* label, int value )
35 void glutCloseFunc( void (* callback)( void ) )
36 void glutCopyColormap( int window )
37 int glutCreateMenu( void (* callback)( int menu ) )
38 int glutCreateSubWindow( int window, int x, int y, int width, int height )
39 int glutCreateWindow( const char* title )
40 void glutDestroyMenu( int menu )
41 void glutDestroyWindow( int window )
42 void glutDetachMenu( int button )
43 int glutDeviceGet( GLenum query )
44 void glutDialsFunc( void (* callback)( int, int ) )
45 void glutDisplayFunc( void (* callback)( void ) )
46 int glutEnterGameMode( void )
47 void glutEntryFunc( void (* callback)( int ) )
48 void glutEstablishOverlay( void )
49 int glutExtensionSupported( const char* extension )
50 void glutForceJoystickFunc( void )
51 void glutFullScreen( void )
52 int glutGameModeGet( GLenum query )
53 void glutGameModeString( const char* string )
54 int glutGet( GLenum query )
55 GLfloat glutGetColor( int color, int component )
56 int glutGetMenu( void )
57 int glutGetModifiers( void )
58 int glutGetWindow( void )
59 void glutHideOverlay( void )
60 void glutHideWindow( void )
61 void glutIconifyWindow( void )
62 void glutIdleFunc( void (* callback)( void ) )
63 void glutIgnoreKeyRepeat( int ignore )
64 void glutInit( int* pargc, char** argv )
65 void glutInitDisplayMode( unsigned int displayMode )
66 void glutInitDisplayString( const char* displayMode )
67 void glutInitWindowPosition( int x, int y )
68 void glutInitWindowSize( int width, int height )
69 void glutKeyboardFunc( void (* callback)( unsigned char, int, int ) )
70 void glutKeyboardUpFunc( void (* callback)( unsigned char, int, int ) )
71 int glutLayerGet( GLenum query )
72 void glutLeaveGameMode( void )
73 void glutMainLoop( void )
74 void glutMenuStateFunc( void (* callback)( int ) )
75 void glutMenuStatusFunc( void (* callback)( int, int, int ) )
76 void glutMotionFunc( void (* callback)( int, int ) )
77 void glutMouseFunc( void (* callback)( int, int, int, int ) )
78 void glutOverlayDisplayFunc( void (* callback)( void ) )
79 void glutPassiveMotionFunc( void (* callback)( int, int ) )
80 void glutPopWindow( void )
81 void glutPositionWindow( int x, int y )
82 void glutPostOverlayRedisplay( void )
83 void glutPostRedisplay( void )
84 void glutPostWindowOverlayRedisplay( int window )
85 void glutPostWindowRedisplay( int window )
86 void glutPushWindow( void )
87 void glutRemoveMenuItem( int item )
88 void glutRemoveOverlay( void )
89 void glutReportErrors( void )
90 void glutReshapeFunc( void (* callback)( int, int ) )
91 void glutReshapeWindow( int width, int height )
92 void glutSetColor( int color, GLfloat red, GLfloat green, GLfloat blue )
93 void glutSetCursor( int cursor )
94 void glutSetIconTitle( const char* title )
95 void glutSetKeyRepeat( int repeatMode )
96 void glutSetMenu( int menu )
97 void glutSetWindow( int window )
98 void glutSetWindowTitle( const char* title )
99 void glutSetupVideoResizing( void )
100 void glutShowOverlay( void )
101 void glutShowWindow( void )
102 void glutSolidCone( GLdouble base, GLdouble height, GLint slices, GLint stacks )
103 void glutSolidCube( GLdouble size )
104 void glutSolidDodecahedron( void )
105 void glutSolidIcosahedron( void )
106 void glutSolidOctahedron( void )
107 void glutSolidSphere( GLdouble radius, GLint slices, GLint stacks )
108 void glutSolidTeapot( GLdouble size )
109 void glutSolidTetrahedron( void )
110 void glutSolidTorus( GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings )
111 void glutSpaceballButtonFunc( void (* callback)( int, int ) )
112 void glutSpaceballMotionFunc( void (* callback)( int, int, int ) )
113 void glutSpaceballRotateFunc( void (* callback)( int, int, int ) )
114 void glutSpecialFunc( void (* callback)( int, int, int ) )
115 void glutSpecialUpFunc( void (* callback)( int, int, int ) )
116 void glutStopVideoResizing( void )
117 void glutStrokeCharacter( void* font, int character )
118 int glutStrokeLength( void* font, const unsigned char* string )
119 int glutStrokeWidth( void* font, int character )
120 void glutSwapBuffers( void )
121 void glutTabletButtonFunc( void (* callback)( int, int, int, int ) )
122 void glutTabletMotionFunc( void (* callback)( int, int ) )
123 void glutTimerFunc( unsigned int time, void (* callback)( int ), int value )
124 void glutUseLayer( GLenum layer )
125 void glutVideoPan( int x, int y, int width, int height )
126 void glutVideoResize( int x, int y, int width, int height )
127 int glutVideoResizeGet( GLenum query )
128 void glutVisibilityFunc( void (* callback)( int ) )
129 void glutWarpPointer( int x, int y )
130 void glutWindowStatusFunc( void (* callback)( int ) )
131 void glutWireCone( GLdouble base, GLdouble height, GLint slices, GLint stacks )
132 void glutWireCube( GLdouble size )
133 void glutWireDodecahedron( void )
134 void glutWireIcosahedron( void )
135 void glutWireOctahedron( void )
136 void glutWireSphere( GLdouble radius, GLint slices, GLint stacks )
137 void glutWireTeapot( GLdouble size )
138 void glutWireTetrahedron( void )
139 void glutWireTorus( GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings )
140
142 OpenGL (for now)
143
145 Chris Marshall <chm AT cpan DOT org<gt>
146
148 Copyright (C) 2017 by Chris Marshall Derived from OpenGL 0.70 code.
149
150 This library is free software; you can redistribute it and/or modify it
151 under the same terms as Perl itself.
152
153
154
155perl v5.38.0 2023-07-21 OpenGL::GLUT(3)