Code example for GLSurfaceView

Methods: onResume, setRenderMode

0
     
    @Override 
    protected void onResume() { 
    	super.onResume(); 
    	if(mRajRenderer == null) return;
    	mSurfaceView.setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);
    	mSurfaceView.onResume();
    	mRajRenderer.onVisibilityChanged(true);
    } 
     
    @Override 
    protected void onPause() { 
    	super.onPause(); 
    	if(mRajRenderer == null) return;
    	mSurfaceView.onPause();
    	mRajRenderer.onVisibilityChanged(false);
    } 
 
    @Override 
    protected void onStop() { 
    	super.onStop();