How to update glut window continuously?
问题 I have a real robot that is ordering my virtual robot in open gl. I want show every movement of my master robot(real robot) in slave (virtual one in open gl) online, so i need to update my glut window continuously, actually as long as real robot moves my virtual one moves too, and all these movement should be online. I get data from master always with get data function, but I dont know how I should update the window. Here is my code: * ** * ** * ** * ** * ** * ** * ** * ** * ** * ** * ** * **