allrite guys i am sorry for bad description of my problem...but here is what i am saying...
void AntiAliasWidget::run(int value)
{
//If animation is on (not hit F3 yet), then keep adding height
// to make effect of sun raising, if over 4.8, then go down to 2.7
if ((sunDirection == 1) & (animationEnable)) {
_height += 0.01f;
if (_height >= 4.8) sunDirection = -1;
} else if ((sunDirection == -1) & (animationEnable)) {
_height -= 0.01f;
if (_height <= 2.7f) sunDirection = 1;
}
//glutPostRedisplay(); //Update the display
updateGL();
//glutTimerFunc(value, run, 0); //Call it again in 25 ms
}
void AntiAliasWidget::run(int value)
{
//If animation is on (not hit F3 yet), then keep adding height
// to make effect of sun raising, if over 4.8, then go down to 2.7
if ((sunDirection == 1) & (animationEnable)) {
_height += 0.01f;
if (_height >= 4.8) sunDirection = -1;
} else if ((sunDirection == -1) & (animationEnable)) {
_height -= 0.01f;
if (_height <= 2.7f) sunDirection = 1;
}
//glutPostRedisplay(); //Update the display
updateGL();
//glutTimerFunc(value, run, 0); //Call it again in 25 ms
}
To copy to clipboard, switch view to plain text mode
the source code above have glutTimerFunc function but i dont know how to translate that particular line to QT ... so can someone please tell me how to do it
i hope this will be clear explanation from my part..thank you
Bookmarks