001 package net.minecraft.src;
002
003 import cpw.mods.fml.common.Side;
004 import cpw.mods.fml.common.asm.SideOnly;
005 import org.lwjgl.opengl.GL11;
006
007 @SideOnly(Side.CLIENT)
008 public class TextureFX
009 {
010 public byte[] imageData = new byte[1024];
011 public int iconIndex;
012 public boolean anaglyphEnabled = false;
013
014 /** Texture ID */
015 public int textureId = 0;
016 public int tileSize = 1;
017 public int tileImage = 0;
018
019 public TextureFX(int par1)
020 {
021 this.iconIndex = par1;
022 }
023
024 public void onTick() {}
025
026 public void bindImage(RenderEngine par1RenderEngine)
027 {
028 if (this.tileImage == 0)
029 {
030 GL11.glBindTexture(GL11.GL_TEXTURE_2D, par1RenderEngine.getTexture("/terrain.png"));
031 }
032 else if (this.tileImage == 1)
033 {
034 GL11.glBindTexture(GL11.GL_TEXTURE_2D, par1RenderEngine.getTexture("/gui/items.png"));
035 }
036 }
037 }