Guest User

Untitled

a guest
Mar 23rd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. void glutMainLoop(void)
  2. {
  3. for(;;){
  4. /* ... */
  5. foreach(t in timers){
  6. if( t.elapsed() ){
  7. t.callback(…);
  8. continue;
  9. }
  10. }
  11. /* ... */
  12. if( display.posted ){
  13. display.callback();
  14. display.posted = false;
  15. continue;
  16. }
  17. idle.callback();
  18. }
  19. }
Add Comment
Please, Sign In to add comment