Code example for GLSurfaceView

Methods: onPause

0
    } 
 
    @Override 
    protected void onPause() { 
        super.onPause(); 
        mGLView.onPause();
    } 
 
    @Override 
    protected void onResume() { 
        super.onResume(); 
        mGLView.onResume();
    } 
 
    /** 
     * Demonstrate how to load a compressed texture from an APK resource. 
     * 
     */ 
    private class CompressedTextureLoader implements StaticTriangleRenderer.TextureLoader { 
        public void load(GL10 gl) {
            Log.w(TAG, "ETC1 texture support: " + ETC1Util.isETC1Supported());