-
Sockets and OpenGL
I want to make a GUI that animates in response to several other processes running on a network. What is the best way to link the openGL update routines to the network commands if I wish to synchronize the GUI and the other processes? Should I have one tcpServer? Should I open a socket for every process? I don't have very much experience with C socket programming... Thanks in advance
-
Re: Sockets and OpenGL
There are a number of articles and tutorials on OpenGL out there, some of them are:
http://www.digitalfanatics.org/proje...chapter14.html
http://doc.trolltech.com/qq/qq06-glimpsing.html
As for networking, the Qt classes emit signals when they have received something. Just connect one of these to a slot in a QGLWidget sub-class and call update().