Example usage for org.lwjgl.opengl GL11 glDeleteTextures

List of usage examples for org.lwjgl.opengl GL11 glDeleteTextures

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL11 glDeleteTextures.

Prototype

public static void glDeleteTextures(@NativeType("GLuint const *") int[] textures) 

Source Link

Document

Array version of: #glDeleteTextures DeleteTextures

Usage

From source file:im.bci.jnuit.lwjgl.assets.TrueTypeFontWeakReference.java

License:Open Source License

void delete() {
    if (null != textureId) {
        logger.log(Level.FINE, "Unload font {0}", name);
        ByteBuffer temp = ByteBuffer.allocateDirect(4);
        temp.order(ByteOrder.nativeOrder());
        IntBuffer intBuffer = temp.asIntBuffer();
        intBuffer.put(textureId);//from   w  w  w.ja v  a 2  s.c om
        GL11.glDeleteTextures(intBuffer);
        textureId = null;
    }
}

From source file:im.bci.jnuit.lwjgl.LwjglNuitFont.java

License:Open Source License

public void deleteFontTexture() {
    IntBuffer scratch = BufferUtils.createIntBuffer(1);
    scratch.put(0, fontTextureID);/* w  ww.  j av a  2  s  .c om*/
    GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);
    GL11.glDeleteTextures(scratch);
}

From source file:io.root.gfx.glutils.GL.java

License:Apache License

public static void glDeleteTextures(IntBuffer buffer) {
    GL11.glDeleteTextures(buffer);
}

From source file:io.root.gfx.glutils.GL.java

License:Apache License

public static void glDeleteTextures(int n) {
    GL11.glDeleteTextures(n);
}

From source file:io.root.gfx.glutils.GL.java

License:Apache License

public static void glDeleteTextures(int n, IntBuffer textures) {
    GL11.glDeleteTextures(textures);
}

From source file:ion2d.INTexture2D.java

License:Open Source License

/**
 * Releases the texture from OpenGL memory
 */
public void destroy() {
    GL11.glDeleteTextures(this.id);
}

From source file:itdelatrisu.opsu.render.Rendertarget.java

License:Open Source License

/**
 * Destroy the OpenGL objects associated with this Rendertarget. Do not try
 * to use this rendertarget with OpenGL after calling this method.
 *///  www .ja  v  a  2 s  . c  o m
public void destroyRTT() {
    EXTFramebufferObject.glDeleteFramebuffersEXT(fboID);
    EXTFramebufferObject.glDeleteRenderbuffersEXT(depthBufferID);
    GL11.glDeleteTextures(textureID);
}

From source file:itemrender.client.rendering.FBOHelper.java

License:MIT License

private void deleteFramebuffer() {
    EXTFramebufferObject.glDeleteFramebuffersEXT(framebufferID);
    GL11.glDeleteTextures(textureID);
    EXTFramebufferObject.glDeleteRenderbuffersEXT(depthbufferID);
}

From source file:jake2.desktop.LWJGLAdapter.java

License:Open Source License

@Override
public void glDeleteTextures(IntBuffer texnumBuffer) {
    GL11.glDeleteTextures(texnumBuffer);
}

From source file:jpcsp.graphics.RE.RenderingEngineLwjgl.java

License:Open Source License

@Override
public void deleteTexture(int texture) {
    GL11.glDeleteTextures(texture);
}