ModelRenderer.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:CustomWorldGen 作者:
/**
 * 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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号