Public Member Functions
|void||Execute (Implementation *user_implementation)|
|Executes your game. |
|Quits the game application. |
Static Public Member Functions
|static GameApplication *||GetInstance (void)|
|Gets an object for this class. |
|void e2d::core::GameApplication::Execute||(||Implementation *||user_implementation||)|
Runs your game, as long as you instantiate it and pass it as a parameter to this method.
|user_implementation||Your game implementation. Remember that this implementation MUST be a class inherited from the abstract class Implementation.|
|GameApplication * e2d::core::GameApplication::GetInstance||(||void||)||
This class is a Singleton. You have to call this method to get an instance of it.
Call this method anytime to send a quit signal to Easy2D. At the beginning of the next loop iteration, the engine shall stop and call the Implementation's OnQuit() method instead of the OnRun() method, and then exit normally.