MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / AppDelegate

Class AppDelegate

Source/AppDelegate.h:36–70  ·  view source on GitHub ↗

@brief The axmol Application. Private inheritance here hides part of interface from Director. */

Source from the content-addressed store, hash-verified

34Private inheritance here hides part of interface from Director.
35*/
36class AppDelegate : private ax::Application
37{
38public:
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_

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected