Im using GLUT and i need to refresh a draw inside the idle function, my code is something like that:
void idle(){
for(int i ;i<cant;i++){
/* do some stuff*/
glutPostRedisplay();
}
}
inside the idle function proccess de data what i want to redraw in every itaration.
Someone can help me?