Thread: OpenGL

  1. #1
    Registered User
    Join Date
    May 2005

    Unhappy OpenGL


    I have a problem regard OpenGL. Hope someone can help me pls.

    In my main program, i called up a Dialog Box with a Button when clicked, it will show the 2 windows(line graphs were plotted n displayed in these 2 windows).

    However, after i closed the 2 windows, it will terminate my program directly instead of going back to the main program to continue with the program. Is there any command i should include after "glutMainLoop();" to let it loop back to the main?

    Thanks for all your time
    Best Regards,

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    after glutMainLoop() exits your application is over. You can either integrate your dialog code into the glut framework (you will always have an opengl window open in this case) or use separate processes to launch your graphs. (recreating them each time you need them)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  3. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 07:57 PM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM