1 @c This is part of the Figl Reference Manual.
2 @c Copyright (C) 2013 Andy Wingo and others
3 @c See the file figl.texi for copying conditions.
8 Import the GLUT module to have access to these procedures:
11 (use-modules (figl glut))
14 The GLUT specification is available at
15 @uref{http://www.opengl.org/resources/libraries/glut/glut-3.spec.pdf}.
18 * GLUT Initialization::
19 * Beginning Event Processing::
21 * Overlay Management::
23 * Callback Registration::
24 * Color Index Colormap Management::
27 * Geometric Object Rendering::
31 @node GLUT Initialization
32 @section GLUT Initialization
34 @anchor{set-initial-display-mode}
35 @defun set-initial-display-mode mode
38 @anchor{set-initial-window-position}
39 @defun set-initial-window-position x y
42 @anchor{set-initial-window-size}
43 @defun set-initial-window-size width height
46 @anchor{initialize-glut}
47 @defun initialize-glut [args] [#:window-position] [#:window-size] [#:display-mode]
51 @node Beginning Event Processing
52 @section Beginning Event Processing
54 @anchor{glut-main-loop}
59 @node Window Management
60 @section Window Management
74 @anchor{set-window-cursor!}
75 @defun set-window-cursor! window cursor
78 @anchor{set-window-icon-title!}
79 @defun set-window-icon-title! window str
82 @anchor{set-window-title!}
83 @defun set-window-title! window str
87 @defun show-window [window]
91 @defun sub-window? window
95 @defun swap-buffers [window]
98 @anchor{top-level-window?}
99 @defun top-level-window? window
103 @defmac with-window window body1 body2 ...
106 @anchor{with-window*}
107 @defun with-window* _ _
110 @anchor{make-sub-window}
111 @defun make-sub-window window x y width height
115 @defun make-window str
122 @anchor{position-window}
123 @defun position-window window x y
126 @anchor{post-redisplay}
127 @defun post-redisplay [window]
134 @anchor{reshape-window}
135 @defun reshape-window window width height
138 @anchor{current-window}
139 @defun current-window
142 @anchor{destroy-window}
143 @defun destroy-window window
147 @defun full-screen window full-screen?
151 @defun hide-window [window]
154 @anchor{iconify-window}
155 @defun iconify-window [window]
159 @node Overlay Management
160 @section Overlay Management
163 @node Menu Management
164 @section Menu Management
167 @node Callback Registration
168 @section Callback Registration
170 @anchor{set-button-box-callback}
171 @defun set-button-box-callback func
174 @anchor{set-current-window}
175 @defun set-current-window window
178 @anchor{set-dials-callback}
179 @defun set-dials-callback func
182 @anchor{set-display-callback}
183 @defun set-display-callback func
186 @anchor{set-entry-callback}
187 @defun set-entry-callback func
190 @anchor{set-idle-callback}
191 @defun set-idle-callback func
194 @anchor{set-keyboard-callback}
195 @defun set-keyboard-callback func
198 @anchor{set-menu-status-callback}
199 @defun set-menu-status-callback func
202 @anchor{set-motion-callback}
203 @defun set-motion-callback func
206 @anchor{set-mouse-callback}
207 @defun set-mouse-callback func
210 @anchor{set-overlay-display-callback}
211 @defun set-overlay-display-callback func
214 @anchor{set-passive-motion-callback}
215 @defun set-passive-motion-callback func
218 @anchor{set-reshape-callback}
219 @defun set-reshape-callback func
222 @anchor{set-spaceball-button-callback}
223 @defun set-spaceball-button-callback func
226 @anchor{set-spaceball-motion-callback}
227 @defun set-spaceball-motion-callback func
230 @anchor{set-spaceball-rotate-callback}
231 @defun set-spaceball-rotate-callback func
234 @anchor{set-special-callback}
235 @defun set-special-callback func
238 @anchor{set-tablet-button-callback}
239 @defun set-tablet-button-callback func
242 @anchor{set-tablet-motion-callback}
243 @defun set-tablet-motion-callback func
246 @anchor{set-visibility-callback}
247 @defun set-visibility-callback func
250 @anchor{add-timer-callback}
251 @defun add-timer-callback msecs func value
255 @node Color Index Colormap Management
256 @section Color Index Colormap Management
259 @node State Retrieval
260 @section State Retrieval
262 @anchor{window-alpha-size}
263 @defun window-alpha-size window
266 @anchor{window-blue-size}
267 @defun window-blue-size window
270 @anchor{window-color-buffer-size}
271 @defun window-color-buffer-size window
274 @anchor{window-colormap-size}
275 @defun window-colormap-size window
278 @anchor{window-depth-buffer-size}
279 @defun window-depth-buffer-size window
282 @anchor{window-double-buffered?}
283 @defun window-double-buffered? window
286 @anchor{window-green-size}
287 @defun window-green-size window
290 @anchor{window-height}
291 @defun window-height width
294 @anchor{window-number-of-children}
295 @defun window-number-of-children window
298 @anchor{window-number-of-samples}
299 @defun window-number-of-samples window
302 @anchor{window-parent}
303 @defun window-parent window
306 @anchor{window-position}
307 @defun window-position window
310 @anchor{window-red-size}
311 @defun window-red-size window
315 @defun window-size window
318 @anchor{window-stencil-buffer-size}
319 @defun window-stencil-buffer-size window
322 @anchor{window-stereo?}
323 @defun window-stereo? window
326 @anchor{window-rgba?}
327 @defun window-rgba window
330 @anchor{window-width}
331 @defun window-width width
335 @defun window-x width
339 @defun window-y width
342 @anchor{screen-height}
346 @anchor{screen-height-mm}
347 @defun screen-height-mm
354 @anchor{screen-size-mm}
355 @defun screen-size-mm
358 @anchor{screen-width}
362 @anchor{screen-width-mm}
363 @defun screen-width-mm
366 @anchor{display-mode-possible?}
367 @defun display-mode-possible?
370 @anchor{initial-display-mode}
371 @defun initial-display-mode
374 @anchor{initial-window-height}
375 @defun initial-window-height
378 @anchor{initial-window-position}
379 @defun initial-window-position
382 @anchor{initial-window-size}
383 @defun initial-window-size
386 @anchor{initial-window-width}
387 @defun initial-window-width
390 @anchor{initial-window-x}
391 @defun initial-window-x
394 @anchor{initial-window-y}
395 @defun initial-window-y
398 @anchor{elapsed-time}
404 @section Font Rendering
407 @node Geometric Object Rendering
408 @section Geometric Object Rendering