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:com.damagedearth.Utilities.Components.TrueTypeFont.java

License:Open Source License

public void destroy() {
    IntBuffer scratch = BufferUtils.createIntBuffer(1);
    scratch.put(0, fontTextureID);
    GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);
    GL11.glDeleteTextures(scratch);
}

From source file:com.dinasgames.engine.graphics.Texture.java

public void destruct() {
    if (mTexture > 0) {
        GL11.glDeleteTextures(mTexture);
    }
}

From source file:com.flowpowered.caustic.lwjgl.gl20.GL20Texture.java

License:MIT License

@Override
public void destroy() {
    checkCreated();/*w w w  . ja  va 2 s  . c o  m*/
    // Delete the texture
    GL11.glDeleteTextures(id);
    // Reset the data
    super.destroy();
    // Check for errors
    LWJGLUtil.checkForGLError();
}

From source file:com.google.gapid.glviewer.gl.Texture.java

License:Apache License

@Override
protected void release() {
    GL11.glDeleteTextures(handle);
}

From source file:com.grillecube.client.opengl.GLTexture.java

@Override
public void delete() {
    GL11.glDeleteTextures(this.glID);
    this.width = 0;
    this.height = 0;
}

From source file:com.grillecube.engine.opengl.object.GLTexture.java

@Override
public void delete() {
    GL11.glDeleteTextures(this._glID);
    this._glID = 0;
    this._width = 0;
    this._height = 0;
}

From source file:com.gundogstudios.modules.DesktopGL11.java

License:Open Source License

public final void glDeleteTextures(int n, int[] textures, int offset) {
    for (int i = offset; i < offset + n; i++)
        GL11.glDeleteTextures(textures[i]);
}

From source file:com.kauridev.lunarfever.graphics.Texture.java

License:Open Source License

public void dispose() {
    if (valid()) {
        GL11.glDeleteTextures(id);
        id = 0;
    }
}

From source file:com.mtbs3d.minecrift.FBOParams.java

License:LGPL

public void delete() {
    if (_depthRenderBufferId != -1) {
        if (fboSupport == FBO_SUPPORT.USE_GL30)
            GL30.glDeleteRenderbuffers(_depthRenderBufferId);
        else//from w ww .  ja v  a 2s.c o  m
            EXTFramebufferObject.glDeleteRenderbuffersEXT(_depthRenderBufferId);

        _depthRenderBufferId = -1;
    }

    if (_colorTextureId != -1) {
        GL11.glDeleteTextures(_colorTextureId);
        _colorTextureId = -1;
    }

    if (_frameBufferId != -1) {
        if (fboSupport == FBO_SUPPORT.USE_GL30)
            GL30.glDeleteFramebuffers(_frameBufferId);
        else
            EXTFramebufferObject.glDeleteFramebuffersEXT(_frameBufferId);

        _frameBufferId = -1;
    }
}

From source file:com.redthirddivision.quad.utils.managers.ResourceManager.java

License:Apache License

/**
 * Cleans up resources that have been loaded by the engine.
 *///from  w w w .ja  v  a  2 s . c  om
public static void cleanUp() {
    for (int vao : vaoList)
        GL30.glDeleteVertexArrays(vao);
    for (int vbo : vboList)
        GL15.glDeleteBuffers(vbo);
    for (int tex : textures)
        GL11.glDeleteTextures(tex);
}