Cleanup
This commit is contained in:
parent
c93899931e
commit
a5d3b2cad6
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="CompilerConfiguration">
|
<component name="CompilerConfiguration">
|
||||||
<bytecodeTargetLevel target="17" />
|
<bytecodeTargetLevel target="18" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="corretto-18" project-jdk-type="JavaSDK" />
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_18" default="true" project-jdk-name="corretto-18" project-jdk-type="JavaSDK" />
|
||||||
</project>
|
</project>
|
File diff suppressed because it is too large
Load Diff
11894
javascript/classes.js
11894
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
@ -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) {
|
public void copyFrom(int par1, int par2, Texture par3Texture, boolean par4) {
|
||||||
if (this.textureTarget != 32879) {
|
if (this.textureTarget != 32879) {
|
||||||
EaglerAdapter.glBindTexture(this.textureTarget, this.glTextureId);
|
EaglerAdapter.glBindTexture(this.textureTarget, this.glTextureId);
|
||||||
|
|
|
@ -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);
|
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);
|
StitchHolder var24 = new StitchHolder(var22);
|
||||||
var21.addStitchHolder(var24);
|
var21.addStitchHolder(var24);
|
||||||
var20.put(var24, Arrays.asList(new Texture[] { var22 }));
|
var20.put(var24, Arrays.asList(var22));
|
||||||
Iterator var5 = this.textureStichedMap.keySet().iterator();
|
Iterator var5 = this.textureStichedMap.keySet().iterator();
|
||||||
|
|
||||||
while (var5.hasNext()) {
|
while (var5.hasNext()) {
|
||||||
|
@ -139,7 +139,7 @@ public class TextureMap implements IconRegister {
|
||||||
var26.copyFrom(this.missingTextureStiched);
|
var26.copyFrom(this.missingTextureStiched);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.atlasTexture.writeImage("debug.stitched_" + this.textureName + ".png");
|
//this.atlasTexture.writeImage("debug.stitched_" + this.textureName + ".png");
|
||||||
this.atlasTexture.uploadTexture();
|
this.atlasTexture.uploadTexture();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue