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

Method WindowImplAndroid

src/cinder/app/android/WindowImplAndroid.cpp:31–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace cinder { namespace app {
30
31WindowImplAndroid::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
47WindowImplAndroid::~WindowImplAndroid()
48{

Callers

nothing calls this directly

Calls 5

privateCreate__Function · 0.85
getDisplayMethod · 0.45
getRendererMethod · 0.45
setupMethod · 0.45
getAppMethod · 0.45

Tested by

no test coverage detected