Ehsan_Liverpool
08-07-2011, 01:59 AM
Hi everybody!
Hi i was just wondering how i could do some image transitions, such as fade out.. or slide.. now the idea that i had was i texturized 2 images beside each other and i wanted to move the camera using ortho2d
void update(int value) {
_xview += 2.0f;
if (_xview > 480) {
_xview -= 30;
}
gluOrtho2D(0.0, _xview, 0.0 , height);
glutPostRedisplay();
glutTimerFunc(20, update, 0);
}
but for some reason (I'm pretty sure its a stupid mistake) this doesn't work. so any sort of help would be appreciated :) and also ideas for other image transitions too. :) thnx!
Hi i was just wondering how i could do some image transitions, such as fade out.. or slide.. now the idea that i had was i texturized 2 images beside each other and i wanted to move the camera using ortho2d
void update(int value) {
_xview += 2.0f;
if (_xview > 480) {
_xview -= 30;
}
gluOrtho2D(0.0, _xview, 0.0 , height);
glutPostRedisplay();
glutTimerFunc(20, update, 0);
}
but for some reason (I'm pretty sure its a stupid mistake) this doesn't work. so any sort of help would be appreciated :) and also ideas for other image transitions too. :) thnx!