Hello, I am very new to coding with OpenGL and have a question regarding real-time interaction with glutMainLoop in C++.
I have a fully functional code that takes motion from a haptic device (robot) and displays it graphically using OpenGL. What I need to do is taken the positions of the device, send them via UDP to a server and resend them back to the client. The UDP coding isn’t a problem but I don’t know the nature of how glutMainLoop works and how I can receive positions and transfer them while the program runs in its loop.
Thanks in advance for any help or tips.