MCPcopy Create free account
hub / github.com/cinder/Cinder / deferredMain

Method deferredMain

include/cinder/app/android/AppAndroid.h:111–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110template<typename AppT>
111void AppAndroid::deferredMain( const RendererRef &defaultRenderer, const char *title, android_app *nativeApp, const SettingsFn &settingsFn )
112{
113 AppBase::prepareLaunch();
114
115 Settings settings;
116 AppAndroid::initialize( &settings, defaultRenderer, title );
117
118 if( settingsFn )
119 settingsFn( &settings );
120
121 if( settings.getShouldQuit() )
122 return;
123
124ci::android::dbg_app_log( "Allocating AppAndroid" );
125ci::android::dbg_app_log( "Calling AppBase::executeLaunch" );
126 //
127 // Use AppAndroid instead of AppBase like the other platforms so
128 // dereferred main can call the protected method: AppBase::executeLaunch()
129 //
130 AppAndroid *app = new AppT;
131 app->executeLaunch();
132
133 //
134 // NOTE: AppBase::cleanupLaunch is called in EventManagerAndroid::execute.
135 //
136 // DISABLED HERE: AppBase::cleanupLaunch();
137 //
138}
139
140template<typename AppT>
141void AppAndroid::main( const RendererRef &defaultRenderer, const char *title, android_app *nativeApp, const SettingsFn &settingsFn )

Callers

nothing calls this directly

Calls 4

prepareLaunchFunction · 0.85
dbg_app_logFunction · 0.85
getShouldQuitMethod · 0.80
executeLaunchMethod · 0.80

Tested by

no test coverage detected