This assure that it can only be intantiated once, and provide a simple acces to the instance via the AnnEngine::Instance() method.
This class is the only one to folow the singleton pattern. The rest of the engine functionally can be accessed throug the AnnEngine singleton. This solution is inspired by the "Get it from something already global" point of this article : http://gameprogrammingpatterns.com/singleton.html
Make the main class a singleton class.
This assure that it can only be intantiated once, and provide a simple acces to the instance via the AnnEngine::Instance() method.
This class is the only one to folow the singleton pattern. The rest of the engine functionally can be accessed throug the AnnEngine singleton. This solution is inspired by the "Get it from something already global" point of this article : http://gameprogrammingpatterns.com/singleton.html