Java Code Examples for net.minecraft.client.renderer.GlStateManager#callList()
The following examples show how to use
net.minecraft.client.renderer.GlStateManager#callList() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RenderAltar.java From CommunityMod with GNU Lesser General Public License v2.1 | 6 votes |
private void renderShockwave(int progress, int totalProgress, double x, double y, double z) { if (totalProgress == 0) return; double scale = progress * SHOCKWAVE_DIAMETER / (float) totalProgress; GlStateManager.pushMatrix(); GlStateManager.translate(x + 0.5, y + 1, z + 0.5); GlStateManager.scale(scale, scale, scale); GlStateManager.enableBlend(); GlStateManager.depthMask(false); GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GlStateManager.color(1F, 1F, 1F, 1 - progress / (float) totalProgress); GlStateManager.enableAlpha(); GlStateManager.callList(ClientProxy.sphereOutId); GlStateManager.callList(ClientProxy.sphereInId); GlStateManager.popMatrix(); }
Example 2
Source File: RenderListSchematic.java From litematica with GNU Lesser General Public License v3.0 | 6 votes |
@Override public void renderChunkLayer(BlockRenderLayer layer) { if (this.initialized) { for (RenderChunk renderChunk : this.renderChunks) { RenderChunkSchematicList listedrenderchunk = (RenderChunkSchematicList) renderChunk; GlStateManager.pushMatrix(); this.preRenderChunk(renderChunk); GlStateManager.callList(listedrenderchunk.getDisplayList(layer, listedrenderchunk.getChunkRenderData())); GlStateManager.popMatrix(); } GlStateManager.resetColor(); this.renderChunks.clear(); } }
Example 3
Source File: RenderListSchematic.java From litematica with GNU Lesser General Public License v3.0 | 6 votes |
@Override public void renderBlockOverlays(OverlayRenderType type) { if (this.initialized) { for (RenderChunkSchematicVbo renderChunk : this.overlayRenderChunks) { RenderChunkSchematicList listedRenderChunk = (RenderChunkSchematicList) renderChunk; GlStateManager.pushMatrix(); this.preRenderChunk(renderChunk); GlStateManager.callList(listedRenderChunk.getOverlayDisplayList(type, listedRenderChunk.getChunkRenderData())); GlStateManager.popMatrix(); } GlStateManager.resetColor(); this.overlayRenderChunks.clear(); } }
Example 4
Source File: WrapperGlStateManager.java From ClientBase with MIT License | 4 votes |
public static void callList(int var0) { GlStateManager.callList(var0); }
Example 5
Source File: TcModelRenderer.java From TofuCraftReload with MIT License | 3 votes |
public void renderDirectly() { if (!this.compiled) { this.compileDisplayPane(); } GlStateManager.pushMatrix(); GlStateManager.callList(this.displayList); GlStateManager.popMatrix(); }