| 588 | } |
| 589 | |
| 590 | void timerEvent(int value) |
| 591 | { |
| 592 | float time = sdkGetTimerValue(&timer); |
| 593 | |
| 594 | if (animate) { |
| 595 | animTime += (time - prevTime) * animationRate; |
| 596 | } |
| 597 | |
| 598 | glutPostRedisplay(); |
| 599 | prevTime = time; |
| 600 | |
| 601 | glutTimerFunc(REFRESH_DELAY, timerEvent, 0); |
| 602 | } |
| 603 | |
| 604 | void cleanup() |
| 605 | { |
nothing calls this directly
no test coverage detected