Example usage for android.opengl GLES20 glDeleteTextures

List of usage examples for android.opengl GLES20 glDeleteTextures

Introduction

In this page you can find the example usage for android.opengl GLES20 glDeleteTextures.

Prototype

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

Source Link

Usage

From source file:Main.java

public static void deleteTextureID(int texID) {
    GLES20.glDeleteTextures(1, new int[] { texID }, 0);
}

From source file:Main.java

public static void deleteTexture(Integer textureHandle) {
    final int[] textureObjectIds = new int[1];
    textureObjectIds[0] = textureHandle;
    GLES20.glDeleteTextures(1, textureObjectIds, 0);
}

From source file:Main.java

/**
 * delete specific texture//  w w w .j a v a2  s .c  o  m
 */
public static void deleteTex(final int tex) {
    final int[] texArray = new int[] { tex };
    GLES20.glDeleteTextures(1, texArray, 0);
}