Java Code Examples for javax.microedition.khronos.opengles.GL11#glDeleteTextures()

The following examples show how to use javax.microedition.khronos.opengles.GL11#glDeleteTextures() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GLES11IdImpl.java    From PhotoMovie with Apache License 2.0 4 votes vote down vote up
@Override
public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) {
    synchronized (sLock) {
        gl.glDeleteTextures(n, textures, offset);
    }
}
 
Example 2
Source File: GraphicsHelper.java    From BobEngine with GNU Lesser General Public License v2.1 4 votes vote down vote up
/**
 * Unload a particular graphic.
 * @param gl OpenGL object for unloading
 * @param g The index of the graphic to delete.
 */
private void unloadGraphic(GL11 gl, int g) {
	int[] tex = { graphics[g].id };
	gl.glDeleteTextures(1, tex, 0);
	graphics[g].deleted();
}
 
Example 3
Source File: GLId.java    From document-viewer with GNU General Public License v3.0 4 votes vote down vote up
public synchronized static void glDeleteTextures(final GL11 gl, final int n, final int[] textures, final int offset) {
    gl.glDeleteTextures(n, textures, offset);
}