Refactored Rasterizer, renamed GlTextureProvider to TextureProvider

This commit is contained in:
Pazaz 2022-04-22 22:02:17 -04:00
parent f65909dc06
commit bed0932fc5
49 changed files with 3168 additions and 2885 deletions

View file

@ -113,7 +113,7 @@ public final class Static87 {
Static46.method1187(arg0, arg6, arg4, arg7);
} else {
Static129.method2496(arg0, arg6, arg4, arg7);
Rasteriser.method1908();
Rasteriser.prepare();
}
for (@Pc(18) int local18 = 0; local18 < arg3.length; local18++) {
@Pc(30) Component local30 = arg3[local18];
@ -394,7 +394,7 @@ public final class Static87 {
Static46.method1187(arg0, arg6, arg4, arg7);
} else {
Static129.method2496(arg0, arg6, arg4, arg7);
Rasteriser.method1908();
Rasteriser.prepare();
}
}
if (Static223.aBooleanArray116[local57] || Static199.anInt4672 > 1) {
@ -421,7 +421,7 @@ public final class Static87 {
} else {
local1476 = Static190.method3443(1, local545, local30.aBoolean31, local30.objCounts[local270], 3153952);
}
if (Rasteriser.aBoolean134) {
if (Rasteriser.textureHasTransparency) {
Static186.aBooleanArray100[local57] = true;
}
if (local1476 == null) {
@ -448,8 +448,8 @@ public final class Static87 {
local1575 = Static46.anInt1441;
local1577 = Static46.clipY;
} else {
local1577 = Static129.anInt3147;
local1575 = Static129.anInt3149;
local1577 = Static129.clipTop;
local1575 = Static129.clipBottom;
}
@Pc(1611) int local1611;
if (local1577 > local556 + local514 && local1571.scrollY > 0) {
@ -754,7 +754,7 @@ public final class Static87 {
GlRenderer.enableDepthMask();
}
} else {
Rasteriser.method1919(local556, local545);
Rasteriser.setBounds(local556, local545);
local563 = MathUtils.anIntArray223[local30.modelXAngle] * local30.modelZoom >> 16;
local571 = local30.modelZoom * MathUtils.anIntArray225[local30.modelXAngle] >> 16;
if (!local30.aBoolean32) {
@ -764,7 +764,7 @@ public final class Static87 {
} else {
local2589.method4571(local30.modelYAngle, local30.modelYOffset, local30.modelXAngle, local30.modelXOffset, local30.modelZOffset + local563 + local503, local571 + local30.modelZOffset, -1L);
}
Rasteriser.method1915();
Rasteriser.prepareOffsets();
}
}
} else {