PDA

View Full Version : Sockets and OpenGL



jonging
16th June 2006, 19:21
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

e8johan
19th June 2006, 17:38
There are a number of articles and tutorials on OpenGL out there, some of them are:

http://www.digitalfanatics.org/projects/qt_tutorial/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().