LWJGL Forum

Programming => OpenGL => Topic started by: Kefik on June 29, 2006, 10:18:27

Title: Reopen closed OpenGL window?
Post by: Kefik on June 29, 2006, 10:18:27
Hi, sorry, I'm probably completely blind - how can I reopen closed window of OpenGL ... or it's set to be destroyed?

I thought it would be something like Display.show() ... it's not :)
Title: Reopen closed OpenGL window?
Post by: Matzon on June 29, 2006, 11:10:07
Display.create / destroy
Title: Reopen closed OpenGL window?
Post by: Kefik on June 29, 2006, 11:11:32
Ya, that's what I thought ... isn't there a way not to doing the destroy? To tell not to destroy Display when Close button is pressed?
Title: Reopen closed OpenGL window?
Post by: Evil-Devil on June 29, 2006, 12:41:13
Why should the window NOT destroyed when the user press the "close" button? Thats dumb. Just reload all your stuff and be happy ;)

When I (the user) close a window (terminate the app) then I assume that I have to restart it.
Title: hmmmmmm...
Post by: Fool Running on June 29, 2006, 13:30:37
Doesn't the close button just set the Display.isCloseRequested()? So you can ignore it?
Or is that not what you are looking for?
Title: Reopen closed OpenGL window?
Post by: Kefik on June 29, 2006, 16:13:28
2Fool Runinning: Damn, I'm completely blind. Thanks - igonring is OK.

2Evil-Devil: Well actualy my application has a few windows and I've got code for initializing the LWJGL and stuff around it like fonts etc. from somebody else ... and I missed that isCloseRequested() in the code - dumb myself :cry: