Java 类net.minecraft.client.renderer.texture.Stitcher 实例源码

项目:BaseClient    文件:ShadersTex.java   
public static void allocateTextureMap(int texID, int mipmapLevels, int width, int height, Stitcher stitcher, TextureMap tex)
{
    SMCLog.info("allocateTextureMap " + mipmapLevels + " " + width + " " + height + " ");
    updatingTextureMap = tex;
    tex.atlasWidth = width;
    tex.atlasHeight = height;
    MultiTexID multitexid = getMultiTexID(tex);
    updatingTex = multitexid;
    TextureUtil.allocateTextureImpl(multitexid.base, mipmapLevels, width, height);

    if (Shaders.configNormalMap)
    {
        TextureUtil.allocateTextureImpl(multitexid.norm, mipmapLevels, width, height);
    }

    if (Shaders.configSpecularMap)
    {
        TextureUtil.allocateTextureImpl(multitexid.spec, mipmapLevels, width, height);
    }

    GlStateManager.bindTexture(texID);
}
项目:Backmemed    文件:ShadersTex.java   
public static void allocateTextureMap(int texID, int mipmapLevels, int width, int height, Stitcher stitcher, TextureMap tex)
{
    SMCLog.info("allocateTextureMap " + mipmapLevels + " " + width + " " + height + " ");
    updatingTextureMap = tex;
    tex.atlasWidth = width;
    tex.atlasHeight = height;
    MultiTexID multitexid = getMultiTexID(tex);
    updatingTex = multitexid;
    TextureUtil.allocateTextureImpl(multitexid.base, mipmapLevels, width, height);

    if (Shaders.configNormalMap)
    {
        TextureUtil.allocateTextureImpl(multitexid.norm, mipmapLevels, width, height);
    }

    if (Shaders.configSpecularMap)
    {
        TextureUtil.allocateTextureImpl(multitexid.spec, mipmapLevels, width, height);
    }

    GlStateManager.bindTexture(texID);
}
项目:DecompiledMinecraft    文件:StitcherException.java   
public StitcherException(Stitcher.Holder p_i2344_1_, String p_i2344_2_)
{
    super(p_i2344_2_);
    this.holder = p_i2344_1_;
}
项目:BaseClient    文件:StitcherException.java   
public StitcherException(Stitcher.Holder p_i2344_1_, String p_i2344_2_)
{
    super(p_i2344_2_);
    this.holder = p_i2344_1_;
}
项目:BaseClient    文件:StitcherException.java   
public StitcherException(Stitcher.Holder p_i2344_1_, String p_i2344_2_)
{
    super(p_i2344_2_);
    this.holder = p_i2344_1_;
}
项目:Backmemed    文件:StitcherException.java   
public StitcherException(Stitcher.Holder holderIn, String message)
{
    super(message);
    this.holder = holderIn;
}
项目:CustomWorldGen    文件:StitcherException.java   
public StitcherException(Stitcher.Holder holderIn, String message)
{
    super(message);
    this.holder = holderIn;
}
项目:Resilience-Client-Source    文件:StitcherException.java   
public StitcherException(Stitcher.Holder par1StitchHolder, String par2Str)
{
    super(par2Str);
    this.field_98149_a = par1StitchHolder;
}
项目:ExpandedRailsMod    文件:StitcherException.java   
public StitcherException(Stitcher.Holder holderIn, String message)
{
    super(message);
    this.holder = holderIn;
}
项目:Cauldron    文件:StitcherException.java   
public StitcherException(Stitcher.Holder p_i2344_1_, String p_i2344_2_)
{
    super(p_i2344_2_);
    this.field_98149_a = p_i2344_1_;
}
项目:Cauldron    文件:StitcherException.java   
public StitcherException(Stitcher.Holder p_i2344_1_, String p_i2344_2_)
{
    super(p_i2344_2_);
    this.field_98149_a = p_i2344_1_;
}
项目:RuneCraftery    文件:TextureMap.java   
public void func_110571_b(ResourceManager p_110571_1_) {
   int var2 = Minecraft.func_71369_N();
   Stitcher var3 = new Stitcher(var2, var2, true);
   this.field_94252_e.clear();
   this.field_94258_i.clear();
   Iterator var4 = this.field_110574_e.entrySet().iterator();

   while(var4.hasNext()) {
      Entry var5 = (Entry)var4.next();
      ResourceLocation var6 = new ResourceLocation((String)var5.getKey());
      TextureAtlasSprite var7 = (TextureAtlasSprite)var5.getValue();
      ResourceLocation var8 = new ResourceLocation(var6.func_110624_b(), String.format("%s/%s%s", new Object[]{this.field_94254_c, var6.func_110623_a(), ".png"}));

      try {
         var7.func_130100_a(p_110571_1_.func_110536_a(var8));
      } catch (RuntimeException var13) {
         Minecraft.func_71410_x().func_98033_al().func_98232_c(String.format("Unable to parse animation metadata from %s: %s", new Object[]{var8, var13.getMessage()}));
         continue;
      } catch (IOException var14) {
         Minecraft.func_71410_x().func_98033_al().func_98232_c("Using missing texture, unable to load: " + var8);
         continue;
      }

      var3.func_110934_a(var7);
   }

   var3.func_110934_a(this.field_94249_f);

   try {
      var3.func_94305_f();
   } catch (StitcherException var12) {
      throw var12;
   }

   TextureUtil.func_110991_a(this.func_110552_b(), var3.func_110935_a(), var3.func_110936_b());
   HashMap var15 = Maps.newHashMap(this.field_110574_e);
   Iterator var16 = var3.func_94309_g().iterator();

   TextureAtlasSprite var17;
   while(var16.hasNext()) {
      var17 = (TextureAtlasSprite)var16.next();
      String var18 = var17.func_94215_i();
      var15.remove(var18);
      this.field_94252_e.put(var18, var17);

      try {
         TextureUtil.func_110998_a(var17.func_110965_a(0), var17.func_94211_a(), var17.func_94216_b(), var17.func_130010_a(), var17.func_110967_i(), false, false);
      } catch (Throwable var11) {
         CrashReport var9 = CrashReport.func_85055_a(var11, "Stitching texture atlas");
         CrashReportCategory var10 = var9.func_85058_a("Texture being stitched together");
         var10.func_71507_a("Atlas path", this.field_94254_c);
         var10.func_71507_a("Sprite", var17);
         throw new ReportedException(var9);
      }

      if(var17.func_130098_m()) {
         this.field_94258_i.add(var17);
      } else {
         var17.func_130103_l();
      }
   }

   var16 = var15.values().iterator();

   while(var16.hasNext()) {
      var17 = (TextureAtlasSprite)var16.next();
      var17.func_94217_a(this.field_94249_f);
   }

}