OpenGL

This is a discussion on OpenGL within the C++ Programming forums, part of the General Programming Boards category; hi, I have a problem regard OpenGL. Hope someone can help me pls. In my main program, i called up ...

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    8

    Unhappy OpenGL

    hi,

    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,
    wayne

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    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, 11:17 AM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01: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, 11:14 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21