Changeset 3022 for trunk/src/opengl/glut/glut_event.c
- Timestamp:
- Mar 5, 2000, 11:21:10 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/glut/glut_event.c
r3000 r3022 1 /* $Id: glut_event.c,v 1. 4 2000-03-04 19:33:43jeroen Exp $ */1 /* $Id: glut_event.c,v 1.5 2000-03-05 10:19:38 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1995, 1996, 1997, 1998. */ 3 3 … … 161 161 while (IS_AT_OR_AFTER(__glutTimerList->timeout, now)) { 162 162 timer = __glutTimerList; 163 timer->func(timer->value);163 ((GLUTtimerCB)(timer->func))(timer->value); 164 164 __glutTimerList = timer->next; 165 165 timer->next = freeTimerList; … … 245 245 window->visState = GLUT_HIDDEN; 246 246 __glutSetWindow(window); 247 window->windowStatus(GLUT_HIDDEN);247 ((GLUTwindowStatusCB)(window->windowStatus))(GLUT_HIDDEN); 248 248 } 249 249 /* An unmap is only reported on a single window; its … … 375 375 respect to the XResizeWindow request! */ 376 376 glXWaitX(); 377 window->reshape(width, height);377 ((GLUTreshapeCB)(window->reshape))(width, height); 378 378 window->forceReshape = False; 379 379 /* A reshape should be considered like posting a … … 449 449 __glutSetWindow(window); 450 450 __glutModifierMask = event.xbutton.state; 451 window->mouse(event.xbutton.button - 1,451 ((GLUTmouseCB)(window->mouse))(event.xbutton.button - 1, 452 452 event.type == ButtonRelease ? 453 453 GLUT_UP : GLUT_DOWN, … … 472 472 (Button1Mask | Button2Mask | Button3Mask)) { 473 473 __glutSetWindow(window); 474 window->motion(event.xmotion.x, event.xmotion.y);474 ((GLUTmotionCB)(window->motion))(event.xmotion.x, event.xmotion.y); 475 475 } 476 476 /* If passive motion function registered _and_ … … 482 482 0)) { 483 483 __glutSetWindow(window); 484 window->passive(event.xmotion.x,484 ((GLUTpassiveCB)(window->passive))(event.xmotion.x, 485 485 event.xmotion.y); 486 486 } … … 532 532 __glutSetWindow(window); 533 533 __glutModifierMask = event.xkey.state; 534 keyboard(tmp[0],534 ((GLUTkeyboardCB)(keyboard))(tmp[0], 535 535 event.xkey.x, event.xkey.y); 536 536 __glutModifierMask = ~0; … … 644 644 /* The Delete character is really an ASCII key. */ 645 645 __glutSetWindow(window); 646 keyboard(127, /* ASCII Delete character. */646 ((GLUTkeyboardCB)(keyboard))(127, /* ASCII Delete character. */ 647 647 event.xkey.x, event.xkey.y); 648 648 goto skip; … … 700 700 window->entryState = EnterNotify; 701 701 __glutSetWindow(window); 702 window->entry(GLUT_ENTERED);702 ((GLUTentryCB)(window->entry))(GLUT_ENTERED); 703 703 704 704 if (__glutMappedMenu) { … … 719 719 if (window && window->passive && window->win == xid) { 720 720 __glutSetWindow(window); 721 window->passive(event.xcrossing.x, event.xcrossing.y);721 ((GLUTpassiveCB)(window->passive))(event.xcrossing.x, event.xcrossing.y); 722 722 } 723 723 } … … 748 748 window->entryState = LeaveNotify; 749 749 __glutSetWindow(window); 750 window->entry(GLUT_LEFT);750 ((GLUTentryCB)(window->entry))(GLUT_LEFT); 751 751 } 752 752 } 753 753 } else if (window->passive) { 754 754 __glutSetWindow(window); 755 window->passive(event.xcrossing.x, event.xcrossing.y);755 ((GLUTpassiveCB)(window->passive))(event.xcrossing.x, event.xcrossing.y); 756 756 } 757 757 } … … 789 789 window->visState = visState; 790 790 __glutSetWindow(window); 791 window->windowStatus(visState);791 ((GLUTwindowStatusCB)(window->windowStatus))(visState); 792 792 } 793 793 } … … 950 950 /* Make sure idle func still exists! */ 951 951 if (__glutIdleFunc) { 952 __glutIdleFunc();952 ((GLUTidleCB)(__glutIdleFunc))(); 953 953 } 954 954 } … … 959 959 processWindowWorkList(GLUTwindow * window) 960 960 { 961 //_interrupt(3); 962 961 963 int workMask; 962 964 … … 1205 1207 __glutSetWindow(window); 1206 1208 1207 /* JvdH: DO NOT REMPVE THE EXPLICIT TYPECAST TO THIS GLAPIENTRY */1208 /* FUNCTION, OR THE COMPILER WILL NUKE THE STACK WHEN OPTIMIZING! */1209 /* VACPP obviously has a bug, and will adjust the ESP after the */1210 /* call, but the callee has already done so!!!! */1211 1209 ((GLUTreshapeCB)(window->reshape))(window->width, window->height); 1212 1210 window->forceReshape = False; … … 1262 1260 __glutSetWindow(window); 1263 1261 window->usedSwapBuffers = 0; 1264 window->display();1262 ((GLUTdisplayCB)(window->display))(); 1265 1263 __glutWindowDamaged = 0; 1266 1264 … … 1281 1279 __glutWindowDamaged = (workMask & GLUT_OVERLAY_REPAIR_WORK); 1282 1280 __glutSetWindow(window); 1283 window->overlay->display();1281 ((GLUTdisplayCB)(window->overlay->display))(); 1284 1282 __glutWindowDamaged = 0; 1285 1283 } else { … … 1304 1302 __glutSetWindow(window); 1305 1303 window->usedSwapBuffers = 0; 1306 window->display();1304 ((GLUTdisplayCB)(window->display))(); 1307 1305 __glutWindowDamaged = 0; 1308 1306
Note:
See TracChangeset
for help on using the changeset viewer.