- Window window( Window::New( PositionSize( 0, 0, surfaceWidth, surfaceHeight ), "" ) );
- mScene = AdaptorImpl::GetScene( window );
- mRenderSurface = dynamic_cast< TestRenderSurface* >( mScene.GetSurface() );
+ *mMainWindow = Window::New( PositionSize( 0, 0, surfaceWidth, surfaceHeight ), "" );
+ mScene = AdaptorImpl::GetScene( *mMainWindow );