|
From: Chetan D. <che...@as...> - 2003-11-11 15:47:24
|
Dear All, I was wondering about the need to use glutIdleFunc callback. I know, there are atleats two uses: 1) If a glut window is dragged around, and if it doesn't have glutIdleFunc callback, it doesn't get redrawn until its released. 2) For frame-based animation. I had seen #1 to be true earlier, but it is not true on my machine here. Even w/o glutIdleFunc callback, it redraws the window while dragging around. About #2, animation can be achieved by using a timer instead of glutIdleFunc. Infact, time-based animation is more controlled and preferable than frame-based animation. Are there any other uses of glutIdleFunc? I want to know this because, we suspect glutIdleFunc to be the cause of a problem we are having here, (program not refreshing the window, due to lack of enough CPU time) and want to get rid of it, if its not useful currently and in future. - Chetan |