Java Code Examples for org.lwjgl.opengl.GL11#glCallList()
The following examples show how to use
org.lwjgl.opengl.GL11#glCallList() .
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: MobEspHack.java From ForgeWurst with GNU General Public License v3.0 | 6 votes |
private void renderBoxes(double partialTicks) { for(EntityLiving e : mobs) { GL11.glPushMatrix(); GL11.glTranslated(e.prevPosX + (e.posX - e.prevPosX) * partialTicks, e.prevPosY + (e.posY - e.prevPosY) * partialTicks, e.prevPosZ + (e.posZ - e.prevPosZ) * partialTicks); GL11.glScaled(e.width + 0.1, e.height + 0.1, e.width + 0.1); float f = WEntity.getDistance(WMinecraft.getPlayer(), e) / 20F; GL11.glColor4f(2 - f, f, 0, 0.5F); GL11.glCallList(mobBox); GL11.glPopMatrix(); } }
Example 2
Source File: PlayerEspHack.java From ForgeWurst with GNU General Public License v3.0 | 6 votes |
private void renderBoxes(double partialTicks) { for(EntityPlayer e : players) { GL11.glPushMatrix(); GL11.glTranslated(e.prevPosX + (e.posX - e.prevPosX) * partialTicks, e.prevPosY + (e.posY - e.prevPosY) * partialTicks, e.prevPosZ + (e.posZ - e.prevPosZ) * partialTicks); GL11.glScaled(e.width + 0.1, e.height + 0.1, e.width + 0.1); float f = WEntity.getDistance(WMinecraft.getPlayer(), e) / 20F; GL11.glColor4f(2 - f, f, 0, 0.5F); GL11.glCallList(playerBox); GL11.glPopMatrix(); } }
Example 3
Source File: ItemEspHack.java From ForgeWurst with GNU General Public License v3.0 | 6 votes |
private void renderBoxes(double partialTicks) { for(EntityItem e : items) { GL11.glPushMatrix(); GL11.glTranslated(e.prevPosX + (e.posX - e.prevPosX) * partialTicks, e.prevPosY + (e.posY - e.prevPosY) * partialTicks, e.prevPosZ + (e.posZ - e.prevPosZ) * partialTicks); if(style.getSelected().boxes) GL11.glCallList(itemBox); if(names.isChecked()) { ItemStack stack = WItem.getItemStack(e); EntityRenderer.drawNameplate(WMinecraft.getFontRenderer(), WItem.getStackSize(stack) + "x " + stack.getDisplayName(), 0, 1, 0, 0, mc.getRenderManager().playerViewY, mc.getRenderManager().playerViewX, mc.getRenderManager().options.thirdPersonView == 2, false); GL11.glDisable(GL11.GL_LIGHTING); } GL11.glPopMatrix(); } }
Example 4
Source File: ItemEspHack.java From Wurst7 with GNU General Public License v3.0 | 5 votes |
private void renderBoxes(double partialTicks) { double extraSize = boxSize.getSelected().extraSize; for(ItemEntity e : items) { GL11.glPushMatrix(); GL11.glTranslated(e.prevX + (e.getX() - e.prevX) * partialTicks, e.prevY + (e.getY() - e.prevY) * partialTicks, e.prevZ + (e.getZ() - e.prevZ) * partialTicks); if(style.getSelected().boxes) { GL11.glPushMatrix(); GL11.glScaled(e.getWidth() + extraSize, e.getHeight() + extraSize, e.getWidth() + extraSize); GL11.glCallList(itemBox); GL11.glPopMatrix(); } if(names.isChecked()) { // ItemStack stack = e.getStack(); // GameRenderer.renderFloatingText(MC.textRenderer, // stack.getCount() + "x " // + stack.getName().asFormattedString(), // 0, 1, 0, 0, MC.getEntityRenderManager().cameraYaw, // MC.getEntityRenderManager().cameraPitch, false); // GL11.glDisable(GL11.GL_LIGHTING); } GL11.glPopMatrix(); } }
Example 5
Source File: MobSpawnEspHack.java From ForgeWurst with GNU General Public License v3.0 | 5 votes |
@SubscribeEvent public void onRenderWorldLast(RenderWorldLastEvent event) { // GL settings GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glLineWidth(2); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glPushMatrix(); GL11.glTranslated(-TileEntityRendererDispatcher.staticPlayerX, -TileEntityRendererDispatcher.staticPlayerY, -TileEntityRendererDispatcher.staticPlayerZ); for(ChunkScanner scanner : new ArrayList<>(scanners.values())) { if(scanner.displayList == 0) continue; GL11.glCallList(scanner.displayList); } GL11.glPopMatrix(); // GL resets GL11.glColor4f(1, 1, 1, 1); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_LINE_SMOOTH); }
Example 6
Source File: XRay.java From ehacks-pro with GNU General Public License v3.0 | 5 votes |
@Override public void onWorldRender(RenderWorldLastEvent event) { if (Wrapper.INSTANCE.world() != null && displayListId != 0) { double doubleX = RenderManager.renderPosX; double doubleY = RenderManager.renderPosY; double doubleZ = RenderManager.renderPosZ; GL11.glPushMatrix(); GL11.glTranslated((-doubleX), (-doubleY), (-doubleZ)); GL11.glCallList(displayListId); GL11.glPopMatrix(); } }
Example 7
Source File: ChestEspHack.java From Wurst7 with GNU General Public License v3.0 | 5 votes |
private void renderBoxes(ArrayList<Box> boxes, int displayList) { for(Box box : boxes) { GL11.glPushMatrix(); GL11.glTranslated(box.minX, box.minY, box.minZ); GL11.glScaled(box.maxX - box.minX, box.maxY - box.minY, box.maxZ - box.minZ); GL11.glCallList(displayList); GL11.glPopMatrix(); } }
Example 8
Source File: CaveFinderHack.java From Wurst7 with GNU General Public License v3.0 | 5 votes |
@Override public void onRender(float partialTicks) { // GL settings GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glLineWidth(2); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glDisable(GL11.GL_LIGHTING); GL11.glPushMatrix(); RenderUtils.applyRenderOffset(); // generate rainbow color float x = System.currentTimeMillis() % 2000 / 1000F; float alpha = 0.25F + 0.25F * MathHelper.sin(x * (float)Math.PI); GL11.glColor4f(1, 0, 0, alpha); GL11.glBegin(GL11.GL_QUADS); GL11.glCallList(displayList); GL11.glEnd(); GL11.glPopMatrix(); // GL resets GL11.glColor4f(1, 1, 1, 1); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_LINE_SMOOTH); }
Example 9
Source File: MobSpawnEspHack.java From Wurst7 with GNU General Public License v3.0 | 5 votes |
@Override public void onRender(float partialTicks) { // GL settings GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glLineWidth(2); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glDisable(GL11.GL_LIGHTING); GL11.glPushMatrix(); RenderUtils.applyRenderOffset(); for(ChunkScanner scanner : new ArrayList<>(scanners.values())) { if(scanner.displayList == 0) continue; GL11.glCallList(scanner.displayList); } GL11.glPopMatrix(); // GL resets GL11.glColor4f(1, 1, 1, 1); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_LINE_SMOOTH); }
Example 10
Source File: DisplayListWrapper.java From OpenModsLib with MIT License | 5 votes |
public void render() { if (pendingInvalidate) reset(); if (!isValid) { displayList = GL11.glGenLists(1); GL11.glNewList(displayList, GL11.GL_COMPILE); compile(); GL11.glEndList(); isValid = true; } GL11.glCallList(displayList); }
Example 11
Source File: SearchHack.java From Wurst7 with GNU General Public License v3.0 | 5 votes |
@Override public void onRender(float partialTicks) { // GL settings GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glLineWidth(2); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glDisable(GL11.GL_LIGHTING); GL11.glPushMatrix(); RenderUtils.applyRenderOffset(); // generate rainbow color float x = System.currentTimeMillis() % 2000 / 1000F; float red = 0.5F + 0.5F * MathHelper.sin(x * (float)Math.PI); float green = 0.5F + 0.5F * MathHelper.sin((x + 4F / 3F) * (float)Math.PI); float blue = 0.5F + 0.5F * MathHelper.sin((x + 8F / 3F) * (float)Math.PI); GL11.glColor4f(red, green, blue, 0.5F); GL11.glBegin(GL11.GL_QUADS); GL11.glCallList(displayList); GL11.glEnd(); GL11.glPopMatrix(); // GL resets GL11.glColor4f(1, 1, 1, 1); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_LINE_SMOOTH); }
Example 12
Source File: ImmediateModeOGLRenderer.java From slick2d-maven with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** * @see org.newdawn.slick.opengl.renderer.SGL#glCallList(int) */ public void glCallList(int id) { GL11.glCallList(id); }
Example 13
Source File: ChestEspHack.java From Wurst7 with GNU General Public License v3.0 | 4 votes |
@Override public void onRender(float partialTicks) { // GL settings GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glLineWidth(2); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glDisable(GL11.GL_LIGHTING); GL11.glPushMatrix(); RenderUtils.applyRenderOffset(); ArrayList<Box> minecartBoxes = calculateMinecartBoxes(partialTicks); if(style.getSelected().boxes) { GL11.glCallList(normalChests); renderBoxes(minecartBoxes, greenBox); } if(style.getSelected().lines) { Vec3d start = RotationUtils.getClientLookVec() .add(RenderUtils.getCameraPos()); GL11.glBegin(GL11.GL_LINES); GL11.glColor4f(0, 1, 0, 0.5F); renderLines(start, basicChests); renderLines(start, minecartBoxes); GL11.glColor4f(1, 0.5F, 0, 0.5F); renderLines(start, trappedChests); GL11.glColor4f(0, 1, 1, 0.5F); renderLines(start, enderChests); GL11.glColor4f(1, 0, 1, 0.5F); renderLines(start, shulkerBoxes); GL11.glEnd(); } GL11.glPopMatrix(); // GL resets GL11.glColor4f(1, 1, 1, 1); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_LINE_SMOOTH); }
Example 14
Source File: Model.java From pycode-minecraft with MIT License | 4 votes |
public void render() { GL11.glCallList(this.glList); }
Example 15
Source File: TunnellerHack.java From Wurst7 with GNU General Public License v3.0 | 4 votes |
@Override public void onRender(float partialTicks) { // GL settings GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glLineWidth(2); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glDisable(GL11.GL_LIGHTING); GL11.glPushMatrix(); RenderUtils.applyRenderOffset(); for(int displayList : displayLists) GL11.glCallList(displayList); if(currentBlock != null) { float p = prevProgress + (progress - prevProgress) * partialTicks; float red = p * 2F; float green = 2 - red; GL11.glTranslated(currentBlock.getX(), currentBlock.getY(), currentBlock.getZ()); if(p < 1) { GL11.glTranslated(0.5, 0.5, 0.5); GL11.glScaled(p, p, p); GL11.glTranslated(-0.5, -0.5, -0.5); } Box box2 = new Box(BlockPos.ORIGIN); GL11.glColor4f(red, green, 0, 0.25F); RenderUtils.drawSolidBox(box2); GL11.glColor4f(red, green, 0, 0.5F); RenderUtils.drawOutlinedBox(box2); } GL11.glPopMatrix(); // GL resets GL11.glColor4f(1, 1, 1, 1); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_LINE_SMOOTH); }
Example 16
Source File: AutoFishHack.java From ForgeWurst with GNU General Public License v3.0 | 4 votes |
@SubscribeEvent public void onRenderWorldLast(RenderWorldLastEvent event) { if(!debugDraw.isChecked()) return; // GL settings GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glLineWidth(2); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glPushMatrix(); GL11.glTranslated(-TileEntityRendererDispatcher.staticPlayerX, -TileEntityRendererDispatcher.staticPlayerY, -TileEntityRendererDispatcher.staticPlayerZ); EntityFishHook bobber = WMinecraft.getPlayer().fishEntity; if(bobber != null) { GL11.glPushMatrix(); GL11.glTranslated(bobber.posX, bobber.posY, bobber.posZ); GL11.glCallList(box); GL11.glPopMatrix(); } if(lastSoundPos != null) { GL11.glPushMatrix(); GL11.glTranslated(WVec3d.getX(lastSoundPos), WVec3d.getY(lastSoundPos), WVec3d.getZ(lastSoundPos)); GL11.glCallList(cross); GL11.glPopMatrix(); } GL11.glPopMatrix(); // GL resets GL11.glColor4f(1, 1, 1, 1); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_LINE_SMOOTH); }
Example 17
Source File: TunnellerHack.java From ForgeWurst with GNU General Public License v3.0 | 4 votes |
@SubscribeEvent public void onRenderWorldLast(RenderWorldLastEvent event) { // GL settings GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glLineWidth(2); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glPushMatrix(); GL11.glTranslated(-TileEntityRendererDispatcher.staticPlayerX, -TileEntityRendererDispatcher.staticPlayerY, -TileEntityRendererDispatcher.staticPlayerZ); for(int displayList : displayLists) GL11.glCallList(displayList); if(currentBlock != null) { float p = prevProgress + (progress - prevProgress) * event.getPartialTicks(); float red = p * 2F; float green = 2 - red; GL11.glTranslated(currentBlock.getX(), currentBlock.getY(), currentBlock.getZ()); if(p < 1) { GL11.glTranslated(0.5, 0.5, 0.5); GL11.glScaled(p, p, p); GL11.glTranslated(-0.5, -0.5, -0.5); } AxisAlignedBB box2 = new AxisAlignedBB(BlockPos.ORIGIN); GL11.glColor4f(red, green, 0, 0.25F); GL11.glBegin(GL11.GL_QUADS); RenderUtils.drawSolidBox(box2); GL11.glEnd(); GL11.glColor4f(red, green, 0, 0.5F); GL11.glBegin(GL11.GL_LINES); RenderUtils.drawOutlinedBox(box2); GL11.glEnd(); } GL11.glPopMatrix(); // GL resets GL11.glColor4f(1, 1, 1, 1); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_LINE_SMOOTH); }
Example 18
Source File: FreecamHack.java From Wurst7 with GNU General Public License v3.0 | 4 votes |
@Override public void onRender(float partialTicks) { if(fakePlayer == null || !tracer.isChecked()) return; // GL settings GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glLineWidth(2); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glDisable(GL11.GL_LIGHTING); GL11.glPushMatrix(); RenderUtils.applyRenderOffset(); GL11.glColor4f(1, 1, 1, 0.5F); // box GL11.glPushMatrix(); GL11.glTranslated(fakePlayer.getX(), fakePlayer.getY(), fakePlayer.getZ()); GL11.glScaled(fakePlayer.getWidth() + 0.1, fakePlayer.getHeight() + 0.1, fakePlayer.getWidth() + 0.1); GL11.glCallList(playerBox); GL11.glPopMatrix(); // line Vec3d start = RotationUtils.getClientLookVec().add(RenderUtils.getCameraPos()); Vec3d end = fakePlayer.getBoundingBox().getCenter(); GL11.glBegin(GL11.GL_LINES); GL11.glVertex3d(start.x, start.y, start.z); GL11.glVertex3d(end.x, end.y, end.z); GL11.glEnd(); GL11.glPopMatrix(); // GL resets GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_LINE_SMOOTH); }
Example 19
Source File: ChestEspHack.java From ForgeWurst with GNU General Public License v3.0 | 4 votes |
@SubscribeEvent public void onRenderWorldLast(RenderWorldLastEvent event) { // GL settings GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glLineWidth(2); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glPushMatrix(); GL11.glTranslated(-TileEntityRendererDispatcher.staticPlayerX, -TileEntityRendererDispatcher.staticPlayerY, -TileEntityRendererDispatcher.staticPlayerZ); // minecart interpolation double partialTicks = event.getPartialTicks(); ArrayList<AxisAlignedBB> minecartBoxes = new ArrayList<>(minecarts.size()); minecarts.forEach(e -> { double offsetX = -(e.posX - e.lastTickPosX) + (e.posX - e.lastTickPosX) * partialTicks; double offsetY = -(e.posY - e.lastTickPosY) + (e.posY - e.lastTickPosY) * partialTicks; double offsetZ = -(e.posZ - e.lastTickPosZ) + (e.posZ - e.lastTickPosZ) * partialTicks; minecartBoxes.add( e.getRenderBoundingBox().offset(offsetX, offsetY, offsetZ)); }); if(style.getSelected().boxes) { GL11.glCallList(normalChests); renderBoxes(minecartBoxes, greenBox); } if(style.getSelected().lines) { Vec3d start = RotationUtils.getClientLookVec() .addVector(0, WMinecraft.getPlayer().getEyeHeight(), 0) .addVector(TileEntityRendererDispatcher.staticPlayerX, TileEntityRendererDispatcher.staticPlayerY, TileEntityRendererDispatcher.staticPlayerZ); GL11.glBegin(GL11.GL_LINES); GL11.glColor4f(0, 1, 0, 0.5F); renderLines(start, basicChests); renderLines(start, minecartBoxes); GL11.glColor4f(1, 0.5F, 0, 0.5F); renderLines(start, trappedChests); GL11.glColor4f(0, 1, 1, 0.5F); renderLines(start, enderChests); GL11.glEnd(); } GL11.glPopMatrix(); // GL resets GL11.glColor4f(1, 1, 1, 1); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_LINE_SMOOTH); }
Example 20
Source File: AutoFarmHack.java From Wurst7 with GNU General Public License v3.0 | 4 votes |
@Override public void onRender(float partialTicks) { // GL settings GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glEnable(GL11.GL_LINE_SMOOTH); GL11.glLineWidth(2); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glDisable(GL11.GL_LIGHTING); GL11.glPushMatrix(); RenderUtils.applyRenderOffset(); GL11.glCallList(displayList); if(currentBlock != null) { GL11.glPushMatrix(); Box box = new Box(BlockPos.ORIGIN); float p = prevProgress + (progress - prevProgress) * partialTicks; float red = p * 2F; float green = 2 - red; GL11.glTranslated(currentBlock.getX(), currentBlock.getY(), currentBlock.getZ()); if(p < 1) { GL11.glTranslated(0.5, 0.5, 0.5); GL11.glScaled(p, p, p); GL11.glTranslated(-0.5, -0.5, -0.5); } GL11.glColor4f(red, green, 0, 0.25F); RenderUtils.drawSolidBox(box); GL11.glColor4f(red, green, 0, 0.5F); RenderUtils.drawOutlinedBox(box); GL11.glPopMatrix(); } GL11.glPopMatrix(); // GL resets GL11.glColor4f(1, 1, 1, 1); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_LINE_SMOOTH); }