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:org.terasology.rendering.opengl.DefaultRenderingProcess.java

License:Apache License

public void deleteFBO(String title) {
    if (fboLookup.containsKey(title)) {
        FBO fbo = fboLookup.get(title);/*  w  ww.j a  v a 2 s.  c o  m*/

        glDeleteFramebuffersEXT(fbo.fboId);
        glDeleteRenderbuffersEXT(fbo.depthStencilRboId);
        GL11.glDeleteTextures(fbo.normalsTextureId);
        GL11.glDeleteTextures(fbo.depthStencilTextureId);
        GL11.glDeleteTextures(fbo.textureId);
    }
}

From source file:org.terasology.rendering.opengl.FBO.java

License:Apache License

/**
 * Properly disposes of the underlying FrameBuffer and its attachments,
 * effectively freeing memory on the graphic adapter.
 *//*from   w w w .  ja v a  2  s  .  c  o  m*/
public void dispose() {
    glDeleteFramebuffersEXT(fboId);
    glDeleteRenderbuffersEXT(depthStencilRboId);
    GL11.glDeleteTextures(normalsBufferTextureId);
    GL11.glDeleteTextures(depthStencilTextureId);
    GL11.glDeleteTextures(colorBufferTextureId);
    status = Status.DISPOSED;
}

From source file:org.terasology.rendering.opengl.LwjglRenderingProcess.java

License:Apache License

public void deleteFBO(String title) {
    if (fboLookup.containsKey(title)) {
        FBO fbo = fboLookup.get(title);//from ww w. j a  v a 2 s .c o  m

        glDeleteFramebuffersEXT(fbo.fboId);
        glDeleteRenderbuffersEXT(fbo.depthStencilRboId);
        GL11.glDeleteTextures(fbo.normalsBufferTextureId);
        GL11.glDeleteTextures(fbo.depthStencilTextureId);
        GL11.glDeleteTextures(fbo.colorBufferTextureId);
    }
}

From source file:org.terasology.rendering.renderingProcesses.DefaultRenderingProcess.java

License:Apache License

public void deleteFBO(String title) {
    if (FBOs.containsKey(title)) {
        FBO fbo = FBOs.get(title);/*from  w  ww.  j a  va  2 s.  c om*/

        EXTFramebufferObject.glDeleteFramebuffersEXT(fbo.fboId);
        EXTFramebufferObject.glDeleteRenderbuffersEXT(fbo.depthStencilRboId);
        GL11.glDeleteTextures(fbo.normalsTextureId);
        GL11.glDeleteTextures(fbo.depthStencilTextureId);
        GL11.glDeleteTextures(fbo.textureId);
    }
}

From source file:org.voxels.platform.LWJGLOpenGLAdapter.java

License:Open Source License

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

From source file:playn.java.JavaGL20.java

License:Apache License

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

From source file:processing.lwjgl.PGL.java

License:Open Source License

public void deleteTextures(int n, IntBuffer ids) {
    GL11.glDeleteTextures(ids);
}

From source file:processing.opengl.PLWJGL.java

License:Open Source License

@Override
public void deleteTextures(int n, IntBuffer textures) {
    GL11.glDeleteTextures(textures);
}

From source file:se.angergard.engine.graphics.FrameBuffer.java

License:Apache License

@Override
public void dispose() {
    GL11.glDeleteTextures(colorTexture);

    if (depthBufferID == 0 && stencilBufferID == 0) {
        GL30.glDeleteRenderbuffers(depthAndStencilBufferID);
    } else if (depthBufferID != 0) {
        GL30.glDeleteRenderbuffers(depthBufferID);
    } else if (stencilBufferID != 0) {
        GL30.glDeleteRenderbuffers(stencilBufferID);
    }/*  www  . ja v  a2 s .c o  m*/

    GL30.glBindFramebuffer(GL30.GL_FRAMEBUFFER, 0);
    GL30.glDeleteFramebuffers(frameBufferID);

}

From source file:se.angergard.engine.graphics.Texture.java

License:Apache License

@Override
public void dispose() {
    GL11.glDeleteTextures(TEXTURE_ID);
}