Public Member Functions | |
XFCIMPORT | XFcApp () |
Constructor; sets application to be found with XFcCore::getApp(). | |
virtual XFCIMPORT | ~XFcApp () |
Virtual destructor. | |
virtual XFCIMPORT void | onAppInit () |
Called upon application init. | |
virtual XFCIMPORT void | onTick () |
Called every frame (before rendering). | |
virtual XFCIMPORT void | onAppDeinit () |
Called on application quit (cleanup). | |
virtual XFCIMPORT INT | onDeviceStateEvent (INT32 aEvent, INT32 aSeverity, void *aMoreInfo) |
Called when the device state changes in a way that affects the application. |
Each X-Forge application has exactly one copy of an application class. This object is owned by the core. The XFcApp-extended class is usually instantiated in the xfcAppInit() function. Since the default constructor stores a pointer to the class within the core, the application does not need to keep track of the object. (And since static global data is illegal, the application couldn't keep track of the object even if it wanted).
|
Constructor; sets application to be found with XFcCore::getApp(). This constructor registers the application instance into the core. If more than one instance of XFcApp-extended classes are created, the application quits. |
|
Virtual destructor. The destructor is called by the core when application quits. |
|
Called on application quit (cleanup). You should do most of your clean-up in this function. The core calls this function when it is shutting down. |
|
Called upon application init. Once the core has been initialized, the application onAppInit() method is called. |
|
Called when the device state changes in a way that affects the application. It is highly recommended that the application overrides this method and acts according to the events. If severity is medium, it is recommended that the application goes to pause mode, and it is especially critical that all audio is paused. If severity is critical, the application should shut down its threads and quit.
|
|
Called every frame (before rendering). This is a good candidate for events that must occur everywhere in the application, regardless of the current renderer. |
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |