rt4-client/client/src/main/java/Class3_Sub2_Sub18.java
2022-04-19 18:52:30 -04:00

62 lines
2.2 KiB
Java

import java.nio.ByteBuffer;
import javax.media.opengl.GL;
import org.openrs2.deob.annotation.OriginalArg;
import org.openrs2.deob.annotation.OriginalClass;
import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
@OriginalClass("client!sd")
public final class Class3_Sub2_Sub18 extends SecondaryNode {
@OriginalMember(owner = "client!sd", name = "U", descriptor = "I")
private int anInt5065 = 0;
@OriginalMember(owner = "client!sd", name = "K", descriptor = "I")
private int anInt5058 = -1;
@OriginalMember(owner = "client!sd", name = "L", descriptor = "I")
private final int anInt5059;
@OriginalMember(owner = "client!sd", name = "<init>", descriptor = "(I)V")
public Class3_Sub2_Sub18(@OriginalArg(0) int arg0) {
@Pc(9) GL local9 = Static239.aGL1;
@Pc(12) int[] local12 = new int[1];
local9.glGenTextures(1, local12, 0);
this.anInt5058 = local12[0];
this.anInt5059 = Static63.anInt1943;
Static239.method4177(this.anInt5058);
@Pc(32) int local32 = Rasteriser.anIntArray220[arg0];
@Pc(58) byte[] local58 = new byte[] { (byte) (local32 >> 16), (byte) (local32 >> 8), (byte) local32, -1 };
@Pc(61) ByteBuffer local61 = ByteBuffer.wrap(local58);
local9.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, 1, 1, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, local61);
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
Static63.anInt1942 += local61.limit() - this.anInt5065;
this.anInt5065 = local61.limit();
}
@OriginalMember(owner = "client!sd", name = "finalize", descriptor = "()V")
@Override
public final void finalize() throws Throwable {
if (this.anInt5058 != -1) {
Static63.method1485(this.anInt5058, this.anInt5065, this.anInt5059);
this.anInt5058 = -1;
this.anInt5065 = 0;
}
super.finalize();
}
@OriginalMember(owner = "client!sd", name = "g", descriptor = "(B)V")
public final void method3887() {
@Pc(8) int local8 = Static56.method1314();
if ((local8 & 0x1) == 0) {
Static239.method4177(this.anInt5058);
}
if ((local8 & 0x2) == 0) {
Static239.method4183(0);
}
if ((local8 & 0x4) == 0) {
Static239.method4174(0);
}
}
}