Beispiel #1
0
            /**
             * Compiles a GL display list for this model
             */
            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;
            }