mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 00:15:15 -06:00
Renamed TextureOp classes
This commit is contained in:
parent
042bdca430
commit
afa18fe8a7
65 changed files with 3054 additions and 3058 deletions
|
|
@ -5,90 +5,62 @@ import org.openrs2.deob.annotation.OriginalClass;
|
|||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
@OriginalClass("client!gg")
|
||||
@OriginalClass("client!mg")
|
||||
public final class TextureOp11 extends TextureOp {
|
||||
|
||||
@OriginalMember(owner = "client!gg", name = "V", descriptor = "I")
|
||||
private int anInt2220 = 4;
|
||||
@OriginalMember(owner = "client!mg", name = "R", descriptor = "I")
|
||||
private int anInt3812 = 4096;
|
||||
|
||||
@OriginalMember(owner = "client!gg", name = "R", descriptor = "I")
|
||||
private int anInt2216 = 4;
|
||||
@OriginalMember(owner = "client!mg", name = "Z", descriptor = "I")
|
||||
private int anInt3816 = 4096;
|
||||
|
||||
@OriginalMember(owner = "client!gg", name = "<init>", descriptor = "()V")
|
||||
@OriginalMember(owner = "client!mg", name = "X", descriptor = "I")
|
||||
private int anInt3815 = 4096;
|
||||
|
||||
@OriginalMember(owner = "client!mg", name = "<init>", descriptor = "()V")
|
||||
public TextureOp11() {
|
||||
super(1, false);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!gg", name = "a", descriptor = "(ILclient!wa;Z)V")
|
||||
@OriginalMember(owner = "client!mg", name = "a", descriptor = "(ILclient!wa;Z)V")
|
||||
@Override
|
||||
public final void method4629(@OriginalArg(0) int arg0, @OriginalArg(1) Buffer arg1) {
|
||||
public final void decode(@OriginalArg(0) int arg0, @OriginalArg(1) Buffer arg1) {
|
||||
if (arg0 == 0) {
|
||||
this.anInt2220 = arg1.g1();
|
||||
this.anInt3816 = arg1.g2();
|
||||
} else if (arg0 == 1) {
|
||||
this.anInt2216 = arg1.g1();
|
||||
this.anInt3812 = arg1.g2();
|
||||
} else if (arg0 == 2) {
|
||||
this.anInt3815 = arg1.g2();
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!gg", name = "a", descriptor = "(IB)[I")
|
||||
@OriginalMember(owner = "client!mg", name = "b", descriptor = "(II)[[I")
|
||||
@Override
|
||||
public final int[] method4626(@OriginalArg(0) int arg0) {
|
||||
@Pc(19) int[] local19 = this.aClass121_41.method3445(arg0);
|
||||
if (this.aClass121_41.invalid) {
|
||||
@Pc(28) int local28 = Static10.anInt4457 / this.anInt2220;
|
||||
@Pc(33) int local33 = Static10.anInt4165 / this.anInt2216;
|
||||
@Pc(44) int[] local44;
|
||||
@Pc(50) int local50;
|
||||
if (local33 <= 0) {
|
||||
local44 = this.method4624(0, 0);
|
||||
} else {
|
||||
local50 = arg0 % local33;
|
||||
local44 = this.method4624(0, Static10.anInt4165 * local50 / local33);
|
||||
}
|
||||
for (local50 = 0; local50 < Static10.anInt4457; local50++) {
|
||||
if (local28 <= 0) {
|
||||
local19[local50] = local44[0];
|
||||
public final int[][] getColorOutput(@OriginalArg(1) int arg0) {
|
||||
@Pc(16) int[][] local16 = this.colorImageCache.get(arg0);
|
||||
if (this.colorImageCache.invalid) {
|
||||
@Pc(27) int[][] local27 = this.getChildColorOutput(arg0, 0);
|
||||
@Pc(31) int[] local31 = local27[0];
|
||||
@Pc(35) int[] local35 = local27[1];
|
||||
@Pc(39) int[] local39 = local27[2];
|
||||
@Pc(43) int[] local43 = local16[1];
|
||||
@Pc(47) int[] local47 = local16[0];
|
||||
@Pc(51) int[] local51 = local16[2];
|
||||
for (@Pc(53) int local53 = 0; local53 < Texture.width; local53++) {
|
||||
@Pc(64) int local64 = local31[local53];
|
||||
@Pc(68) int local68 = local35[local53];
|
||||
@Pc(72) int local72 = local39[local53];
|
||||
if (local64 == local72 && local68 == local72) {
|
||||
local47[local53] = this.anInt3816 * local64 >> 12;
|
||||
local43[local53] = local72 * this.anInt3812 >> 12;
|
||||
local51[local53] = local68 * this.anInt3815 >> 12;
|
||||
} else {
|
||||
@Pc(80) int local80 = local50 % local28;
|
||||
local19[local50] = local44[Static10.anInt4457 * local80 / local28];
|
||||
local47[local53] = this.anInt3816;
|
||||
local43[local53] = this.anInt3812;
|
||||
local51[local53] = this.anInt3815;
|
||||
}
|
||||
}
|
||||
}
|
||||
return local19;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!gg", name = "b", descriptor = "(II)[[I")
|
||||
@Override
|
||||
public final int[][] method4638(@OriginalArg(1) int arg0) {
|
||||
@Pc(18) int[][] local18 = this.aClass103_41.method3173(arg0);
|
||||
if (this.aClass103_41.aBoolean195) {
|
||||
@Pc(28) int local28 = Static10.anInt4457 / this.anInt2220;
|
||||
@Pc(33) int local33 = Static10.anInt4165 / this.anInt2216;
|
||||
@Pc(49) int[][] local49;
|
||||
if (local33 > 0) {
|
||||
@Pc(39) int local39 = arg0 % local33;
|
||||
local49 = this.method4634(local39 * Static10.anInt4165 / local33, 0);
|
||||
} else {
|
||||
local49 = this.method4634(0, 0);
|
||||
}
|
||||
@Pc(61) int[] local61 = local49[0];
|
||||
@Pc(65) int[] local65 = local49[2];
|
||||
@Pc(69) int[] local69 = local18[0];
|
||||
@Pc(73) int[] local73 = local49[1];
|
||||
@Pc(77) int[] local77 = local18[1];
|
||||
@Pc(81) int[] local81 = local18[2];
|
||||
for (@Pc(83) int local83 = 0; local83 < Static10.anInt4457; local83++) {
|
||||
@Pc(94) int local94;
|
||||
if (local28 <= 0) {
|
||||
local94 = 0;
|
||||
} else {
|
||||
@Pc(100) int local100 = local83 % local28;
|
||||
local94 = local100 * Static10.anInt4457 / local28;
|
||||
}
|
||||
local69[local83] = local61[local94];
|
||||
local77[local83] = local73[local94];
|
||||
local81[local83] = local65[local94];
|
||||
}
|
||||
}
|
||||
return local18;
|
||||
return local16;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue