@brief The axmol Application. Private inheritance here hides part of interface from Director. */
| 34 | Private inheritance here hides part of interface from Director. |
| 35 | */ |
| 36 | class AppDelegate : private ax::Application |
| 37 | { |
| 38 | public: |
| 39 | AppDelegate(); |
| 40 | virtual ~AppDelegate(); |
| 41 | |
| 42 | void initGLContextAttrs() override; |
| 43 | |
| 44 | /** |
| 45 | @brief Implement Director and Scene init code here. |
| 46 | @return true Initialize success, app continue. |
| 47 | @return false Initialize failed, app terminate. |
| 48 | */ |
| 49 | bool applicationDidFinishLaunching() override; |
| 50 | |
| 51 | /** |
| 52 | @brief Called when the application moves to the background |
| 53 | @param the pointer of the application |
| 54 | */ |
| 55 | void applicationDidEnterBackground() override; |
| 56 | |
| 57 | /** |
| 58 | @brief Called when the application reenters the foreground |
| 59 | @param the pointer of the application |
| 60 | */ |
| 61 | void applicationWillEnterForeground() override; |
| 62 | |
| 63 | /** |
| 64 | @brief Crossplatform solution. Gets refresh rate of the device. |
| 65 | @return Refresh rate in Hz |
| 66 | */ |
| 67 | int applicationGetRefreshRate(); |
| 68 | |
| 69 | |
| 70 | }; |
| 71 | |
| 72 | #endif // _APP_DELEGATE_H_ |
nothing calls this directly
no outgoing calls
no test coverage detected