OpenGL Window management

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.

Click on the X in the upper-right corner.

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

maybe is this:

void glutDestroyWindow(int windowIdentifier)

Parameters:
windowIdentifier - the value returned when creating the window

That’s the one I’ve been using (at least, I think it is).