Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void glutMainLoop(void)
- {
- for(;;){
- /* ... */
- foreach(t in timers){
- if( t.elapsed() ){
- t.callback(…);
- continue;
- }
- }
- /* ... */
- if( display.posted ){
- display.callback();
- display.posted = false;
- continue;
- }
- idle.callback();
- }
- }
Add Comment
Please, Sign In to add comment