void VAppAndroid::UpdateApplicationState() { VAppMobile::UpdateApplicationState(); // Refresh screen when loading if (GetAppState() == VAppHelper::AS_SCENE_LOADING) { // TODO: Always allow the application to exit on android if the app is loading //if (GetInputMap()->GetTrigger(EXIT)) //{ // m_sceneLoader.Close(); // m_sceneLoader.OnAbort(); // m_appState = AS_LOADING_ERROR; // return m_appState; //} // We have to draw the screen masks here to ensure that we actually fill the // frame buffer every time the API is called since the OS clears the frame // buffer itself. Vision::Video.ResumeRendering(); VisRenderContext_cl::GetMainRenderContext()->Activate(); Vision::RenderScreenMasks(); Vision::Video.UpdateScreen(); } }
void VAppWin::UpdateApplicationState() { VAppBase::UpdateApplicationState(); // Refresh screen when loading if (GetAppState() == VAppHelper::AS_SCENE_LOADING) { Vision::Video.UpdateScreen(); } }