Stitcher.java 文件源码

java
阅读 15 收藏 0 点赞 0 评论 0

项目:BaseClient 作者:
public void doStitch()
{
    Stitcher.Holder[] astitcher$holder = (Stitcher.Holder[])((Stitcher.Holder[])this.setStitchHolders.toArray(new Stitcher.Holder[this.setStitchHolders.size()]));
    Arrays.sort((Object[])astitcher$holder);

    for (Stitcher.Holder stitcher$holder : astitcher$holder)
    {
        if (!this.allocateSlot(stitcher$holder))
        {
            String s = String.format("Unable to fit: %s, size: %dx%d, atlas: %dx%d, atlasMax: %dx%d - Maybe try a lower resolution resourcepack?", new Object[] {stitcher$holder.getAtlasSprite().getIconName(), Integer.valueOf(stitcher$holder.getAtlasSprite().getIconWidth()), Integer.valueOf(stitcher$holder.getAtlasSprite().getIconHeight()), Integer.valueOf(this.currentWidth), Integer.valueOf(this.currentHeight), Integer.valueOf(this.maxWidth), Integer.valueOf(this.maxHeight)});
            throw new StitcherException(stitcher$holder, s);
        }
    }

    if (this.forcePowerOf2)
    {
        this.currentWidth = MathHelper.roundUpToPowerOfTwo(this.currentWidth);
        this.currentHeight = MathHelper.roundUpToPowerOfTwo(this.currentHeight);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号