Example usage for org.lwjgl.opengl GL11 glDeleteLists

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

Introduction

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

Prototype

public static native void glDeleteLists(@NativeType("GLuint") int list, @NativeType("GLsizei") int range);

Source Link

Document

Deletes a contiguous group of display lists.

Usage

From source file:net.kubin.rendering.GLFont.java

License:Apache License

/**
 * Clean up the allocated display lists for the character set.
 *///from w  ww .  java2s.c o  m
public void destroyFont() {
    if (fontListBase != -1) {
        GL11.glDeleteLists(fontListBase, 100);
        fontListBase = -1;
    }
}

From source file:net.shadowmage.ancientwarfare.core.model.ModelPiece.java

License:Open Source License

@Override
protected void finalize() throws Throwable {
    if (displayList >= 0) {
        GL11.glDeleteLists(displayList, 1);
    }
}

From source file:net.smert.frameworkgl.opengl.helpers.DisplayListHelper.java

License:Apache License

public void delete(int displayListID) {
    GL11.glDeleteLists(displayListID, 1);
}

From source file:org.craftmania.blocks.CrossedBlockBrush.java

License:Apache License

@Override
public void release() {
    GL11.glDeleteLists(_callList, 1);
}

From source file:org.craftmania.inventory.CraftingTableInventory.java

License:Apache License

public static void UNLOAD_STATIC_CONTENT() {
    GL11.glDeleteLists(_inventoryDrawList, 1);
}

From source file:org.spout.engine.renderer.GL11BatchVertexRenderer.java

License:Open Source License

public void finalize() {
    GL11.glDeleteLists(displayList, 1);
}

From source file:shadowmage.ancient_framework.client.gui.elements.GuiScrollBarSimple.java

License:Open Source License

/**
 * update the top (and bottom) displayPos of the the handle...
 *//*from  www.  j a  v a  2  s  .co  m*/
private void updateHandleDisplayPos(int yDelta) {
    this.handleTop += yDelta;
    if (this.handleTop < 0) {
        this.handleTop = 0;
    }
    int lowestTopPosition = this.height - this.buffer * 2 - this.handleHeight;
    if (this.handleTop > lowestTopPosition) {
        this.handleTop = lowestTopPosition;
    }
    GL11.glDeleteLists(displayListNum, 1);
    this.displayListNum = 0;
}

From source file:shadowmage.ancient_framework.client.gui.elements.GuiScrollBarSimple.java

License:Open Source License

/**
 *  update the size of the handle, relative to the size of the underlying elementSet
 *  should be called BEFORE updateHandlePos, and before getTopIndex...
 *///from   w  ww .  j av  a 2s  .c  om
public void updateHandleHeight(int setSize, int displayElements) {
    int availBarHeight = this.height - this.buffer * 2 - 20;//20 is the minimum handle height...
    float elementPercent = (float) displayElements / (float) setSize;
    if (elementPercent > 1) {
        elementPercent = 1;
    }
    float bar = (float) availBarHeight * (float) elementPercent;
    int barHeight = (int) (bar + 20);
    this.handleHeight = barHeight;
    this.updateHandleDisplayPos(0);
    GL11.glDeleteLists(displayListNum, 1);
    this.displayListNum = 0;
}

From source file:tectonicus.rasteriser.lwjgl.LwjglMesh.java

License:BSD License

@Override
public void destroy() {
    if (hasDisplayList) {
        GL11.glDeleteLists(displayList, 1);
        displayList = 0;
        hasDisplayList = false;
    }
}

From source file:tk.ivybits.engine.gl.GL.java

License:Open Source License

public static void glDeleteLists(int a, int b) {
    GL11.glDeleteLists(a, b);
}