A utility object that helps you initialise and shutdown Juce correctly using an RAII pattern. More...
Public Member Functions | |
| ScopedJuceInitialiser_GUI () | |
| The constructor simply calls initialiseJuce_GUI(). | |
| ~ScopedJuceInitialiser_GUI () | |
| The destructor simply calls shutdownJuce_GUI(). | |
A utility object that helps you initialise and shutdown Juce correctly using an RAII pattern.
When an instance of this class is created, it calls initialiseJuce_GUI(), and when it's deleted, it calls shutdownJuce_GUI(), which lets you easily make sure that these functions are matched correctly.
This class is particularly handy to use at the beginning of a console app's main() function, because it'll take care of shutting down whenever you return from the main() call.
The constructor simply calls initialiseJuce_GUI().
References initialiseJuce_GUI().
The destructor simply calls shutdownJuce_GUI().
References shutdownJuce_GUI().