UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
Программирование
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
CIGI Client Plugin
Rendering-Related Classes

4. Closing the Application

<< RETURN TO THE PREVIOUS SECTION

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.

Notice
In order to work with App class the UnigineApp.h library must be included.
To close the application the following code is to be used:
Source code (C++)
#include <UnigineApp.h>
using namespace Unigine;

/* .. */
		
// closing the application 
App::get()->exit();

Additional information:

  • For more information on managing the application via API, see App class page.

PROCEED TO THE NEXT SECTION >>

Last update: 26.04.2018