Code example for GLSurfaceView

Methods: onResume

0
    } 
 
    @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());
            InputStream input = getResources().openRawResource(R.raw.androids);
            try { 
                ETC1Util.loadTexture(GLES10.GL_TEXTURE_2D, 0, 0,
                        GLES10.GL_RGB, GLES10.GL_UNSIGNED_SHORT_5_6_5, input);
            } catch (IOException e) {
                Log.w(TAG, "Could not load texture: " + e);