void CubeTransitionApp::GoToNextImage() { mNextTexture = LoadStageFillingTexture( IMAGES[ mIndex ] ); mCurrentEffect.SetTargetTexture( mNextTexture ); mIsImageLoading = false; mCurrentEffect.StartTransition( mPanPosition, mPanDisplacement ); mCurrentTexture = mNextTexture; }
void CubeTransitionApp::OnImageLoaded(ResourceImage image) { mIsImageLoading = false; mCurrentEffect.StartTransition( mPanPosition, mPanDisplacement ); mCurrentImage = mNextImage; }