Code example for GL10

Methods: glDeleteTextures, glGenTextures

0
        } 
    } 
    //------------------------------------------------------------------------- 
    private void createTextureID() { 
        if (_myCameraTextures[0] != 0) {
            gl.glDeleteTextures(1, _myCameraTextures, 0);
            AC_Log.print("!!!!!!!!!!!!!!!!!!!!!!!!!1 delete texture"); 
        } 
        AC_Log.print("!!!!!!!!!!!!!!!!!!!!!!!!!1 create texture"); 
        gl.glGenTextures(1, _myCameraTextures, 0);
    } 
    //------------------------------------------------------------------------- 
    public void close() { 
        if ( _myCamera != null ) {
            if (_myCameraTextures[0] !=0) {
                gl.glDeleteTextures(1, _myCameraTextures, 0);
                AC_Log.print("!!!!!!!!!!!!!!!!!!!!!!!!!1 delete texture"); 
            } 
            _myCameraTextures[0] = 0;
            _myCamera.setPreviewCallback(null);
            _myCamera.stopPreview();