Example usage for javax.microedition.khronos.opengles GL10 glDeleteTextures

List of usage examples for javax.microedition.khronos.opengles GL10 glDeleteTextures

Introduction

In this page you can find the example usage for javax.microedition.khronos.opengles GL10 glDeleteTextures.

Prototype

void glDeleteTextures(int n, int[] textures, int offset);

Source Link

Usage

From source file:Main.java

/**
 * Delete loaded texture.//from  w w w  . j  a va 2  s  .  c  om
 * 
 * @param gl this method <b>must be</b> call in GL thread.
 * @param texID delete texture ID(the first element of array)
 */
public static void freeTexture(GL10 gl, int[] texID) {
    if (null == texID || texID.length <= 0) {
        return;
    }

    gl.glDeleteTextures(1, texID, 0);
    texID[0] = INVALID_TEXTURE_ID;
}