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 ofxFensterManager::setup(int w, int h, ofWindowMode screenMode) { ofxFensterManager* manager = get(); ofSetupOpenGL(manager->getMainWindow(), w, h,OF_WINDOW); // <-------- setup the GL context ofGLReadyCallback(); }