Update Window


I get 15 points (x,y,z) per second and I want to show the progress in a window (more and more points in the window).

If I call the glutMainLoop, i can’t come back in the program flow. But I have to calculate a new point in the next turn before I have to update the window.

program idea:

calculate 1 point -> update window with all other points -> calculate next 1 point -> …

can anyone give me a hint to solve this problem?

Thanks ToP


Use the idle function for this …