mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 13:30:30 -07:00
56 lines
2.3 KiB
Java
56 lines
2.3 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!el")
|
|
public final class Class3_Sub2_Sub1_Sub2_Sub1 extends GlSprite {
|
|
|
|
@OriginalMember(owner = "client!el", name = "<init>", descriptor = "(IIIIII[I)V")
|
|
public Class3_Sub2_Sub1_Sub2_Sub1(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5, @OriginalArg(6) int[] arg6) {
|
|
super(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
|
|
}
|
|
|
|
@OriginalMember(owner = "client!el", name = "<init>", descriptor = "(Lclient!mm;)V")
|
|
public Class3_Sub2_Sub1_Sub2_Sub1(@OriginalArg(0) SoftwareSprite arg0) {
|
|
super(arg0);
|
|
}
|
|
|
|
@OriginalMember(owner = "client!el", name = "a", descriptor = "([I)V")
|
|
@Override
|
|
protected final void method1430(@OriginalArg(0) int[] arg0) {
|
|
this.anInt1870 = Static165.method3164(this.anInt1867);
|
|
this.anInt1874 = Static165.method3164(this.anInt1859);
|
|
@Pc(20) byte[] local20 = new byte[this.anInt1870 * this.anInt1874 * 4];
|
|
@Pc(22) int local22 = 0;
|
|
@Pc(24) int local24 = 0;
|
|
@Pc(32) int local32 = (this.anInt1870 - this.anInt1867) * 4;
|
|
for (@Pc(34) int local34 = 0; local34 < this.anInt1859; local34++) {
|
|
for (@Pc(40) int local40 = 0; local40 < this.anInt1867; local40++) {
|
|
@Pc(49) int local49 = arg0[local24++];
|
|
if (local49 == 0) {
|
|
local22 += 4;
|
|
} else {
|
|
local20[local22++] = (byte) (local49 >> 16);
|
|
local20[local22++] = (byte) (local49 >> 8);
|
|
local20[local22++] = (byte) local49;
|
|
local20[local22++] = (byte) (local49 >> 24);
|
|
}
|
|
}
|
|
local22 += local32;
|
|
}
|
|
@Pc(94) ByteBuffer local94 = ByteBuffer.wrap(local20);
|
|
@Pc(96) GL local96 = Static239.aGL1;
|
|
if (this.anInt1872 == -1) {
|
|
@Pc(103) int[] local103 = new int[1];
|
|
local96.glGenTextures(1, local103, 0);
|
|
this.anInt1872 = local103[0];
|
|
}
|
|
Static239.method4177(this.anInt1872);
|
|
local96.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, this.anInt1870, this.anInt1874, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, local94);
|
|
Static63.anInt1944 += local94.limit() - this.anInt1869;
|
|
this.anInt1869 = local94.limit();
|
|
}
|
|
}
|