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 2 of 2

Thread: GLUT problems with windows?

  1. #1
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,096

    GLUT problems with windows?

    I have been working with GLUT for window creation and keyboard/mouse input.

    I have compiled programs with glut using both Lcc-win32 and Dev-C++, and get this bug that the program will not exit correctly when the [X] button is clicked on. They keep running in the background and I have to use a CTRL+DEL to end it. The problem has to be in the exe file since it does it on other computer I run the file on.

  2. #2
    Junior Member Newbie
    Join Date
    Jan 2003
    Location
    San Francisco, CA, USA
    Posts
    6

    Re: GLUT problems with windows?

    This is a problem with Win32 GLUT.

    There is a hack in the WM_DESTOY handler to attempt to exit immediately instead of passing the message on to the parent handler. I recall this was done to avoid faults with boards which also have DirectDraw active, like NVidia.

    I had to modify the GLUT32 code for SciTech GLDirect to avoid such exit anomilies, which showed up differently on the various Windows platforms.

    The updated GLUT32 source is posted on their public Perforce server at /public/src/glutw32.

    You might want to try your app with the GLUT32.DLL which comes with GLDirect. This should work as long as your app is linked against the import library, ie, dynamic build option.

Posting Permissions

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