Results 1 to 2 of 2

Thread: Sockets and OpenGL

  1. #1
    Join Date
    Jun 2006
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default 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
    Last edited by jonging; 16th June 2006 at 18:35.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default 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().

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.