OpenGL / GLUT - Command to quit console window?
I'm currently creating a program using OpenGL and GLUT. All works fine, and I've just created a pop-up menu that allows the user to perform some actions. However, I'd like to include the option to quit the program from the menu, but I'm not sure on the command used. Can anyone help? All other aspects of the program / menu work fine, just not sure on what command to use to quit/exit the window.
Cheers,
S
i am very new to this, but i think you just return 1;
i.e
if(!b)
{
MessageBox(NULL,L"failed to load bitmap",L"Hello",MB_OK);
return 1;
}
i.e
if(!b)
{
MessageBox(NULL,L"failed to load bitmap",L"Hello",MB_OK);
return 1;
}
Quote:Original post by SophistoUse exit(0).
However, I'd like to include the option to quit the program from the menu, but I'm not sure on the command used. Can anyone help? All other aspects of the program / menu work fine, just not sure on what command to use to quit/exit the window.
Quote:Original post by swiftcoderQuote:Original post by SophistoUse exit(0).
However, I'd like to include the option to quit the program from the menu, but I'm not sure on the command used. Can anyone help? All other aspects of the program / menu work fine, just not sure on what command to use to quit/exit the window.
Worked a treat! Thanks, man!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement