public RenderGlobal(Minecraft mcIn) { this.mc = mcIn; this.renderManager = mcIn.getRenderManager(); this.renderEngine = mcIn.getTextureManager(); this.renderEngine.bindTexture(locationForcefieldPng); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_REPEAT); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_REPEAT); GlStateManager.bindTexture(0); this.updateDestroyBlockIcons(); this.vboEnabled = OpenGlHelper.useVbo(); if (this.vboEnabled) { this.renderContainer = new VboRenderList(); this.renderChunkFactory = new VboChunkFactory(); } else { this.renderContainer = new RenderList(); this.renderChunkFactory = new ListChunkFactory(); } this.vertexBufferFormat = new VertexFormat(); this.vertexBufferFormat.func_181721_a(new VertexFormatElement(0, VertexFormatElement.EnumType.FLOAT, VertexFormatElement.EnumUsage.POSITION, 3)); this.generateStars(); this.generateSky(); this.generateSky2(); }
public RenderGlobal(Minecraft mcIn) { this.cloudRenderer = new CloudRenderer(mcIn); this.mc = mcIn; this.renderManager = mcIn.getRenderManager(); this.renderEngine = mcIn.getTextureManager(); this.renderEngine.bindTexture(locationForcefieldPng); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_REPEAT); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_REPEAT); GlStateManager.bindTexture(0); this.updateDestroyBlockIcons(); this.vboEnabled = OpenGlHelper.useVbo(); if (this.vboEnabled) { this.renderContainer = new VboRenderList(); this.renderChunkFactory = new VboChunkFactory(); } else { this.renderContainer = new RenderList(); this.renderChunkFactory = new ListChunkFactory(); } this.vertexBufferFormat = new VertexFormat(); this.vertexBufferFormat.func_181721_a(new VertexFormatElement(0, VertexFormatElement.EnumType.FLOAT, VertexFormatElement.EnumUsage.POSITION, 3)); this.generateStars(); this.generateSky(); this.generateSky2(); }
public RenderGlobal(Minecraft mcIn) { this.renderEnv = new RenderEnv(this.theWorld, Blocks.AIR.getDefaultState(), new BlockPos(0, 0, 0)); this.renderOverlayDamaged = false; this.renderOverlayEyes = false; this.cloudRenderer = new CloudRenderer(mcIn); this.mc = mcIn; this.renderManager = mcIn.getRenderManager(); this.renderEngine = mcIn.getTextureManager(); this.renderEngine.bindTexture(FORCEFIELD_TEXTURES); GlStateManager.glTexParameteri(3553, 10242, 10497); GlStateManager.glTexParameteri(3553, 10243, 10497); GlStateManager.bindTexture(0); this.updateDestroyBlockIcons(); this.vboEnabled = OpenGlHelper.useVbo(); if (this.vboEnabled) { this.renderContainer = new VboRenderList(); this.renderChunkFactory = new VboChunkFactory(); } else { this.renderContainer = new RenderList(); this.renderChunkFactory = new ListChunkFactory(); } this.vertexBufferFormat = new VertexFormat(); this.vertexBufferFormat.addElement(new VertexFormatElement(0, VertexFormatElement.EnumType.FLOAT, VertexFormatElement.EnumUsage.POSITION, 3)); this.generateStars(); this.generateSky(); this.generateSky2(); }
public RenderGlobal(Minecraft mcIn) { this.mc = mcIn; this.renderManager = mcIn.getRenderManager(); this.renderEngine = mcIn.getTextureManager(); this.renderEngine.bindTexture(FORCEFIELD_TEXTURES); GlStateManager.glTexParameteri(3553, 10242, 10497); GlStateManager.glTexParameteri(3553, 10243, 10497); GlStateManager.bindTexture(0); this.updateDestroyBlockIcons(); this.vboEnabled = OpenGlHelper.useVbo(); if (this.vboEnabled) { this.renderContainer = new VboRenderList(); this.renderChunkFactory = new VboChunkFactory(); } else { this.renderContainer = new RenderList(); this.renderChunkFactory = new ListChunkFactory(); } this.vertexBufferFormat = new VertexFormat(); this.vertexBufferFormat.addElement(new VertexFormatElement(0, VertexFormatElement.EnumType.FLOAT, VertexFormatElement.EnumUsage.POSITION, 3)); this.generateStars(); this.generateSky(); this.generateSky2(); }
/** * Loads all the renderers and sets up the basic settings usage */ public void loadRenderers() { if (this.theWorld != null) { this.displayListEntitiesDirty = true; Blocks.leaves.setGraphicsLevel(this.mc.gameSettings.fancyGraphics); Blocks.leaves2.setGraphicsLevel(this.mc.gameSettings.fancyGraphics); this.renderDistanceChunks = this.mc.gameSettings.renderDistanceChunks; boolean flag = this.vboEnabled; this.vboEnabled = OpenGlHelper.useVbo(); if (flag && !this.vboEnabled) { this.renderContainer = new RenderList(); this.renderChunkFactory = new ListChunkFactory(); } else if (!flag && this.vboEnabled) { this.renderContainer = new VboRenderList(); this.renderChunkFactory = new VboChunkFactory(); } if (flag != this.vboEnabled) { this.generateStars(); this.generateSky(); this.generateSky2(); } if (this.viewFrustum != null) { this.viewFrustum.deleteGlResources(); } this.stopChunkUpdates(); synchronized (this.field_181024_n) { this.field_181024_n.clear(); } this.viewFrustum = new ViewFrustum(this.theWorld, this.mc.gameSettings.renderDistanceChunks, this, this.renderChunkFactory); if (this.theWorld != null) { Entity entity = this.mc.getRenderViewEntity(); if (entity != null) { this.viewFrustum.updateChunkPositions(entity.posX, entity.posZ); } } this.renderEntitiesStartupCounter = 2; } }
/** * Loads all the renderers and sets up the basic settings usage */ public void loadRenderers() { if (this.theWorld != null) { this.displayListEntitiesDirty = true; Blocks.leaves.setGraphicsLevel(Config.isTreesFancy()); Blocks.leaves2.setGraphicsLevel(Config.isTreesFancy()); BlockModelRenderer.updateAoLightValue(); if (Config.isDynamicLights()) { DynamicLights.clear(); } this.renderDistanceChunks = this.mc.gameSettings.renderDistanceChunks; this.renderDistance = this.renderDistanceChunks * 16; this.renderDistanceSq = this.renderDistance * this.renderDistance; boolean flag = this.vboEnabled; this.vboEnabled = OpenGlHelper.useVbo(); if (flag && !this.vboEnabled) { this.renderContainer = new RenderList(); this.renderChunkFactory = new ListChunkFactory(); } else if (!flag && this.vboEnabled) { this.renderContainer = new VboRenderList(); this.renderChunkFactory = new VboChunkFactory(); } if (flag != this.vboEnabled) { this.generateStars(); this.generateSky(); this.generateSky2(); } if (this.viewFrustum != null) { this.viewFrustum.deleteGlResources(); } this.stopChunkUpdates(); Set var5 = this.field_181024_n; synchronized (this.field_181024_n) { this.field_181024_n.clear(); } this.viewFrustum = new ViewFrustum(this.theWorld, this.mc.gameSettings.renderDistanceChunks, this, this.renderChunkFactory); if (this.theWorld != null) { Entity entity = this.mc.getRenderViewEntity(); if (entity != null) { this.viewFrustum.updateChunkPositions(entity.posX, entity.posZ); } } this.renderEntitiesStartupCounter = 2; } }
/** * Loads all the renderers and sets up the basic settings usage */ public void loadRenderers() { if (this.theWorld != null) { this.displayListEntitiesDirty = true; Blocks.leaves.setGraphicsLevel(Config.isTreesFancy()); Blocks.leaves2.setGraphicsLevel(Config.isTreesFancy()); BlockModelRenderer.updateAoLightValue(); this.renderDistanceChunks = this.mc.gameSettings.renderDistanceChunks; this.renderDistance = this.renderDistanceChunks * 16; this.renderDistanceSq = this.renderDistance * this.renderDistance; boolean flag = this.vboEnabled; this.vboEnabled = OpenGlHelper.useVbo(); if (flag && !this.vboEnabled) { this.renderContainer = new RenderList(); this.renderChunkFactory = new ListChunkFactory(); } else if (!flag && this.vboEnabled) { this.renderContainer = new VboRenderList(); this.renderChunkFactory = new VboChunkFactory(); } if (flag != this.vboEnabled) { this.generateStars(); this.generateSky(); this.generateSky2(); } if (this.viewFrustum != null) { this.viewFrustum.deleteGlResources(); } this.stopChunkUpdates(); Set var5 = this.field_181024_n; synchronized (this.field_181024_n) { this.field_181024_n.clear(); } this.viewFrustum = new ViewFrustum(this.theWorld, this.mc.gameSettings.renderDistanceChunks, this, this.renderChunkFactory); if (this.theWorld != null) { Entity entity = this.mc.getRenderViewEntity(); if (entity != null) { this.viewFrustum.updateChunkPositions(entity.posX, entity.posZ); } } this.renderEntitiesStartupCounter = 2; } }
/** * Loads all the renderers and sets up the basic settings usage */ public void loadRenderers() { if (this.theWorld != null) { if (this.renderDispatcher == null) { this.renderDispatcher = new ChunkRenderDispatcher(); } this.displayListEntitiesDirty = true; Blocks.LEAVES.setGraphicsLevel(Config.isTreesFancy()); Blocks.LEAVES2.setGraphicsLevel(Config.isTreesFancy()); BlockModelRenderer.updateAoLightValue(); renderInfoCache.clear(); if (Config.isDynamicLights()) { DynamicLights.clear(); } this.renderDistanceChunks = this.mc.gameSettings.renderDistanceChunks; this.renderDistance = this.renderDistanceChunks * 16; this.renderDistanceSq = this.renderDistance * this.renderDistance; boolean flag = this.vboEnabled; this.vboEnabled = OpenGlHelper.useVbo(); if (flag && !this.vboEnabled) { this.renderContainer = new RenderList(); this.renderChunkFactory = new ListChunkFactory(); } else if (!flag && this.vboEnabled) { this.renderContainer = new VboRenderList(); this.renderChunkFactory = new VboChunkFactory(); } if (flag != this.vboEnabled) { this.generateStars(); this.generateSky(); this.generateSky2(); } if (this.viewFrustum != null) { this.viewFrustum.deleteGlResources(); } this.stopChunkUpdates(); synchronized (this.setTileEntities) { this.setTileEntities.clear(); } this.viewFrustum = new ViewFrustum(this.theWorld, this.mc.gameSettings.renderDistanceChunks, this, this.renderChunkFactory); if (this.theWorld != null) { Entity entity = this.mc.getRenderViewEntity(); if (entity != null) { this.viewFrustum.updateChunkPositions(entity.posX, entity.posZ); } } this.renderEntitiesStartupCounter = 2; } }
/** * Loads all the renderers and sets up the basic settings usage */ public void loadRenderers() { if (this.theWorld != null) { if (this.renderDispatcher == null) { this.renderDispatcher = new ChunkRenderDispatcher(); } this.displayListEntitiesDirty = true; Blocks.LEAVES.setGraphicsLevel(this.mc.gameSettings.fancyGraphics); Blocks.LEAVES2.setGraphicsLevel(this.mc.gameSettings.fancyGraphics); this.renderDistanceChunks = this.mc.gameSettings.renderDistanceChunks; boolean flag = this.vboEnabled; this.vboEnabled = OpenGlHelper.useVbo(); if (flag && !this.vboEnabled) { this.renderContainer = new RenderList(); this.renderChunkFactory = new ListChunkFactory(); } else if (!flag && this.vboEnabled) { this.renderContainer = new VboRenderList(); this.renderChunkFactory = new VboChunkFactory(); } if (flag != this.vboEnabled) { this.generateStars(); this.generateSky(); this.generateSky2(); } if (this.viewFrustum != null) { this.viewFrustum.deleteGlResources(); } this.stopChunkUpdates(); synchronized (this.setTileEntities) { this.setTileEntities.clear(); } this.viewFrustum = new ViewFrustum(this.theWorld, this.mc.gameSettings.renderDistanceChunks, this, this.renderChunkFactory); if (this.theWorld != null) { Entity entity = this.mc.getRenderViewEntity(); if (entity != null) { this.viewFrustum.updateChunkPositions(entity.posX, entity.posZ); } } this.renderEntitiesStartupCounter = 2; } }