Examples of glDeleteTextures()


Examples of javax.media.opengl.GL.glDeleteTextures()

        GL gl = context(ctx).getGL();

        if (id > 0) {
            int[] tmp = new int[1];
            tmp[0] = id;
            gl.glDeleteTextures(1, tmp, 0);
        } else {
            System.err.println("tried to delete tex with texid <= 0");
        }
    }
View Full Code Here

Examples of javax.media.opengl.GL.glDeleteTextures()

        final IntBuffer idBuffer = BufferUtils.createIntBuffer(1);
        idBuffer.clear();
        idBuffer.put(id.intValue());
        idBuffer.rewind();
        gl.glDeleteTextures(idBuffer.limit(), idBuffer);
        record.removeTextureRecord(id);
        texture.removeFromIdCache(context.getGlContextRep());
    }

    public static void deleteTextureIds(final Collection<Integer> ids) {
View Full Code Here

Examples of javax.media.opengl.GL.glDeleteTextures()

                record.removeTextureRecord(i);
            }
        }
        idBuffer.flip();
        if (idBuffer.remaining() > 0) {
            gl.glDeleteTextures(idBuffer.remaining(), idBuffer);
        }
    }

    /**
     * Useful for external jogl based classes that need to safely set the current texture.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.