The main instance object to be implemented by the application.
In some host environments (NPAPI, NaCl), multiple instances of the application may be executing inside the same process. In those environments, the application can not use process-wide global data, but all application data must be properly grouped in their own instances.
The MainClass object hides this property, and allows the application to easily implement itself as an instance. Derive from the MainClass interface to implement your application logic.
If you do not care about NPAPI or NaCl support, you do not need to use MainClass, and can use standard main() and control the application entrypoint manually.
MainClass | The main instance object to be implemented by the application. |
graphics | The graphics context instance to be used by this application instance. |
input | The input context instance to be used by this application instance. |
WindowAboutToMinimize | |
WindowAboutToMaximize | |
WindowAboutToClose | |
AboutToQuit | This event is triggered directly as a response to QuitApplication. |
ctor | |
~dtor[virtual] | Reimplement this function to perform any teardown code necessary for this application instance. |
Main(argc,argn,argv)[virtual] | Called when a new instance of the application starts executing. |
Render()[virtual] | Called for each game update/render frame. |
QuitApplication() | Call from client code to shut down the application. |
IsQuitting()[const] | Returns true if QuitApplication() has been called and the application is in the process of shutting down. |