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

Method AppImplAndroid

src/cinder/app/android/AppImplAndroid.cpp:53–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53AppImplAndroid::AppImplAndroid( AppAndroid *aApp, const AppAndroid::Settings &settings )
54 : mApp( aApp ), mSetupHasBeenCalled( false ), mCanProcessEvents( false ), mActive( false ) //, mFocused( false )
55{
56 sInstance = this;
57
58 EventManagerAndroid::instance()->setAppImplInst( this );
59 mNativeApp = EventManagerAndroid::instance()->getNativeApp();
60
61 mFrameRate = settings.getFrameRate();
62 mFrameRateEnabled = settings.isFrameRateEnabled();
63 mQuitOnLastWindowClosed = settings.isQuitOnLastWindowCloseEnabled();
64
65 cinder::android::app::CinderNativeActivity::setFullScreen( settings.isFullScreen() );
66
67 auto formats = settings.getWindowFormats();
68 if( formats.empty() ) {
69 formats.push_back( settings.getDefaultWindowFormat() );
70 }
71
72 for( auto &format : formats ) {
73 if( ! format.isTitleSpecified() ) {
74 format.setTitle( settings.getTitle() );
75 }
76
77 createWindow( format );
78 }
79
80 // Set the active window
81 if( ! mWindows.empty() ) {
82 setWindow( mWindows.back()->getWindow() );
83 }
84}
85
86AppImplAndroid::~AppImplAndroid()
87{

Callers

nothing calls this directly

Calls 14

setFullScreenFunction · 0.85
setWindowFunction · 0.85
setAppImplInstMethod · 0.80
getNativeAppMethod · 0.80
isTitleSpecifiedMethod · 0.80
backMethod · 0.80
getFrameRateMethod · 0.45
isFrameRateEnabledMethod · 0.45
isFullScreenMethod · 0.45
emptyMethod · 0.45
push_backMethod · 0.45
setTitleMethod · 0.45

Tested by

no test coverage detected