| 1 |
;;; Ypsilon Scheme System |
| 2 |
;;; Copyright (c) 2004-2008 Y.FUJITA, LittleWing Company Limited. |
| 3 |
;;; See license.txt for terms and conditions of use. |
| 4 |
|
| 5 |
(library (glut) |
| 6 |
|
| 7 |
(export GLUT_RGB |
| 8 |
GLUT_RGBA |
| 9 |
GLUT_INDEX |
| 10 |
GLUT_SINGLE |
| 11 |
GLUT_DOUBLE |
| 12 |
GLUT_ACCUM |
| 13 |
GLUT_ALPHA |
| 14 |
GLUT_DEPTH |
| 15 |
GLUT_STENCIL |
| 16 |
GLUT_MULTISAMPLE |
| 17 |
GLUT_STEREO |
| 18 |
GLUT_LUMINANCE |
| 19 |
GLUT_NO_RECOVERY |
| 20 |
GLUT_LEFT_BUTTON |
| 21 |
GLUT_MIDDLE_BUTTON |
| 22 |
GLUT_RIGHT_BUTTON |
| 23 |
GLUT_DOWN |
| 24 |
GLUT_UP |
| 25 |
GLUT_KEY_F1 |
| 26 |
GLUT_KEY_F2 |
| 27 |
GLUT_KEY_F3 |
| 28 |
GLUT_KEY_F4 |
| 29 |
GLUT_KEY_F5 |
| 30 |
GLUT_KEY_F6 |
| 31 |
GLUT_KEY_F7 |
| 32 |
GLUT_KEY_F8 |
| 33 |
GLUT_KEY_F9 |
| 34 |
GLUT_KEY_F10 |
| 35 |
GLUT_KEY_F11 |
| 36 |
GLUT_KEY_F12 |
| 37 |
GLUT_KEY_LEFT |
| 38 |
GLUT_KEY_UP |
| 39 |
GLUT_KEY_RIGHT |
| 40 |
GLUT_KEY_DOWN |
| 41 |
GLUT_KEY_PAGE_UP |
| 42 |
GLUT_KEY_PAGE_DOWN |
| 43 |
GLUT_KEY_HOME |
| 44 |
GLUT_KEY_END |
| 45 |
GLUT_KEY_INSERT |
| 46 |
GLUT_LEFT |
| 47 |
GLUT_ENTERED |
| 48 |
GLUT_MENU_NOT_IN_USE |
| 49 |
GLUT_MENU_IN_USE |
| 50 |
GLUT_NOT_VISIBLE |
| 51 |
GLUT_VISIBLE |
| 52 |
GLUT_HIDDEN |
| 53 |
GLUT_FULLY_RETAINED |
| 54 |
GLUT_PARTIALLY_RETAINED |
| 55 |
GLUT_FULLY_COVERED |
| 56 |
GLUT_RED |
| 57 |
GLUT_GREEN |
| 58 |
GLUT_BLUE |
| 59 |
GLUT_NORMAL |
| 60 |
GLUT_OVERLAY |
| 61 |
|
| 62 |
glutInit |
| 63 |
glutInitDisplayString |
| 64 |
glutInitDisplayMode |
| 65 |
glutInitWindowPosition |
| 66 |
glutInitWindowSize |
| 67 |
glutMainLoop |
| 68 |
glutCreateWindow |
| 69 |
glutCreateSubWindow |
| 70 |
glutDestroyWindow |
| 71 |
glutPostRedisplay |
| 72 |
glutPostWindowRedisplay |
| 73 |
glutSwapBuffers |
| 74 |
glutGetWindow |
| 75 |
glutSetWindow |
| 76 |
glutSetWindowTitle |
| 77 |
glutSetIconTitle |
| 78 |
glutPositionWindow |
| 79 |
glutReshapeWindow |
| 80 |
glutPopWindow |
| 81 |
glutPushWindow |
| 82 |
glutIconifyWindow |
| 83 |
glutShowWindow |
| 84 |
glutHideWindow |
| 85 |
glutFullScreen |
| 86 |
glutSetCursor |
| 87 |
glutWarpPointer |
| 88 |
glutEstablishOverlay |
| 89 |
glutRemoveOverlay |
| 90 |
glutUseLayer |
| 91 |
glutPostOverlayRedisplay |
| 92 |
glutPostWindowOverlayRedisplay |
| 93 |
glutShowOverlay |
| 94 |
glutHideOverlay |
| 95 |
glutCreateMenu |
| 96 |
glutDestroyMenu |
| 97 |
glutGetMenu |
| 98 |
glutSetMenu |
| 99 |
glutAddMenuEntry |
| 100 |
glutAddSubMenu |
| 101 |
glutChangeToMenuEntry |
| 102 |
glutChangeToSubMenu |
| 103 |
glutRemoveMenuItem |
| 104 |
glutAttachMenu |
| 105 |
glutDetachMenu |
| 106 |
glutDisplayFunc |
| 107 |
glutReshapeFunc |
| 108 |
glutKeyboardFunc |
| 109 |
glutMouseFunc |
| 110 |
glutMotionFunc |
| 111 |
glutPassiveMotionFunc |
| 112 |
glutEntryFunc |
| 113 |
glutVisibilityFunc |
| 114 |
glutIdleFunc |
| 115 |
glutTimerFunc |
| 116 |
glutMenuStateFunc |
| 117 |
glutSpecialFunc |
| 118 |
glutSpaceballMotionFunc |
| 119 |
glutSpaceballRotateFunc |
| 120 |
glutSpaceballButtonFunc |
| 121 |
glutButtonBoxFunc |
| 122 |
glutDialsFunc |
| 123 |
glutTabletMotionFunc |
| 124 |
glutTabletButtonFunc |
| 125 |
glutMenuStatusFunc |
| 126 |
glutOverlayDisplayFunc |
| 127 |
glutWindowStatusFunc |
| 128 |
glutKeyboardUpFunc |
| 129 |
glutSpecialUpFunc |
| 130 |
glutJoystickFunc |
| 131 |
glutSetColor |
| 132 |
glutGetColor |
| 133 |
glutCopyColormap |
| 134 |
glutGet |
| 135 |
glutDeviceGet |
| 136 |
glutExtensionSupported |
| 137 |
glutGetModifiers |
| 138 |
glutLayerGet |
| 139 |
glutGetProcAddress |
| 140 |
glutBitmapCharacter |
| 141 |
glutBitmapWidth |
| 142 |
glutStrokeCharacter |
| 143 |
glutStrokeWidth |
| 144 |
glutBitmapLength |
| 145 |
glutStrokeLength |
| 146 |
glutWireSphere |
| 147 |
glutSolidSphere |
| 148 |
glutWireCone |
| 149 |
glutSolidCone |
| 150 |
glutWireCube |
| 151 |
glutSolidCube |
| 152 |
glutWireTorus |
| 153 |
glutSolidTorus |
| 154 |
glutWireDodecahedron |
| 155 |
glutSolidDodecahedron |
| 156 |
glutWireTeapot |
| 157 |
glutSolidTeapot |
| 158 |
glutWireOctahedron |
| 159 |
glutSolidOctahedron |
| 160 |
glutWireTetrahedron |
| 161 |
glutSolidTetrahedron |
| 162 |
glutWireIcosahedron |
| 163 |
glutSolidIcosahedron |
| 164 |
glutVideoResizeGet |
| 165 |
glutSetupVideoResizing |
| 166 |
glutStopVideoResizing |
| 167 |
glutVideoResize |
| 168 |
glutVideoPan |
| 169 |
glutReportErrors |
| 170 |
glutIgnoreKeyRepeat |
| 171 |
glutSetKeyRepeat |
| 172 |
glutForceJoystickFunc |
| 173 |
glutGameModeString |
| 174 |
glutEnterGameMode |
| 175 |
glutLeaveGameMode |
| 176 |
glutGameModeGet) |
| 177 |
|
| 178 |
(import (rnrs) (ypsilon-compat)) |
| 179 |
|
| 180 |
(define libGLUT (cond (on-darwin (load-shared-object "GLUT.framework/GLUT")) |
| 181 |
(on-windows (load-shared-object "glut32.dll")) |
| 182 |
(on-linux (load-shared-object "libglut.so.3")) |
| 183 |
(on-freebsd (load-shared-object "libglut.so.4")) |
| 184 |
(else (assertion-violation #f "can not locate GLUT library, unknown operating system")))) |
| 185 |
|
| 186 |
;; Display mode bit masks. |
| 187 |
(define GLUT_RGB 0) |
| 188 |
(define GLUT_RGBA GLUT_RGB) |
| 189 |
(define GLUT_INDEX 1) |
| 190 |
(define GLUT_SINGLE 0) |
| 191 |
(define GLUT_DOUBLE 2) |
| 192 |
(define GLUT_ACCUM 4) |
| 193 |
(define GLUT_ALPHA 8) |
| 194 |
(define GLUT_DEPTH 16) |
| 195 |
(define GLUT_STENCIL 32) |
| 196 |
(define GLUT_MULTISAMPLE 128) |
| 197 |
(define GLUT_STEREO 256) |
| 198 |
(define GLUT_LUMINANCE 512) |
| 199 |
(define GLUT_NO_RECOVERY 1024) |
| 200 |
|
| 201 |
;; Mouse buttons. |
| 202 |
(define GLUT_LEFT_BUTTON 0) |
| 203 |
(define GLUT_MIDDLE_BUTTON 1) |
| 204 |
(define GLUT_RIGHT_BUTTON 2) |
| 205 |
|
| 206 |
;; Mouse button state. |
| 207 |
(define GLUT_DOWN 0) |
| 208 |
(define GLUT_UP 1) |
| 209 |
|
| 210 |
;; function keys |
| 211 |
(define GLUT_KEY_F1 1) |
| 212 |
(define GLUT_KEY_F2 2) |
| 213 |
(define GLUT_KEY_F3 3) |
| 214 |
(define GLUT_KEY_F4 4) |
| 215 |
(define GLUT_KEY_F5 5) |
| 216 |
(define GLUT_KEY_F6 6) |
| 217 |
(define GLUT_KEY_F7 7) |
| 218 |
(define GLUT_KEY_F8 8) |
| 219 |
(define GLUT_KEY_F9 9) |
| 220 |
(define GLUT_KEY_F10 10) |
| 221 |
(define GLUT_KEY_F11 11) |
| 222 |
(define GLUT_KEY_F12 12) |
| 223 |
|
| 224 |
;; directional keys |
| 225 |
(define GLUT_KEY_LEFT 100) |
| 226 |
(define GLUT_KEY_UP 101) |
| 227 |
(define GLUT_KEY_RIGHT 102) |
| 228 |
(define GLUT_KEY_DOWN 103) |
| 229 |
(define GLUT_KEY_PAGE_UP 104) |
| 230 |
(define GLUT_KEY_PAGE_DOWN 105) |
| 231 |
(define GLUT_KEY_HOME 106) |
| 232 |
(define GLUT_KEY_END 107) |
| 233 |
(define GLUT_KEY_INSERT 108) |
| 234 |
|
| 235 |
;; Entry/exit state. |
| 236 |
(define GLUT_LEFT 0) |
| 237 |
(define GLUT_ENTERED 1) |
| 238 |
|
| 239 |
;; Menu usage state. |
| 240 |
(define GLUT_MENU_NOT_IN_USE 0) |
| 241 |
(define GLUT_MENU_IN_USE 1) |
| 242 |
|
| 243 |
;; Visibility state. |
| 244 |
(define GLUT_NOT_VISIBLE 0) |
| 245 |
(define GLUT_VISIBLE 1) |
| 246 |
|
| 247 |
;; Window status state. |
| 248 |
(define GLUT_HIDDEN 0) |
| 249 |
(define GLUT_FULLY_RETAINED 1) |
| 250 |
(define GLUT_PARTIALLY_RETAINED 2) |
| 251 |
(define GLUT_FULLY_COVERED 3) |
| 252 |
|
| 253 |
;; Color index component selection values. |
| 254 |
(define GLUT_RED 0) |
| 255 |
(define GLUT_GREEN 1) |
| 256 |
(define GLUT_BLUE 2) |
| 257 |
|
| 258 |
;; Layers for use. |
| 259 |
(define GLUT_NORMAL 0) |
| 260 |
(define GLUT_OVERLAY 1) |
| 261 |
|
| 262 |
(define-syntax define-function |
| 263 |
(syntax-rules () |
| 264 |
((_ ret name args) |
| 265 |
(define name (c-function libGLUT "GLUT library" ret __stdcall name args))))) |
| 266 |
|
| 267 |
;; void glutInit(int *argcp, char **argv) |
| 268 |
;; (define-function void glutInit ([int] [char*])) |
| 269 |
(define glutInit |
| 270 |
(if on-windows |
| 271 |
(lambda (a1 a2) |
| 272 |
(c-argument 'glutInit 1 [int] a1) |
| 273 |
(c-argument 'glutInit 2 [char*] a2) |
| 274 |
((c-function libGLUT "GLUT library" void __stdcall __glutInitWithExit ([int] [char*] [c-callback void (int)])) |
| 275 |
a1 a2 (lambda (n) (exit n)))) |
| 276 |
(c-function libGLUT "GLUT library" void __stdcall glutInit ([int] [char*])))) |
| 277 |
|
| 278 |
;; void glutInitDisplayString(const char *string) |
| 279 |
(define-function void glutInitDisplayString (char*)) |
| 280 |
|
| 281 |
;; void glutInitDisplayMode(unsigned int mode) |
| 282 |
(define-function void glutInitDisplayMode (int)) |
| 283 |
|
| 284 |
;; void glutInitWindowPosition(int x, int y) |
| 285 |
(define-function void glutInitWindowPosition (int int)) |
| 286 |
|
| 287 |
;; void glutInitWindowSize(int width, int height) |
| 288 |
(define-function void glutInitWindowSize (int int)) |
| 289 |
|
| 290 |
;; void glutMainLoop(void) |
| 291 |
(define-function void glutMainLoop ()) |
| 292 |
|
| 293 |
;; int glutCreateWindow(const char *title) |
| 294 |
(define-function int glutCreateWindow (char*)) |
| 295 |
|
| 296 |
;; int glutCreateSubWindow(int win, int x, int y, int width, int height) |
| 297 |
(define-function int glutCreateSubWindow (int int int int int)) |
| 298 |
|
| 299 |
;; void glutDestroyWindow(int win) |
| 300 |
(define-function void glutDestroyWindow (int)) |
| 301 |
|
| 302 |
;; void glutPostRedisplay(void) |
| 303 |
(define-function void glutPostRedisplay ()) |
| 304 |
|
| 305 |
;; void glutPostWindowRedisplay(int win) |
| 306 |
(define-function void glutPostWindowRedisplay (int)) |
| 307 |
|
| 308 |
;; void glutSwapBuffers(void) |
| 309 |
(define-function void glutSwapBuffers ()) |
| 310 |
|
| 311 |
;; int glutGetWindow(void) |
| 312 |
(define-function int glutGetWindow ()) |
| 313 |
|
| 314 |
;; void glutSetWindow(int win) |
| 315 |
(define-function void glutSetWindow (int)) |
| 316 |
|
| 317 |
;; void glutSetWindowTitle(const char *title) |
| 318 |
(define-function void glutSetWindowTitle (char*)) |
| 319 |
|
| 320 |
;; void glutSetIconTitle(const char *title) |
| 321 |
(define-function void glutSetIconTitle (char*)) |
| 322 |
|
| 323 |
;; void glutPositionWindow(int x, int y) |
| 324 |
(define-function void glutPositionWindow (int int)) |
| 325 |
|
| 326 |
;; void glutReshapeWindow(int width, int height) |
| 327 |
(define-function void glutReshapeWindow (int int)) |
| 328 |
|
| 329 |
;; void glutPopWindow(void) |
| 330 |
(define-function void glutPopWindow ()) |
| 331 |
|
| 332 |
;; void glutPushWindow(void) |
| 333 |
(define-function void glutPushWindow ()) |
| 334 |
|
| 335 |
;; void glutIconifyWindow(void) |
| 336 |
(define-function void glutIconifyWindow ()) |
| 337 |
|
| 338 |
;; void glutShowWindow(void) |
| 339 |
(define-function void glutShowWindow ()) |
| 340 |
|
| 341 |
;; void glutHideWindow(void) |
| 342 |
(define-function void glutHideWindow ()) |
| 343 |
|
| 344 |
;; void glutFullScreen(void) |
| 345 |
(define-function void glutFullScreen ()) |
| 346 |
|
| 347 |
;; void glutSetCursor(int cursor) |
| 348 |
(define-function void glutSetCursor (int)) |
| 349 |
|
| 350 |
;; void glutWarpPointer(int x, int y) |
| 351 |
(define-function void glutWarpPointer (int int)) |
| 352 |
|
| 353 |
;; void glutEstablishOverlay(void) |
| 354 |
(define-function void glutEstablishOverlay ()) |
| 355 |
|
| 356 |
;; void glutRemoveOverlay(void) |
| 357 |
(define-function void glutRemoveOverlay ()) |
| 358 |
|
| 359 |
;; void glutUseLayer(GLenum layer) |
| 360 |
(define-function void glutUseLayer (int)) |
| 361 |
|
| 362 |
;; void glutPostOverlayRedisplay(void) |
| 363 |
(define-function void glutPostOverlayRedisplay ()) |
| 364 |
|
| 365 |
;; void glutPostWindowOverlayRedisplay(int win) |
| 366 |
(define-function void glutPostWindowOverlayRedisplay (int)) |
| 367 |
|
| 368 |
;; void glutShowOverlay(void) |
| 369 |
(define-function void glutShowOverlay ()) |
| 370 |
|
| 371 |
;; void glutHideOverlay(void) |
| 372 |
(define-function void glutHideOverlay ()) |
| 373 |
|
| 374 |
;; int glutCreateMenu(void (*)(int)) |
| 375 |
(define-function void glutCreateMenu ([c-callback void (int)])) |
| 376 |
|
| 377 |
;; void glutDestroyMenu(int menu) |
| 378 |
(define-function void glutDestroyMenu (int)) |
| 379 |
|
| 380 |
;; int glutGetMenu(void) |
| 381 |
(define-function int glutGetMenu ()) |
| 382 |
|
| 383 |
;; void glutSetMenu(int menu) |
| 384 |
(define-function void glutSetMenu (int)) |
| 385 |
|
| 386 |
;; void glutAddMenuEntry(const char *label, int value) |
| 387 |
(define-function void glutAddMenuEntry (char* int)) |
| 388 |
|
| 389 |
;; void glutAddSubMenu(const char *label, int submenu) |
| 390 |
(define-function void glutAddSubMenu (char* int)) |
| 391 |
|
| 392 |
;; void glutChangeToMenuEntry(int item, const char *label, int value) |
| 393 |
(define-function void glutChangeToMenuEntry (int char* int)) |
| 394 |
|
| 395 |
;; void glutChangeToSubMenu(int item, const char *label, int submenu) |
| 396 |
(define-function void glutChangeToSubMenu (int char* int)) |
| 397 |
|
| 398 |
;; void glutRemoveMenuItem(int item) |
| 399 |
(define-function void glutRemoveMenuItem (int)) |
| 400 |
|
| 401 |
;; void glutAttachMenu(int button) |
| 402 |
(define-function void glutAttachMenu (int)) |
| 403 |
|
| 404 |
;; void glutDetachMenu(int button) |
| 405 |
(define-function void glutDetachMenu (int)) |
| 406 |
|
| 407 |
;; void glutDisplayFunc(void (*func)(void)) |
| 408 |
(define-function void glutDisplayFunc ([c-callback void ()])) |
| 409 |
|
| 410 |
;; void glutReshapeFunc(void (*func)(int width, int height)) |
| 411 |
(define-function void glutReshapeFunc ([c-callback void (int int)])) |
| 412 |
|
| 413 |
;; void glutKeyboardFunc(void (*func)(unsigned char key, int x, int y)) |
| 414 |
(define-function void glutKeyboardFunc ([c-callback void (int int int)])) |
| 415 |
|
| 416 |
;; void glutMouseFunc(void (*func)(int button, int state, int x, int y)) |
| 417 |
(define-function void glutMouseFunc ([c-callback void (int int int int)])) |
| 418 |
|
| 419 |
;; void glutMotionFunc(void (*func)(int x, int y)) |
| 420 |
(define-function void glutMotionFunc ([c-callback void (int int)])) |
| 421 |
|
| 422 |
;; void glutPassiveMotionFunc(void (*func)(int x, int y)) |
| 423 |
(define-function void glutPassiveMotionFunc ([c-callback void (int int)])) |
| 424 |
|
| 425 |
;; void glutEntryFunc(void (*func)(int state)) |
| 426 |
(define-function void glutEntryFunc ([c-callback void (int)])) |
| 427 |
|
| 428 |
;; void glutVisibilityFunc(void (*func)(int state)) |
| 429 |
(define-function void glutVisibilityFunc ([c-callback void (int)])) |
| 430 |
|
| 431 |
;; void glutIdleFunc(void (*func)(void)) |
| 432 |
(define-function void glutIdleFunc ([c-callback void ()])) |
| 433 |
|
| 434 |
;; void glutTimerFunc(unsigned int millis, void (*func)(int value), int value) |
| 435 |
(define-function void glutTimerFunc (int [c-callback void (int)] int)) |
| 436 |
|
| 437 |
;; void glutMenuStateFunc(void (*func)(int state)) |
| 438 |
(define-function void glutMenuStateFunc ([c-callback void (int)])) |
| 439 |
|
| 440 |
;; void glutSpecialFunc(void (*func)(int key, int x, int y)) |
| 441 |
(define-function void glutSpecialFunc ([c-callback void (int int int)])) |
| 442 |
|
| 443 |
;; void glutSpaceballMotionFunc(void (*func)(int x, int y, int z)) |
| 444 |
(define-function void glutSpaceballMotionFunc ([c-callback void (int int int)])) |
| 445 |
|
| 446 |
;; void glutSpaceballRotateFunc(void (*func)(int x, int y, int z)) |
| 447 |
(define-function void glutSpaceballRotateFunc ([c-callback void (int int int)])) |
| 448 |
|
| 449 |
;; void glutSpaceballButtonFunc(void (*func)(int button, int state)) |
| 450 |
(define-function void glutSpaceballButtonFunc ([c-callback void (int int)])) |
| 451 |
|
| 452 |
;; void glutButtonBoxFunc(void (*func)(int button, int state)) |
| 453 |
(define-function void glutButtonBoxFunc ([c-callback void (int int)])) |
| 454 |
|
| 455 |
;; void glutDialsFunc(void (*func)(int dial, int value)) |
| 456 |
(define-function void glutDialsFunc ([c-callback void (int int)])) |
| 457 |
|
| 458 |
;; void glutTabletMotionFunc(void (*func)(int x, int y)) |
| 459 |
(define-function void glutTabletMotionFunc ([c-callback void (int int)])) |
| 460 |
|
| 461 |
;; void glutTabletButtonFunc(void (*func)(int button, int state, int x, int y)) |
| 462 |
(define-function void glutTabletButtonFunc ([c-callback void (int int int int)])) |
| 463 |
|
| 464 |
;; void glutMenuStatusFunc(void (*func)(int status, int x, int y)) |
| 465 |
(define-function void glutMenuStatusFunc ([c-callback void (int int int)])) |
| 466 |
|
| 467 |
;; void glutOverlayDisplayFunc(void (*func)(void)) |
| 468 |
(define-function void glutOverlayDisplayFunc ([c-callback void ()])) |
| 469 |
|
| 470 |
;; void glutWindowStatusFunc(void (*func)(int state)) |
| 471 |
(define-function void glutWindowStatusFunc ([c-callback void (int)])) |
| 472 |
|
| 473 |
;; void glutKeyboardUpFunc(void (*func)(unsigned char key, int x, int y)) |
| 474 |
(define-function void glutKeyboardUpFunc ([c-callback void (int int int)])) |
| 475 |
|
| 476 |
;; void glutSpecialUpFunc(void (*func)(int key, int x, int y)) |
| 477 |
(define-function void glutSpecialUpFunc ([c-callback void (int int int)])) |
| 478 |
|
| 479 |
;; void glutJoystickFunc(void (*func)(unsigned int buttonMask, int x, int y, int z), int pollInterval) |
| 480 |
(define-function void glutJoystickFunc ([c-callback void (int int int int)] int)) |
| 481 |
|
| 482 |
;; void glutSetColor(int, GLfloat red, GLfloat green, GLfloat blue) |
| 483 |
(define-function void glutSetColor (int float float float)) |
| 484 |
|
| 485 |
;; GLfloat glutGetColor(int ndx, int component) |
| 486 |
(define-function double glutGetColor (int int)) |
| 487 |
|
| 488 |
;; void glutCopyColormap(int win) |
| 489 |
(define-function void glutCopyColormap (int)) |
| 490 |
|
| 491 |
;; int glutGet(GLenum type) |
| 492 |
(define-function int glutGet (int)) |
| 493 |
|
| 494 |
;; int glutDeviceGet(GLenum type) |
| 495 |
(define-function int glutDeviceGet (int)) |
| 496 |
|
| 497 |
;; int glutExtensionSupported(const char *name) |
| 498 |
(define-function int glutExtensionSupported (char*)) |
| 499 |
|
| 500 |
;; int glutGetModifiers(void) |
| 501 |
(define-function int glutGetModifiers ()) |
| 502 |
|
| 503 |
;; int glutLayerGet(GLenum type) |
| 504 |
(define-function int glutLayerGet (int)) |
| 505 |
|
| 506 |
;; void * glutGetProcAddress(const char *procName) |
| 507 |
(define-function void* glutGetProcAddress (char*)) |
| 508 |
|
| 509 |
;; void glutBitmapCharacter(void *font, int character) |
| 510 |
(define-function void* glutBitmapCharacter (void* int)) |
| 511 |
|
| 512 |
;; int glutBitmapWidth(void *font, int character) |
| 513 |
(define-function int glutBitmapWidth (void* int)) |
| 514 |
|
| 515 |
;; void glutStrokeCharacter(void *font, int character) |
| 516 |
(define-function void glutStrokeCharacter (void* int)) |
| 517 |
|
| 518 |
;; int glutStrokeWidth(void *font, int character) |
| 519 |
(define-function int glutStrokeWidth (void* int)) |
| 520 |
|
| 521 |
;; int glutBitmapLength(void *font, const unsigned char *string) |
| 522 |
(define-function int glutBitmapLength (void* char*)) |
| 523 |
|
| 524 |
;; int glutStrokeLength(void *font, const unsigned char *string) |
| 525 |
(define-function int glutStrokeLength (void* char*)) |
| 526 |
|
| 527 |
;; void glutWireSphere(GLdouble radius, GLint slices, GLint stacks) |
| 528 |
(define-function int glutWireSphere (double int int)) |
| 529 |
|
| 530 |
;; void glutSolidSphere(GLdouble radius, GLint slices, GLint stacks) |
| 531 |
(define-function void glutSolidSphere (double int int)) |
| 532 |
|
| 533 |
;; void glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks) |
| 534 |
(define-function void glutWireCone (double double int int)) |
| 535 |
|
| 536 |
;; void glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks) |
| 537 |
(define-function void glutSolidCone (double double int int)) |
| 538 |
|
| 539 |
;; void glutWireCube(GLdouble size) |
| 540 |
(define-function void glutWireCube (double)) |
| 541 |
|
| 542 |
;; void glutSolidCube(GLdouble size) |
| 543 |
(define-function void glutSolidCube (double)) |
| 544 |
|
| 545 |
;; void glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings) |
| 546 |
(define-function void glutWireTorus (double double int int)) |
| 547 |
|
| 548 |
;; void glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings) |
| 549 |
(define-function void glutSolidTorus (double double int int)) |
| 550 |
|
| 551 |
;; void glutWireDodecahedron(void) |
| 552 |
(define-function void glutWireDodecahedron ()) |
| 553 |
|
| 554 |
;; void glutSolidDodecahedron(void) |
| 555 |
(define-function void glutSolidDodecahedron ()) |
| 556 |
|
| 557 |
;; void glutWireTeapot(GLdouble size) |
| 558 |
(define-function void glutWireTeapot (double)) |
| 559 |
|
| 560 |
;; void glutSolidTeapot(GLdouble size) |
| 561 |
(define-function void glutSolidTeapot (double)) |
| 562 |
|
| 563 |
;; void glutWireOctahedron(void) |
| 564 |
(define-function void glutWireOctahedron ()) |
| 565 |
|
| 566 |
;; void glutSolidOctahedron(void) |
| 567 |
(define-function void glutSolidOctahedron ()) |
| 568 |
|
| 569 |
;; void glutWireTetrahedron(void) |
| 570 |
(define-function void glutWireTetrahedron ()) |
| 571 |
|
| 572 |
;; void glutSolidTetrahedron(void) |
| 573 |
(define-function void glutSolidTetrahedron ()) |
| 574 |
|
| 575 |
;; void glutWireIcosahedron(void) |
| 576 |
(define-function void glutWireIcosahedron ()) |
| 577 |
|
| 578 |
;; void glutSolidIcosahedron(void) |
| 579 |
(define-function void glutSolidIcosahedron ()) |
| 580 |
|
| 581 |
;; int glutVideoResizeGet(GLenum param) |
| 582 |
(define-function int glutVideoResizeGet ()) |
| 583 |
|
| 584 |
;; void glutSetupVideoResizing(void) |
| 585 |
(define-function int glutSetupVideoResizing ()) |
| 586 |
|
| 587 |
;; void glutStopVideoResizing(void) |
| 588 |
(define-function void glutStopVideoResizing ()) |
| 589 |
|
| 590 |
;; void glutVideoResize(int x, int y, int width, int height) |
| 591 |
(define-function void glutVideoResize (int int int int)) |
| 592 |
|
| 593 |
;; void glutVideoPan(int x, int y, int width, int height) |
| 594 |
(define-function void glutVideoPan (int int int int)) |
| 595 |
|
| 596 |
;; void glutReportErrors(void) |
| 597 |
(define-function void glutReportErrors ()) |
| 598 |
|
| 599 |
;; void glutIgnoreKeyRepeat(int ignore) |
| 600 |
(define-function void glutIgnoreKeyRepeat (int)) |
| 601 |
|
| 602 |
;; void glutSetKeyRepeat(int repeatMode) |
| 603 |
(define-function void glutSetKeyRepeat (int)) |
| 604 |
|
| 605 |
;; void glutForceJoystickFunc(void) |
| 606 |
(define-function void glutForceJoystickFunc ()) |
| 607 |
|
| 608 |
;; void glutGameModeString(const char *string) |
| 609 |
(define-function void glutGameModeString (char*)) |
| 610 |
|
| 611 |
;; int glutEnterGameMode(void) |
| 612 |
(define-function int glutEnterGameMode ()) |
| 613 |
|
| 614 |
;; void glutLeaveGameMode(void) |
| 615 |
(define-function void glutLeaveGameMode ()) |
| 616 |
|
| 617 |
;; int glutGameModeGet(GLenum mode) |
| 618 |
(define-function int glutGameModeGet (int)) |
| 619 |
|
| 620 |
) ;[end] |