PDA

View Full Version : OpenGL Window management



carloscastro
01-16-2001, 06:48 AM
I have a program that opens GL windows on demand. I need to close some of them, so I would like to know how to close a window that was created with GlutCreateWindow.

outlander78
01-16-2001, 08:11 AM
Click on the X in the upper-right corner. http://www.opengl.org/discussion_boards/ubb/biggrin.gif

I'm not sure what the exact command is, but there is command in glut for closing a window; it's usually called as one of the last commands in a program. I'll try to remember to look it up tonight (when I'm home) and post it for you tomorrow.

cheers,
Andrew

Suvcon
01-16-2001, 09:31 AM
maybe is this:


void glutDestroyWindow(int windowIdentifier)

Parameters:
windowIdentifier - the value returned when creating the window

outlander78
01-16-2001, 11:52 AM
That's the one I've been using (at least, I think it is).