quit, exit

Is there a way to make the application quit
something equivalent to pressing cmd+q on a mac?
or esc. some people say that there’s a difference

e.g. ofQuit()

basically i want to quit the same way openFrameworks does

am i showing some deep lack of understanding for c++ here?
:slight_smile:

You can just call:

  
std::exit(1);  

though I’m not sure if that cleans up the openGL properly. You might also need to do some cleanup for the windows depending on your operating system.