2 ;;; Copyright (C) 2013 Daniel Hartwig <mandyke@gmail.com>
4 ;;; Figl is free software: you can redistribute it and/or modify it
5 ;;; under the terms of the GNU Lesser General Public License as
6 ;;; published by the Free Software Foundation, either version 3 of the
7 ;;; License, or (at your option) any later version.
9 ;;; Figl is distributed in the hope that it will be useful, but WITHOUT
10 ;;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 ;;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
12 ;;; Public License for more details.
14 ;;; You should have received a copy of the GNU Lesser General Public
15 ;;; License along with this program. If not, see
16 ;;; <http://www.gnu.org/licenses/>.
20 ;; Derived from the values listed in the OpenGL Utility Toolkit (GLUT)
21 ;; Programming Inferface, API Version 3.
25 (define-module (figl glut enums)
26 #:use-module (figl runtime)
27 #:export (display-mode
122 ;; extern void *glutStrokeRoman;
123 ;; extern void *glutStrokeMonoRoman;
125 ;; ;; stroke font constants (use these in GLUT program)
126 ;; #define GLUT_STROKE_ROMAN (&glutStrokeRoman)
127 ;; #define GLUT_STROKE_MONO_ROMAN (&glutStrokeMonoRoman)
129 ;; ;; bitmap font opaque addresses (use constants instead in source code)
130 ;; extern void *glutBitmap9By15;
131 ;; extern void *glutBitmap8By13;
132 ;; extern void *glutBitmapTimesRoman10;
133 ;; extern void *glutBitmapTimesRoman24;
134 ;; extern void *glutBitmapHelvetica10;
135 ;; extern void *glutBitmapHelvetica12;
136 ;; extern void *glutBitmapHelvetica18;
138 ;; ;; bitmap font constants (use these in GLUT program)
139 ;; #define GLUT_BITMAP_9_BY_15 (&glutBitmap9By15)
140 ;; #define GLUT_BITMAP_8_BY_13 (&glutBitmap8By13)
141 ;; #define GLUT_BITMAP_TIMES_ROMAN_10 (&glutBitmapTimesRoman10)
142 ;; #define GLUT_BITMAP_TIMES_ROMAN_24 (&glutBitmapTimesRoman24)
143 ;; #define GLUT_BITMAP_HELVETICA_10 (&glutBitmapHelvetica10)
144 ;; #define GLUT_BITMAP_HELVETICA_12 (&glutBitmapHelvetica12)
145 ;; #define GLUT_BITMAP_HELVETICA_18 (&glutBitmapHelvetica18)
153 (window-buffer-size 104)
154 (window-stencil-size 105)
155 (window-depth-size 106)
156 (window-red-size 107)
157 (window-green-size 108)
158 (window-blue-size 109)
159 (window-alpha-size 110)
160 (window-accum-red-size 111)
161 (window-accum-green-size 112)
162 (window-accum-blue-size 113)
163 (window-accum-alpha-size 114)
164 (window-doublebuffer 115)
167 (window-num-children 118)
168 (window-colormap-size 119)
169 (window-num-samples 120)
174 (screen-width-mm 202)
175 (screen-height-mm 203)
177 (display-mode-possible 400)
180 (init-window-width 502)
181 (init-window-height 503)
182 (init-display-mode 504)
190 (has-dial-and-button-box 603)
192 (num-mouse-buttons 605)
193 (num-spaceball-buttons 606)
194 (num-button-box-buttons 607)
196 (num-tablet-buttons 609))
200 (overlay-possible 800)
203 (transparent-index 803)
205 (overlay-damaged 805))
216 (cursor-right-arrow 0)
217 (cursor-left-arrow 1)
218 ;; Symbolic cursor shapees
227 ;; Directional cursors
229 (cursor-left-right 11)
232 (cursor-bottom-side 13)
233 (cursor-left-side 14)
234 (cursor-right-side 15)
235 (cursor-top-left-corner 16)
236 (cursor-top-right-corner 17)
237 (cursor-bottom-right-corner 18)
238 (cursor-bottom-left-corner 19)
239 ;; Inherit from parent window
243 ;; Fullscreen crosshair (if available)
244 (cursor-full-crosshair 102))