I think I am misusing the add_timeout and repeat_timeout functions.
If a draw will not happen until after these functions return then my drawing
code should be in the window's draw function.
The timeout functions should just be there for timing when that drawing will be
active.
something like this:
void MyWindow::draw()
{
if (not_valid)
{
// initialize opengl etc.
}//end if
//draw the screen
.
.
.
//add a timeout if I want to control FPS
//otherwise exit.
}
The timeout function should call redraw just before exiting. I'll test this
and report back - hopefully with a simple enough sample for everyone to compile.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk