franz1999
03-27-2005, 07:10 AM
I am specifically using FLTK redraw() function but I believe this question can be extended to GLUI,GLUT...
Why is it that I need an event to happen to be able to call a redraw of the screen? Let me explain better. If I am reading the state of the mouse and for each even coming from the mouse (for instance a move of the mouse) I update the screen and ask for redraw, this works fine.
Why can't I do the same making a loop and asking a redraw at the end of each loop? It would be so much easier and intuitive.
Can anyone elaborate on this issue and explain me what is the reason that redraw happens successfully only after events?
Thanks
Why is it that I need an event to happen to be able to call a redraw of the screen? Let me explain better. If I am reading the state of the mouse and for each even coming from the mouse (for instance a move of the mouse) I update the screen and ask for redraw, this works fine.
Why can't I do the same making a loop and asking a redraw at the end of each loop? It would be so much easier and intuitive.
Can anyone elaborate on this issue and explain me what is the reason that redraw happens successfully only after events?
Thanks