public void updateDynamicTextures() {
    int var1 = -1;
    Iterator var2 = this.textureList.iterator();

    while (var2.hasNext()) {
      TextureFX var3 = (TextureFX) var2.next();
      var3.anaglyphEnabled = this.options.anaglyph;
      var3.onTick();
      this.imageData.clear();
      this.imageData.put(var3.imageData);
      this.imageData.position(0).limit(var3.imageData.length);

      if (var3.iconIndex != var1) {
        var3.bindImage(this);
        var1 = var3.iconIndex;
      }

      for (int var4 = 0; var4 < var3.tileSize; ++var4) {
        for (int var5 = 0; var5 < var3.tileSize; ++var5) {
          GL11.glTexSubImage2D(
              GL11.GL_TEXTURE_2D,
              0,
              var3.iconIndex % 16 * 16 + var4 * 16,
              var3.iconIndex / 16 * 16 + var5 * 16,
              16,
              16,
              GL11.GL_RGBA,
              GL11.GL_UNSIGNED_BYTE,
              this.imageData);
        }
      }
    }
  }
예제 #2
0
  public void updateDynamicTextures() {
    int var1 = -1;

    for (int var2 = 0; var2 < this.textureList.size(); ++var2) {
      TextureFX var3 = (TextureFX) this.textureList.get(var2);
      var3.anaglyphEnabled = this.options.anaglyph;
      var3.onTick();
      var1 = this.func_82772_a(var3, var1);
    }
  }
 public void registerTextureFX(TextureFX par1TextureFX) {
   this.textureList.add(par1TextureFX);
   par1TextureFX.onTick();
 }