Im looking to send data from iphone app to desktop OpenGL application using sockets connection. e.g. location of texture,
I have the opengl application running on desktop. And a separate socket application for desktop and iphone where I can send/recieve the data.
But I’m not sure how to combine the sockets application and opengl application for desktop. The desktop opengl application can only recieve data once, and then it gets into glutMainLoop().
You can still receive data from a glut idle func or even display func.
What is the “rhythm” you need ? Synchronized drawing and receiving data ? Or something asynchronous, ie. sometimes receive new data, draw frequently at 60 Hz ?