| 29 | namespace cinder { namespace app { |
| 30 | |
| 31 | WindowImplAndroid::WindowImplAndroid( ANativeWindow *nativeWindow, const Window::Format &format, RendererRef sharedRenderer, AppImplAndroid *appImpl ) |
| 32 | : mAppImpl( appImpl ), mNativeWindow( nativeWindow ) |
| 33 | { |
| 34 | mDisplay = format.getDisplay(); |
| 35 | if( ! mDisplay ) { |
| 36 | mDisplay = Display::getMainDisplay(); |
| 37 | } |
| 38 | |
| 39 | mRenderer = format.getRenderer(); |
| 40 | |
| 41 | mRenderer->setup( mNativeWindow, sharedRenderer ); |
| 42 | |
| 43 | // set WindowRef and its impl pointer to this |
| 44 | mWindowRef = Window::privateCreate__( this, mAppImpl->getApp() ); |
| 45 | } |
| 46 | |
| 47 | WindowImplAndroid::~WindowImplAndroid() |
| 48 | { |
nothing calls this directly
no test coverage detected