4. Closing the Application
Any application needs to be closed at some moment. To close your application as well as to manage its window parameters, controls events, etc. you should use App class.
To close the application the following code is to be used:
In order to work with App class the UnigineApp.h library must be included.
#include <UnigineApp.h> using namespace Unigine; /* .. */ // closing the application App::get()->exit();
- For more information on managing the application via API, see App class page.
Last update: 2018-04-26
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)