mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-12 01:21:23 -07:00
Refactored more CS2 stuff
This commit is contained in:
parent
e5eeecd0ad
commit
79fdaf96f8
154 changed files with 1382 additions and 1378 deletions
|
|
@ -35,7 +35,7 @@ public final class GlIndexedSprite extends IndexedSprite {
|
|||
this.anInt4276 = arg1;
|
||||
this.anInt4280 = arg2;
|
||||
this.anInt4273 = arg3;
|
||||
this.anInt4270 = arg4;
|
||||
this.width = arg4;
|
||||
this.anInt4278 = arg5;
|
||||
this.method3337(arg6, arg7);
|
||||
this.method3339();
|
||||
|
|
@ -43,13 +43,13 @@ public final class GlIndexedSprite extends IndexedSprite {
|
|||
|
||||
@OriginalMember(owner = "client!oh", name = "a", descriptor = "([B[I)V")
|
||||
private void method3337(@OriginalArg(0) byte[] arg0, @OriginalArg(1) int[] arg1) {
|
||||
this.anInt4287 = Static165.clp2(this.anInt4270);
|
||||
this.anInt4287 = Static165.clp2(this.width);
|
||||
this.anInt4286 = Static165.clp2(this.anInt4278);
|
||||
@Pc(20) byte[] local20 = new byte[this.anInt4287 * this.anInt4286 * 4];
|
||||
@Pc(22) int local22 = 0;
|
||||
@Pc(24) int local24 = 0;
|
||||
for (@Pc(26) int local26 = 0; local26 < this.anInt4278; local26++) {
|
||||
for (@Pc(32) int local32 = 0; local32 < this.anInt4270; local32++) {
|
||||
for (@Pc(32) int local32 = 0; local32 < this.width; local32++) {
|
||||
@Pc(41) byte local41 = arg0[local24++];
|
||||
if (local41 == 0) {
|
||||
local22 += 4;
|
||||
|
|
@ -61,7 +61,7 @@ public final class GlIndexedSprite extends IndexedSprite {
|
|||
local20[local22++] = -1;
|
||||
}
|
||||
}
|
||||
local22 += (this.anInt4287 - this.anInt4270) * 4;
|
||||
local22 += (this.anInt4287 - this.width) * 4;
|
||||
}
|
||||
@Pc(93) ByteBuffer local93 = ByteBuffer.wrap(local20);
|
||||
@Pc(95) GL2 local95 = GlRenderer.gl;
|
||||
|
|
@ -104,7 +104,7 @@ public final class GlIndexedSprite extends IndexedSprite {
|
|||
|
||||
@OriginalMember(owner = "client!oh", name = "a", descriptor = "(II)V")
|
||||
@Override
|
||||
public final void method3336(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1) {
|
||||
public final void renderTransparent(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1) {
|
||||
GlRenderer.method4149();
|
||||
@Pc(5) int local5 = arg0 + this.anInt4280;
|
||||
@Pc(10) int local10 = arg1 + this.anInt4273;
|
||||
|
|
@ -133,7 +133,7 @@ public final class GlIndexedSprite extends IndexedSprite {
|
|||
|
||||
@OriginalMember(owner = "client!oh", name = "a", descriptor = "()V")
|
||||
private void method3339() {
|
||||
@Pc(7) float local7 = (float) this.anInt4270 / (float) this.anInt4287;
|
||||
@Pc(7) float local7 = (float) this.width / (float) this.anInt4287;
|
||||
@Pc(15) float local15 = (float) this.anInt4278 / (float) this.anInt4286;
|
||||
@Pc(17) GL2 local17 = GlRenderer.gl;
|
||||
if (this.anInt4282 == -1) {
|
||||
|
|
@ -143,13 +143,13 @@ public final class GlIndexedSprite extends IndexedSprite {
|
|||
local17.glNewList(this.anInt4282, GL2.GL_COMPILE);
|
||||
local17.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||
local17.glTexCoord2f(local7, 0.0F);
|
||||
local17.glVertex2f((float) this.anInt4270, 0.0F);
|
||||
local17.glVertex2f((float) this.width, 0.0F);
|
||||
local17.glTexCoord2f(0.0F, 0.0F);
|
||||
local17.glVertex2f(0.0F, 0.0F);
|
||||
local17.glTexCoord2f(0.0F, local15);
|
||||
local17.glVertex2f(0.0F, (float) -this.anInt4278);
|
||||
local17.glTexCoord2f(local7, local15);
|
||||
local17.glVertex2f((float) this.anInt4270, (float) -this.anInt4278);
|
||||
local17.glVertex2f((float) this.width, (float) -this.anInt4278);
|
||||
local17.glEnd();
|
||||
local17.glEndList();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue