Original Post
Hi all,
I have glutDisplayFunc() to draw the environement
And I receive data from network that contain position of objects, I have a thread that treats that kind of data
So here my problem
I tried to store data into [color=#ff0000]vector to be drawn in glutDisplayFunc each time, this way slow down my computer and moving objects is not [color=#ff0000]smoothly
Then I tried to not use vector and want to draw objects direclty from "[color=#ff0000]thread" that receive data, and nothing happened
so is there way to make moving objects in real time, and if possible draw them from that thread instead of glutDisplayFunc
Thanks
I have glutDisplayFunc() to draw the environement
And I receive data from network that contain position of objects, I have a thread that treats that kind of data
So here my problem
I tried to store data into [color=#ff0000]vector to be drawn in glutDisplayFunc each time, this way slow down my computer and moving objects is not [color=#ff0000]smoothly
Then I tried to not use vector and want to draw objects direclty from "[color=#ff0000]thread" that receive data, and nothing happened
so is there way to make moving objects in real time, and if possible draw them from that thread instead of glutDisplayFunc
Thanks