Java 类net.minecraft.client.renderer.GLAllocation 实例源码

项目:BaseClient    文件:Mipmaps.java   
public static IntBuffer[] makeMipmapBuffers(Dimension[] p_makeMipmapBuffers_0_, int[][] p_makeMipmapBuffers_1_)
{
    if (p_makeMipmapBuffers_0_ == null)
    {
        return null;
    }
    else
    {
        IntBuffer[] aintbuffer = new IntBuffer[p_makeMipmapBuffers_0_.length];

        for (int i = 0; i < p_makeMipmapBuffers_0_.length; ++i)
        {
            Dimension dimension = p_makeMipmapBuffers_0_[i];
            int j = dimension.width * dimension.height;
            IntBuffer intbuffer = GLAllocation.createDirectIntBuffer(j);
            int[] aint = p_makeMipmapBuffers_1_[i];
            intbuffer.clear();
            intbuffer.put(aint);
            intbuffer.clear();
            aintbuffer[i] = intbuffer;
        }

        return aintbuffer;
    }
}
项目:BaseClient    文件:ModelRenderer.java   
/**
 * Compiles a GL display list for this model
 */
private void compileDisplayList(float scale)
{
    if (this.displayList == 0)
    {
        this.savedScale = scale;
        this.displayList = GLAllocation.generateDisplayLists(1);
    }

    GL11.glNewList(this.displayList, GL11.GL_COMPILE);
    WorldRenderer worldrenderer = Tessellator.getInstance().getWorldRenderer();

    for (int i = 0; i < this.cubeList.size(); ++i)
    {
        ((ModelBox)this.cubeList.get(i)).render(worldrenderer, scale);
    }

    for (int j = 0; j < this.spriteList.size(); ++j)
    {
        ModelSprite modelsprite = (ModelSprite)this.spriteList.get(j);
        modelsprite.render(Tessellator.getInstance(), scale);
    }

    GL11.glEndList();
    this.compiled = true;
}
项目:BaseClient    文件:Mipmaps.java   
public static IntBuffer[] makeMipmapBuffers(Dimension[] p_makeMipmapBuffers_0_, int[][] p_makeMipmapBuffers_1_)
{
    if (p_makeMipmapBuffers_0_ == null)
    {
        return null;
    }
    else
    {
        IntBuffer[] aintbuffer = new IntBuffer[p_makeMipmapBuffers_0_.length];

        for (int i = 0; i < p_makeMipmapBuffers_0_.length; ++i)
        {
            Dimension dimension = p_makeMipmapBuffers_0_[i];
            int j = dimension.width * dimension.height;
            IntBuffer intbuffer = GLAllocation.createDirectIntBuffer(j);
            int[] aint = p_makeMipmapBuffers_1_[i];
            intbuffer.clear();
            intbuffer.put(aint);
            intbuffer.clear();
            aintbuffer[i] = intbuffer;
        }

        return aintbuffer;
    }
}
项目:BaseClient    文件:ModelRenderer.java   
/**
 * Compiles a GL display list for this model
 */
private void compileDisplayList(float scale)
{
    this.displayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(this.displayList, GL11.GL_COMPILE);
    WorldRenderer worldrenderer = Tessellator.getInstance().getWorldRenderer();

    for (int i = 0; i < this.cubeList.size(); ++i)
    {
        ((ModelBox)this.cubeList.get(i)).render(worldrenderer, scale);
    }

    for (int j = 0; j < this.spriteList.size(); ++j)
    {
        ModelSprite modelsprite = (ModelSprite)this.spriteList.get(j);
        modelsprite.render(Tessellator.getInstance(), scale);
    }

    GL11.glEndList();
    this.compiled = true;
}
项目:Backmemed    文件:ModelRenderer.java   
/**
 * Compiles a GL display list for this model
 */
private void compileDisplayList(float scale)
{
    if (this.displayList == 0)
    {
        this.savedScale = scale;
        this.displayList = GLAllocation.generateDisplayLists(1);
    }

    GlStateManager.glNewList(this.displayList, 4864);
    VertexBuffer vertexbuffer = Tessellator.getInstance().getBuffer();

    for (int i = 0; i < this.cubeList.size(); ++i)
    {
        ((ModelBox)this.cubeList.get(i)).render(vertexbuffer, scale);
    }

    for (int j = 0; j < this.spriteList.size(); ++j)
    {
        ModelSprite modelsprite = (ModelSprite)this.spriteList.get(j);
        modelsprite.render(Tessellator.getInstance(), scale);
    }

    GlStateManager.glEndList();
    this.compiled = true;
}
项目:Backmemed    文件:Mipmaps.java   
public static IntBuffer[] makeMipmapBuffers(Dimension[] p_makeMipmapBuffers_0_, int[][] p_makeMipmapBuffers_1_)
{
    if (p_makeMipmapBuffers_0_ == null)
    {
        return null;
    }
    else
    {
        IntBuffer[] aintbuffer = new IntBuffer[p_makeMipmapBuffers_0_.length];

        for (int i = 0; i < p_makeMipmapBuffers_0_.length; ++i)
        {
            Dimension dimension = p_makeMipmapBuffers_0_[i];
            int j = dimension.width * dimension.height;
            IntBuffer intbuffer = GLAllocation.createDirectIntBuffer(j);
            int[] aint = p_makeMipmapBuffers_1_[i];
            intbuffer.clear();
            intbuffer.put(aint);
            intbuffer.clear();
            aintbuffer[i] = intbuffer;
        }

        return aintbuffer;
    }
}
项目:CustomWorldGen    文件:ModelRenderer.java   
/**
 * Compiles a GL display list for this model
 */
@SideOnly(Side.CLIENT)
private void compileDisplayList(float scale)
{
    this.displayList = GLAllocation.generateDisplayLists(1);
    GlStateManager.glNewList(this.displayList, 4864);
    VertexBuffer vertexbuffer = Tessellator.getInstance().getBuffer();

    for (int i = 0; i < this.cubeList.size(); ++i)
    {
        ((ModelBox)this.cubeList.get(i)).render(vertexbuffer, scale);
    }

    GlStateManager.glEndList();
    this.compiled = true;
}
项目:CrystalMod    文件:ChunkRenderer.java   
public void render(float partialTicks) {

    boolean ineff = false;

    if(ineff){
        updateSimpleRender(partialTicks);
        return;
    }

    if (needsUpdate) {
        if (glRenderList >= 0) {
            GLAllocation.deleteDisplayLists(glRenderList);
            glRenderList = -1;
        }
        glRenderList = GLAllocation.generateDisplayLists(1);
        GL11.glNewList(glRenderList, GL11.GL_COMPILE);
        updateSimpleRender(partialTicks);
        GL11.glEndList();
        needsUpdate = false;
    }
    if(this.glRenderList >=0){
        GlStateManager.callList(glRenderList);
    }
}
项目:metamorph    文件:ModelCustomRenderer.java   
/**
 * Compiles a GL display list for this model
 */
@SideOnly(Side.CLIENT)
protected void compileDisplayList(float scale)
{
    this.displayList = GLAllocation.generateDisplayLists(1);
    GlStateManager.glNewList(this.displayList, 4864);
    VertexBuffer vertexbuffer = Tessellator.getInstance().getBuffer();

    for (int i = 0; i < this.cubeList.size(); ++i)
    {
        ((ModelBox) this.cubeList.get(i)).render(vertexbuffer, scale);
    }

    GlStateManager.glEndList();
    this.compiled = true;
}
项目:MMDLib-old    文件:ModelRendererTurbo.java   
private void compileDisplayList (float worldScale) {
    if (this.useLegacyCompiler)
        this.compileLegacyDisplayList(worldScale);
    else {
        final Collection<TextureGroup> textures = this.textureGroup.values();
        final Iterator<TextureGroup> itr = textures.iterator();
        this.displayListArray = new int[this.textureGroup.size()];
        for (int i = 0; itr.hasNext(); i++) {
            this.displayListArray[i] = GLAllocation.generateDisplayLists(1);
            GL11.glNewList(this.displayListArray[i], 4864);
            final Tessellator tessellator = Tessellator.getInstance();
            final TextureGroup usedGroup = itr.next();
            for (int j = 0; j < usedGroup.poly.size(); j++)
                usedGroup.poly.get(j).draw(tessellator, worldScale);
            GL11.glEndList();
        }
    }
    this.compiled = true;
}
项目:DaVincing    文件:SculptureRenderCompiler.java   
public boolean update(BlockSlice slice) {
  if (!changed) {
    return false;
  }
  for (int pass = 0; pass < 2; pass++) {
    if (glDisplayList[pass] < 0) {
      glDisplayList[pass] = GLAllocation.generateDisplayLists(1);
    }
    GL11.glPushMatrix();
    GL11.glNewList(glDisplayList[pass], GL11.GL_COMPILE);
    if (slice.sculpture.needRenderPass(pass)) {
      build(slice, pass);
    }
    GL11.glEndList();
    GL11.glPopMatrix();
  }

  changed = false;
  return true;
}
项目:Resilience-Client-Source    文件:Mipmaps.java   
public static IntBuffer[] makeMipmapBuffers(Dimension[] mipmapDimensions, int[][] mipmapDatas)
{
    if (mipmapDimensions == null)
    {
        return null;
    }
    else
    {
        IntBuffer[] mipmapBuffers = new IntBuffer[mipmapDimensions.length];

        for (int i = 0; i < mipmapDimensions.length; ++i)
        {
            Dimension dim = mipmapDimensions[i];
            int bufLen = dim.width * dim.height;
            IntBuffer buf = GLAllocation.createDirectIntBuffer(bufLen);
            int[] data = mipmapDatas[i];
            buf.clear();
            buf.put(data);
            buf.clear();
            mipmapBuffers[i] = buf;
        }

        return mipmapBuffers;
    }
}
项目:Hard-Science    文件:RenderLavaBlob.java   
private static void compileDisplayList()
{
    displayList = GLAllocation.generateDisplayLists(1);
    GlStateManager.glNewList(displayList, 4864);
    BufferBuilder vertexbuffer = Tessellator.getInstance().getBuffer();

    vertexbuffer.begin(7, DefaultVertexFormats.POSITION_TEX_NORMAL);

    for(RawQuad q : quads)
    {
        for(int i = 0; i < 4; i++)
        {
            Vertex v = q.getVertex(i);
            Vec3d n = v.getNormal();
            vertexbuffer.pos(v.x, v.y, v.z).tex(v.u, v.v).normal((float)n.x, (float)n.y, (float)n.z).endVertex();
        }
    }

    Tessellator.getInstance().draw();

    GlStateManager.glEndList();



}
项目:minepainter    文件:SculptureRenderCompiler.java   
public boolean update(BlockSlice slice){
    if(glDisplayList != null && !changed)return false;

    if(glDisplayList == null)glDisplayList = new int[]{-1,-1};
    for(int pass = 0; pass < 2; pass++){
        if(glDisplayList[pass] < 0)glDisplayList[pass] = GLAllocation.generateDisplayLists(1);
        GL11.glPushMatrix();
        GL11.glNewList(glDisplayList[pass], GL11.GL_COMPILE);
        if(slice.sculpture.needRenderPass(pass))
            build(slice,pass);
        GL11.glEndList();
        GL11.glPopMatrix();
    }       

    changed = false;
    return true;
}
项目:ExpandedRailsMod    文件:ModelRenderer.java   
/**
 * Compiles a GL display list for this model
 */
@SideOnly(Side.CLIENT)
private void compileDisplayList(float scale)
{
    this.displayList = GLAllocation.generateDisplayLists(1);
    GlStateManager.glNewList(this.displayList, 4864);
    VertexBuffer vertexbuffer = Tessellator.getInstance().getBuffer();

    for (int i = 0; i < this.cubeList.size(); ++i)
    {
        ((ModelBox)this.cubeList.get(i)).render(vertexbuffer, scale);
    }

    GlStateManager.glEndList();
    this.compiled = true;
}
项目:archimedes-ships    文件:MobileChunkRenderer.java   
public void markRemoved()
{
    isRemoved = true;

    try
    {
        if (glRenderList != 0)
        {
            ArchimedesShipMod.modLog.debug("Deleting mobile chunk display list " + glRenderList);
            GLAllocation.deleteDisplayLists(glRenderList);
            glRenderList = 0;
        }
    } catch (Exception e)
    {
        ArchimedesShipMod.modLog.error("Failed to destroy mobile chunk display list", e);
    }
}
项目:RuneCraftery    文件:ModelRenderer.java   
/**
 * Compiles a GL display list for this model
 */
@SideOnly(Side.CLIENT)
private void compileDisplayList(float par1)
{
    this.displayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(this.displayList, GL11.GL_COMPILE);
    Tessellator tessellator = Tessellator.instance;

    for (int i = 0; i < this.cubeList.size(); ++i)
    {
        ((ModelBox)this.cubeList.get(i)).render(tessellator, par1);
    }

    GL11.glEndList();
    this.compiled = true;
}
项目:BetterNutritionMod    文件:ModelRenderer.java   
/**
 * Compiles a GL display list for this model
 */
@SideOnly(Side.CLIENT)
private void compileDisplayList(float par1)
{
    this.displayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(this.displayList, GL11.GL_COMPILE);
    Tessellator tessellator = Tessellator.instance;

    for (int i = 0; i < this.cubeList.size(); ++i)
    {
        ((ModelBox)this.cubeList.get(i)).render(tessellator, par1);
    }

    GL11.glEndList();
    this.compiled = true;
}
项目:secri    文件:MaemeModelRenderer.java   
/**
 * Compiles a GL display list for this model
 */
@SideOnly(Side.CLIENT)
private void compileDisplayList(float par1) {
    this.displayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(this.displayList, GL11.GL_COMPILE);
    Tessellator var2 = Tessellator.instance;

    for (int var3 = 0; var3 < this.cubeList.size(); ++var3) {
        ((ModelBox) this.cubeList.get(var3)).render(var2, par1);
    }

    for(int i = 0; i < this.objs.size(); i++){
        this.objs.get(i).render(par1);
    }

    GL11.glEndList();
    this.compiled = true;
}
项目:secri    文件:MaemeModelRenderer.java   
/**
 * Compiles a GL display list for this model
 */
@SideOnly(Side.CLIENT)
private void compileDisplayList(float par1) {
    this.displayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(this.displayList, GL11.GL_COMPILE);
    Tessellator var2 = Tessellator.instance;

    for (int var3 = 0; var3 < this.cubeList.size(); ++var3) {
        ((ModelBox) this.cubeList.get(var3)).render(var2, par1);
    }

    for(int i = 0; i < this.objs.size(); i++){
        this.objs.get(i).render(par1);
    }

    GL11.glEndList();
    this.compiled = true;
}
项目:iChunUtil    文件:ModelSizeControls.java   
public void destroy()
{
    if(shape1.compiled)
    {
        GLAllocation.deleteDisplayLists(shape1.displayList);
    }
    if(shape2.compiled)
    {
        GLAllocation.deleteDisplayLists(shape2.displayList);
    }
    if(shape2_1.compiled)
    {
        GLAllocation.deleteDisplayLists(shape2_1.displayList);
    }
    if(shape2_2.compiled)
    {
        GLAllocation.deleteDisplayLists(shape2_2.displayList);
    }
    if(shape2_3.compiled)
    {
        GLAllocation.deleteDisplayLists(shape2_3.displayList);
    }
}
项目:DecompiledMinecraft    文件:ModelRenderer.java   
/**
 * Compiles a GL display list for this model
 */
private void compileDisplayList(float scale)
{
    this.displayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(this.displayList, GL11.GL_COMPILE);
    WorldRenderer worldrenderer = Tessellator.getInstance().getWorldRenderer();

    for (int i = 0; i < this.cubeList.size(); ++i)
    {
        ((ModelBox)this.cubeList.get(i)).render(worldrenderer, scale);
    }

    GL11.glEndList();
    this.compiled = true;
}
项目:Halloween    文件:ModelRendererPyramid.java   
@SideOnly(Side.CLIENT)
private void compileDisplayList(float scale)
{
    this.displayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(this.displayList, GL11.GL_COMPILE);
    BufferBuilder bufferbuilder = Tessellator.getInstance().getBuffer();

    for (int i = 0; i < this.quadList.length; i++)
    {
        this.quadList[i].draw(bufferbuilder, scale);
    }

    GL11.glEndList();
    this.compiled = true;
}
项目:ExPetrum    文件:EntityModelDynamic.java   
private void freeGlList(ModelRenderer renderer)
{
    try
    {
        fld_displayList.setAccessible(true);
        GLAllocation.deleteDisplayLists(fld_displayList.getInt(renderer));
    }
    catch (Exception ex)
    {
        ExPMisc.modLogger.log(LogLevel.Debug, "Could not free GL mem of list for %s at %s!", ex, renderer.toString(), this.toString());
    }
}
项目:4Space-5    文件:ModelRendererGC.java   
@SideOnly(Side.CLIENT)
private void compileDisplayList(float par1)
{
    this.displayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(this.displayList, GL11.GL_COMPILE);
    Tessellator tessellator = Tessellator.instance;

    for (int i = 0; i < this.cubeList.size(); ++i)
    {
        ((ModelBox) this.cubeList.get(i)).render(tessellator, par1);
    }

    GL11.glEndList();
    this.compiled = true;
}
项目:CrystalMod    文件:ChunkRenderer.java   
public void markRemoved() {
    isRemoved = true;

    try {
        if (glRenderList != 0) {
            //System.out.println("Deleting mobile chunk display list " + glRenderList);
            GLAllocation.deleteDisplayLists(glRenderList);
            glRenderList = 0;
        }
    } catch (Exception e) {
        System.out.println("Failed to destroy mobile chunk display list");
        e.printStackTrace();
    }
}
项目:CraftStudioAPI    文件:CSModelRenderer.java   
/**
 * Compiles a GL display list for this model.
 */
public void compileDisplayList(float scale) {
    this.displayList = GLAllocation.generateDisplayLists(1);
    GlStateManager.glNewList(this.displayList, 4864);
    final VertexBuffer vertexbuffer = Tessellator.getInstance().getBuffer();

    for (int i = 0; i < this.cubeCSList.size(); ++i)
        this.cubeCSList.get(i).render(vertexbuffer, scale);

    GlStateManager.glEndList();
    this.compiled = true;
}
项目:Earth    文件:EarthMainMenuGUI.java   
@Override
public void initGui() {
    super.initGui();
    this.updateButtons = true;
    if (this.earthCompiled) {
        GLAllocation.deleteDisplayLists(this.earthList);
    }
    this.earthCompiled = false;
}
项目:FairyFactions    文件:FairyModelRenderer.java   
private void compileDisplayList(final float f)
{
    displayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(displayList, GL11.GL_COMPILE);
    final Tessellator tessellator = Tessellator.instance;

    for (int i = 0; i < faces.length; i++)
    {
        faces[i].draw(tessellator, f);
    }

    GL11.glEndList();
    compiled = true;
}
项目:PopularMMOS-EpicProportions-Mod    文件:MCAModelRenderer.java   
/**
 * Compiles a GL display list for this model.
 * EDITED VERSION BECAUSE OF THE PRIVATE FIELDS
 */
public void DDScompileDisplayList(float par1)
{
    this.DDSdisplayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(this.DDSdisplayList, GL11.GL_COMPILE);
    Tessellator tessellator = Tessellator.instance;

    for (int i = 0; i < this.cubeList.size(); ++i)
    {
        ((ModelBox)this.cubeList.get(i)).render(tessellator, par1);
    }

    GL11.glEndList();
    this.DDScompiled = true;
}
项目:Factorization    文件:ClientRenderInfo.java   
void discardList() {
    for (EntityHack hack : hacks) {
        if (hack.displayList != -1) {
            GLAllocation.deleteDisplayLists(hack.displayList);
            hack.displayList = -1;
        }
        hack.setDead();
    }
    hacks.clear();
}
项目:Factorization    文件:FigurePage.java   
int getRenderList() {
    if (display_list == -1) {
        display_list = GLAllocation.generateDisplayLists(3);
        if (display_list == -1) {
            Core.logWarning("GL display list allocation failed!");
        }
    }
    return display_list;
}
项目:Factorization    文件:FigurePage.java   
@Override
public void closed() {
    if (display_list == -1) {
        return;
    }
    GLAllocation.deleteDisplayLists(display_list);
    display_list = -1;
}
项目:Factorization    文件:FigurePage.java   
@Override
protected void finalize() throws Throwable {
    super.finalize();
    if (display_list != -1) {
        final int delete_me = display_list;
        Minecraft.getMinecraft().addScheduledTask(new Runnable() {
            @Override
            public void run() {
                GLAllocation.deleteDisplayLists(delete_me);
            }
        });
        display_list = -1;
    }
}
项目:MMDLib-old    文件:ModelRendererTurbo.java   
private void compileLegacyDisplayList (float worldScale) {
    this.displayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(this.displayList, 4864 /* GL_COMPILE */);
    final Tessellator tessellator = Tessellator.getInstance();
    for (final TexturedPolygon face : this.faces)
        face.draw(tessellator, worldScale);
    GL11.glEndList();
}
项目:justenoughdimensions    文件:SkyRenderer.java   
private void generateSky2()
{
    Tessellator tessellator = Tessellator.getInstance();
    BufferBuilder bufferBuilder = tessellator.getBuffer();

    if (this.sky2VBO != null)
    {
        this.sky2VBO.deleteGlBuffers();
    }

    if (this.glSkyList2 >= 0)
    {
        GLAllocation.deleteDisplayLists(this.glSkyList2);
        this.glSkyList2 = -1;
    }

    if (this.vboEnabled)
    {
        this.sky2VBO = new net.minecraft.client.renderer.vertex.VertexBuffer(this.vertexBufferFormat);
        this.renderSky(bufferBuilder, -16.0F, true);
        bufferBuilder.finishDrawing();
        bufferBuilder.reset();
        this.sky2VBO.bufferData(bufferBuilder.getByteBuffer());
    }
    else
    {
        this.glSkyList2 = GLAllocation.generateDisplayLists(1);
        GlStateManager.glNewList(this.glSkyList2, 4864);
        this.renderSky(bufferBuilder, -16.0F, true);
        tessellator.draw();
        GlStateManager.glEndList();
    }
}
项目:justenoughdimensions    文件:SkyRenderer.java   
private void generateSky()
{
    Tessellator tessellator = Tessellator.getInstance();
    BufferBuilder bufferBuilder = tessellator.getBuffer();

    if (this.skyVBO != null)
    {
        this.skyVBO.deleteGlBuffers();
    }

    if (this.glSkyList >= 0)
    {
        GLAllocation.deleteDisplayLists(this.glSkyList);
        this.glSkyList = -1;
    }

    if (this.vboEnabled)
    {
        this.skyVBO = new net.minecraft.client.renderer.vertex.VertexBuffer(this.vertexBufferFormat);
        this.renderSky(bufferBuilder, 16.0F, false);
        bufferBuilder.finishDrawing();
        bufferBuilder.reset();
        this.skyVBO.bufferData(bufferBuilder.getByteBuffer());
    }
    else
    {
        this.glSkyList = GLAllocation.generateDisplayLists(1);
        GlStateManager.glNewList(this.glSkyList, 4864);
        this.renderSky(bufferBuilder, 16.0F, false);
        tessellator.draw();
        GlStateManager.glEndList();
    }
}
项目:justenoughdimensions    文件:SkyRenderer.java   
private void generateStars()
{
    Tessellator tessellator = Tessellator.getInstance();
    BufferBuilder bufferBuilder = tessellator.getBuffer();

    if (this.starVBO != null)
    {
        this.starVBO.deleteGlBuffers();
    }

    if (this.starGLCallList >= 0)
    {
        GLAllocation.deleteDisplayLists(this.starGLCallList);
        this.starGLCallList = -1;
    }

    if (this.vboEnabled)
    {
        this.starVBO = new net.minecraft.client.renderer.vertex.VertexBuffer(this.vertexBufferFormat);
        this.renderStars(bufferBuilder);
        bufferBuilder.finishDrawing();
        bufferBuilder.reset();
        this.starVBO.bufferData(bufferBuilder.getByteBuffer());
    }
    else
    {
        this.starGLCallList = GLAllocation.generateDisplayLists(1);
        GlStateManager.pushMatrix();
        GlStateManager.glNewList(this.starGLCallList, 4864);
        this.renderStars(bufferBuilder);
        tessellator.draw();
        GlStateManager.glEndList();
        GlStateManager.popMatrix();
    }
}
项目:vsminecraft    文件:MekanismRenderer.java   
public static DisplayInteger createAndStart()
{
    DisplayInteger newInteger = new DisplayInteger();
    newInteger.display =  GLAllocation.generateDisplayLists(1);
    GL11.glNewList(newInteger.display, GL11.GL_COMPILE);
    return newInteger;
}
项目:It-s-About-Time-Minecraft-Mod    文件:ModelObjRenderer.java   
protected void compileDisplayList(float scale) {
    displayList = GLAllocation.generateDisplayLists(1);
    GL11.glNewList(displayList, GL11.GL_COMPILE);

    GL11.glPushMatrix();
    GL11.glScalef(0.76F, 0.76F, 0.76F);
    GL11.glRotatef(180F, 1F, 0F, 0F);
    model.renderAll();
    GL11.glPopMatrix();

    GL11.glEndList();
    compiled = true;
}