public void renderChunkLayer(EnumWorldBlockLayer layer) { if (this.initialized) { for (RenderChunk renderchunk : this.renderChunks) { ListedRenderChunk listedrenderchunk = (ListedRenderChunk)renderchunk; GlStateManager.pushMatrix(); this.preRenderChunk(renderchunk); GL11.glCallList(listedrenderchunk.getDisplayList(layer, listedrenderchunk.getCompiledChunk())); GlStateManager.popMatrix(); } GlStateManager.resetColor(); this.renderChunks.clear(); } }
public void renderChunkLayer(BlockRenderLayer layer) { if (this.initialized) { for (RenderChunk renderchunk : this.renderChunks) { ListedRenderChunk listedrenderchunk = (ListedRenderChunk)renderchunk; GlStateManager.pushMatrix(); this.preRenderChunk(renderchunk); GlStateManager.callList(listedrenderchunk.getDisplayList(layer, listedrenderchunk.getCompiledChunk())); GlStateManager.popMatrix(); } GlStateManager.resetColor(); this.renderChunks.clear(); } }
public void renderChunkLayer(EnumWorldBlockLayer layer) { if (this.initialized) { if (this.renderChunks.size() == 0) { return; } for (RenderChunk renderchunk : this.renderChunks) { ListedRenderChunk listedrenderchunk = (ListedRenderChunk)renderchunk; GlStateManager.pushMatrix(); this.preRenderChunk(renderchunk); GL11.glCallList(listedrenderchunk.getDisplayList(layer, listedrenderchunk.getCompiledChunk())); GlStateManager.popMatrix(); } if (Config.isMultiTexture()) { GlStateManager.bindCurrentTexture(); } GlStateManager.resetColor(); this.renderChunks.clear(); } }
public void renderChunkLayer(BlockRenderLayer layer) { if (this.initialized) { if (this.renderChunks.size() == 0) { return; } for (RenderChunk renderchunk : this.renderChunks) { ListedRenderChunk listedrenderchunk = (ListedRenderChunk)renderchunk; GlStateManager.pushMatrix(); this.preRenderChunk(renderchunk); GlStateManager.callList(listedrenderchunk.getDisplayList(layer, listedrenderchunk.getCompiledChunk())); GlStateManager.popMatrix(); } if (Config.isMultiTexture()) { GlStateManager.bindCurrentTexture(); } GlStateManager.resetColor(); this.renderChunks.clear(); } }
private void updateFrustrum(Point3d untransformed, int viewDistance, boolean vbos) { if (this.viewDistance != viewDistance || this.vbosEnabled != vbos) { this.viewDistance = viewDistance; this.vbosEnabled = vbos; if (this.viewFrustum != null) { this.viewFrustum.delete(); } this.displayListEntitiesDirty = true; this.chunkRenderInformation.clear(); this.queuedChunkUpdates.clear(); this.viewFrustum = new BlockSystemViewFrustum(this, this.blockSystem, viewDistance, this, vbos ? RenderChunk::new : ListedRenderChunk::new); this.viewFrustum.updateChunkPositions(untransformed.x, untransformed.z); } }