timer Problem
void TimerFunc( int value )
{
yRot1 -= 5;
if (yRot1 <=-130) yRot1=-130;
{
glutPostRedisplay();
glutTimerFunc(120,TimerFunc,1);
}
}
above is my code,my facing problem was the object rotate at one time only after one clip,when i hit the second clip the timer wouldn't run.
any solution.
Sorry, I don't quite understand what you mean by "after one clip" and "second clip" could you share a little more information about the problem?
October 17, 2006 12:49 AM
your problem is that you are setting your timer variable to -130 immediately after your if statement i would think
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement