void Java_cc_openframeworks_OFAndroid_onSurfaceCreated( JNIEnv* env, jclass thiz ){ if(appSetup){ ofLogNotice("ofAppAndroidWindow") << "onSurfaceCreated"; if(!surfaceDestroyed){ ofUnloadAllFontTextures(); ofPauseVideoGrabbers(); ofPauseVideoPlayers(); if(androidApp){ androidApp->unloadTextures(); } } ofGLReadyCallback(); ofReloadGLResources(); ofResumeVideoGrabbers(); ofResumeVideoPlayers(); if(androidApp){ androidApp->reloadTextures(); } ofSetStyle(ofGetStyle()); surfaceDestroyed = false; }else{ ofGLReadyCallback(); } }
void reloadTextures(){ ofUpdateBitmapCharacterTexture(); ofReloadAllImageTextures(); //ofReloadAllFontTextures(); ofResumeVideoGrabbers(); }