This commit is contained in:
catfoolyou
2025-03-15 14:55:04 -04:00
parent c93899931e
commit a5d3b2cad6
9 changed files with 11899 additions and 11933 deletions

View File

@@ -136,36 +136,6 @@ public class Texture {
}
}
public void writeImage(String par1Str) {
/*
BufferedImage var2 = new BufferedImage(this.width, this.height, 2);
ByteBuffer var3 = this.getTextureData();
byte[] var4 = new byte[this.width * this.height * 4];
var3.position(0);
var3.get(var4);
for (int var5 = 0; var5 < this.width; ++var5) {
for (int var6 = 0; var6 < this.height; ++var6) {
int var7 = var6 * this.width * 4 + var5 * 4;
byte var8 = 0;
int var10 = var8 | (var4[var7 + 2] & 255) << 0;
var10 |= (var4[var7 + 1] & 255) << 8;
var10 |= (var4[var7 + 0] & 255) << 16;
var10 |= (var4[var7 + 3] & 255) << 24;
var2.setRGB(var5, var6, var10);
}
}
this.textureData.position(this.width * this.height * 4);
try {
ImageIO.write(var2, "png", new File(Minecraft.getMinecraftDir(), par1Str));
} catch (IOException var9) {
var9.printStackTrace();
}
*/
}
public void copyFrom(int par1, int par2, Texture par3Texture, boolean par4) {
if (this.textureTarget != 32879) {
EaglerAdapter.glBindTexture(this.textureTarget, this.glTextureId);

View File

@@ -69,7 +69,7 @@ public class TextureMap implements IconRegister {
Texture var22 = TextureManager.instance().makeTexture("missingno", 2, this.missingImage.w, this.missingImage.h, EaglerAdapter.GL_CLAMP, EaglerAdapter.GL_RGBA, EaglerAdapter.GL_NEAREST, EaglerAdapter.GL_NEAREST, false, this.missingImage);
StitchHolder var24 = new StitchHolder(var22);
var21.addStitchHolder(var24);
var20.put(var24, Arrays.asList(new Texture[] { var22 }));
var20.put(var24, Arrays.asList(var22));
Iterator var5 = this.textureStichedMap.keySet().iterator();
while (var5.hasNext()) {
@@ -139,7 +139,7 @@ public class TextureMap implements IconRegister {
var26.copyFrom(this.missingTextureStiched);
}
this.atlasTexture.writeImage("debug.stitched_" + this.textureName + ".png");
//this.atlasTexture.writeImage("debug.stitched_" + this.textureName + ".png");
this.atlasTexture.uploadTexture();
}