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:adrianton.gloptat.plotter.Box.java

License:Open Source License

static void release() {
    GL11.glDeleteLists(handle, 1);
}

From source file:adrianton.gloptat.plotter.Surface.java

License:Open Source License

public static void release() {
    GL11.glDeleteLists(handle, 1);
}

From source file:buildcraft.core.lib.render.FluidRenderer.java

License:Minecraft Mod Public

public static void onTextureReload() {
    for (int[] ia : flowingRenderCache.values()) {
        for (int i : ia) {
            GL11.glDeleteLists(i, 1);
        }//  w w w  .j a va 2 s  .c om
    }
    flowingRenderCache.clear();

    for (int[] ia : stillRenderCache.values()) {
        for (int i : ia) {
            GL11.glDeleteLists(i, 1);
        }
    }
    stillRenderCache.clear();
}

From source file:com.ardor3d.renderer.lwjgl.LwjglFont.java

License:Open Source License

/**
 * <code>deleteFont</code> deletes the current display list of font objects. The font will be useless until a call
 * to <code>buildDisplayLists</code> is made.
 *//*  w ww.j a v a2s.  co  m*/
public void deleteFont() {
    GL11.glDeleteLists(base, 256);
}

From source file:com.ardor3d.renderer.lwjgl.LwjglRenderer.java

License:Open Source License

public void deleteDisplayLists(final Collection<Integer> ids) {
    for (final Integer i : ids) {
        if (i != null && i != 0) {
            System.err.println("deleted DL: " + i);
            GL11.glDeleteLists(i, 1);
        }//from   w w  w  .j  av  a  2  s  .c o m
    }
}

From source file:com.badlogic.gdx.tools.hiero.unicodefont.UnicodeFont.java

License:Apache License

/** Clears all loaded and queued glyphs. */
public void clearGlyphs() {
    for (int i = 0; i < PAGES; i++)
        glyphs[i] = null;/*from   w w w.j ava2  s. co  m*/

    for (Iterator iter = glyphPages.iterator(); iter.hasNext();) {
        GlyphPage page = (GlyphPage) iter.next();
        page.getTexture().dispose();
    }
    glyphPages.clear();

    if (baseDisplayListID != -1) {
        GL11.glDeleteLists(baseDisplayListID, displayLists.size());
        baseDisplayListID = -1;
    }

    queuedGlyphs.clear();
    missingGlyph = null;
}

From source file:com.rvantwisk.cnctools.controls.opengl.BeadActor.java

License:Open Source License

@Override
public void destroy() {
    GL11.glDeleteLists(display_list, 1);
}

From source file:fable.framework.ui.views.chiPlotView.java

License:Open Source License

/**
 * Build the list to display here//w  ww .  ja  va  2  s  .c o  m
 */
private static void drawReliefList() {

    if (!reliefListFirst) {
        GL11.glDeleteLists(reliefList, 1);
    }
    reliefListFirst = false;
    reliefList = GL11.glGenLists(1);
    GL11.glNewList(reliefList, GL11.GL_COMPILE);
    GL11.glColor3f(1.0f, 1.0f, 1.0f); // white
    GL11.glPointSize(pointSize);
    for (int i = 0; i < imageWidth - 1; i++) {
        GL11.glBegin(GL11.GL_LINE_STRIP);
        int j = i + 1;
        int color_index = (int) image[i];
        if (color_index < 0)
            color_index = 0;
        if (color_index > COLOR_INDEX_MAX)
            color_index = COLOR_INDEX_MAX;
        GL11.glColor3f(red[color_index], green[color_index], blue[color_index]); // temperature lut
        GL11.glVertex3f(i, image[i], image[j]);
        // System.out.println("i=" + i + ", j=" + j + " image[i]=" +
        // image[i] + " image[j]=" + image[j]);
        GL11.glEnd();
    }
    /*
     * gl.glBegin(GL.GL_TRIANGLES);
     * 
     * gl.glVertex3f(-1.0f, -0.5f, 0.0f); // lower left vertex
     * gl.glVertex3f( 1.0f, -0.5f, 0.0f); // lower right vertex
     * gl.glVertex3f( 0.0f, 0.5f, 0.0f); // upper vertex
     * 
     * gl.glEnd();
     */
    GL11.glEndList();
    GL11.glFlush();
}

From source file:fable.imageviewer.views.ReliefView.java

License:Open Source License

private void drawReliefList() {
    // long started = System.currentTimeMillis();
    if (!reliefListFirst) {
        GL11.glDeleteLists(reliefList, 1);
    }//ww w .j  av  a  2  s . co  m
    reliefListFirst = false;
    reliefList = GL11.glGenLists(1);
    GL11.glNewList(reliefList, GL11.GL_COMPILE);
    GL11.glColor3f(1.0f, 1.0f, 1.0f); // white
    GL11.glPointSize(pointSize);
    for (int i = 0; i < imageWidth; i++) {
        GL11.glBegin(GL11.GL_LINE_STRIP);
        for (int j = 0; j < imageHeight; j++) {
            int color_index;
            color_index = (int) image[j * imageWidth + i];
            if (color_index < 0)
                color_index = 0;
            if (color_index > colorIndexMax)
                color_index = colorIndexMax;
            GL11.glColor3f(red[color_index], green[color_index], blue[color_index]); // temperature lut
            GL11.glVertex3f(i, j, image[j * imageWidth + i]);
        }
        GL11.glEnd();
    }
    for (int i = 0; i < imageHeight; i++) {
        GL11.glBegin(GL11.GL_LINE_STRIP);
        for (int j = 0; j < imageWidth; j++) {
            int color_index;
            color_index = (int) image[i * imageWidth + j];
            if (color_index < 0)
                color_index = 0;
            if (color_index > colorIndexMax)
                color_index = colorIndexMax;
            GL11.glColor3f(red[color_index], green[color_index], blue[color_index]); // temperature lut
            GL11.glVertex3f(j, i, image[i * imageWidth + j]);
        }
        GL11.glEnd();
    }
    GL11.glEndList();
    // long elapsed = System.currentTimeMillis()-started;
    // logger.debug("time to draw relief list "+elapsed+" ms");
}

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

License:Apache License

public static void glDeleteLists(int list, int count) {
    GL11.glDeleteLists(list, count);
}