Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 9 of 9

Thread: Simplest GLUT alternative?

  1. #1
    Member Regular Contributor
    Join Date
    Apr 2007
    Location
    Fairfax, VA
    Posts
    252

    Simplest GLUT alternative?

    I'm trying to add a window to my OpenGL program. So far most of my rendering has been off-screen, and the context created for that didn't have to deal with too many windowing-system issues.

    There's a window coming up, and I can draw to it, but there are things like mouse-overs pause execution, and the window stops responding if it's moved to the background.

    I'm on XP64 and using WGL, incidentally, but I'd like whatever I come up with to be easily portable to Unix.

    I'm looking for a free windowing system that I can get working fast----no annoyingly complex build process or linking issues.

    I need functions to:
    CreateWindow(w,h)
    SwapBuffers()

    and preferably also a function to toggle the window visible/invisible (probably cheaper than destroying/recreating).

    Any suggestions?

    GTK+ doesn't seem to have built-in OpenGL support, although there are some addon packages that do. Qt's open source version doesn't seem to include Windows support.

  2. #2
    Intern Newbie
    Join Date
    Feb 2007
    Location
    Tourlaville, France
    Posts
    49

    Re: Simplest GLUT alternative?

    In the latest Qt 4.3.2 it seems that Windows is now supported for compilation though it still lacks Visual Studio integration.
    Change log
    Enabled MSVC project generator for the Qt Open Source edition.
    I haven't tested it yet since I use the commercial version.

  3. #3
    Advanced Member Frequent Contributor plasmonster's Avatar
    Join Date
    Mar 2004
    Posts
    750

    Re: Simplest GLUT alternative?

    IMHO nothing beats GLUT for instant OpenGL satisfaction.

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,768

    Re: Simplest GLUT alternative?

    wxWidgets has an OpenGL window. And it works on most things (OSX, Linux, Win32).

  5. #5
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,979

    Re: Simplest GLUT alternative?


  6. #6
    Member Regular Contributor
    Join Date
    May 2002
    Posts
    273

    Re: Simplest GLUT alternative?

    wxWidgets is overkill, I'd recommend FLTK instead.

  7. #7
    Member Regular Contributor
    Join Date
    Apr 2007
    Location
    Fairfax, VA
    Posts
    252

    Re: Simplest GLUT alternative?

    Quote Originally Posted by plasmonster
    IMHO nothing beats GLUT for instant OpenGL satisfaction.
    If GLUT were an option, I would have just used that. I need something that gives me more control.

    Thanks for the other suggestions, I'll check them out.

  8. #8
    Junior Member Newbie
    Join Date
    Oct 2007
    Posts
    1

    Re: Simplest GLUT alternative?

    Hello,

    I have found simply using SDL pretty good - http://www.libsdl.org, in particular the instructions found here: http://www.libsdl.org/cgi/docwiki.cg...L_20With_20SDL

    --- though you may want to read up a bit on the window show/unshow bit - I am not sure about that on reflection.

    Good luck.

  9. #9
    Member Regular Contributor
    Join Date
    Feb 2001
    Location
    Montréal, QC, Canada
    Posts
    345

    Re: Simplest GLUT alternative?

    Quote Originally Posted by Lindley
    I'm looking for a free windowing system that I can get working fast----no annoyingly complex build process or linking issues.
    I need functions to:
    CreateWindow(w,h)
    SwapBuffers()
    and preferably also a function to toggle the window visible/invisible (probably cheaper than destroying/recreating).
    If you only need full window 3D, no widget and nothing fancy, then SDL is definitely the simplest library to use: http://libsdl.org
    Still it won't have a "show/hide this window" feature.

    On the other hand if you do need gui, menus, widgets and the like, I recommand Fltk which has built-in OpenGL support and which is much easier to use than GTK and the others. It's surprisingly simple to use, yet it is used in professional environments like Lucasfilm tools.
    http://en.wikipedia.org/wiki/Fltk
    http://www.fltk.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •