Results 1 to 6 of 6

Thread: QT minimal Glut code - no library linking required

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default QT minimal Glut code - no library linking required

    A while back I found this code that implements a minimal set of glut shapes for QT, but it didn't work due to a memory leak.

    I found and fixed the leak, and even though the original code is old it works perfectly on windows/linux and the mac. I'm currently using it in a QT program to display the output from an n-body model.

    The shapes it makes available are
    1. glutWireCube
    2. glutSolidCube
    3. glutWireTorus
    4. glutSolidTorus
    5. glutSolidSphere
    6. glutWireSphere


    Provided these are the only shapes you use there's no need to change existing glut code for this to work. Using this means you don't have to link against the glut lib, which is quite handy (well I think so).

    download link

    If anyone wants to extend this to add more glut features then I'd be happy to update the file I've got hosted. I may well add more stuff to it myself, but not just yet, I'm still finishing my own software that uses it.
    Last edited by rucs_hack; 27th August 2010 at 17:41.

  2. The following user says thank you to rucs_hack for this useful post:

    Ligator (2nd October 2013)

Similar Threads

  1. Replies: 2
    Last Post: 7th September 2009, 21:13
  2. Linking Qt in a dynamic library
    By dave_mm0 in forum Qt Programming
    Replies: 4
    Last Post: 18th July 2009, 16:28
  3. Help needed linking to library
    By StephenR in forum Qt Programming
    Replies: 4
    Last Post: 3rd July 2009, 08:50
  4. linking qt3 to a library
    By thebra in forum Newbie
    Replies: 10
    Last Post: 11th November 2006, 01:25
  5. import library linking
    By bruce1007 in forum Qt Programming
    Replies: 6
    Last Post: 19th May 2006, 10:27

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
  •  
Qt is a trademark of The Qt Company.