mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-12 01:21:23 -07:00
Renamed Static239 to GlRenderer, started refactoring
This commit is contained in:
parent
ddbfcb0e86
commit
8119ba8336
125 changed files with 962 additions and 962 deletions
|
|
@ -64,14 +64,14 @@ public final class GlIndexedSprite extends IndexedSprite {
|
|||
local22 += (this.anInt4287 - this.anInt4270) * 4;
|
||||
}
|
||||
@Pc(93) ByteBuffer local93 = ByteBuffer.wrap(local20);
|
||||
@Pc(95) GL2 local95 = Static239.gl;
|
||||
@Pc(95) GL2 local95 = GlRenderer.gl;
|
||||
if (this.anInt4281 == -1) {
|
||||
@Pc(102) int[] local102 = new int[1];
|
||||
local95.glGenTextures(1, local102, 0);
|
||||
this.anInt4281 = local102[0];
|
||||
this.anInt4285 = Static63.anInt1943;
|
||||
}
|
||||
Static239.method4177(this.anInt4281);
|
||||
GlRenderer.setTextureId(this.anInt4281);
|
||||
local95.glTexImage2D(GL2.GL_TEXTURE_2D, 0, GL2.GL_RGBA, this.anInt4287, this.anInt4286, 0, GL2.GL_RGBA, GL2.GL_UNSIGNED_BYTE, local93);
|
||||
Static63.anInt1944 += local93.limit() - this.anInt4284;
|
||||
this.anInt4284 = local93.limit();
|
||||
|
|
@ -80,14 +80,14 @@ public final class GlIndexedSprite extends IndexedSprite {
|
|||
@OriginalMember(owner = "client!oh", name = "a", descriptor = "(III)V")
|
||||
@Override
|
||||
public final void method3335(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2) {
|
||||
Static239.method4155();
|
||||
GlRenderer.method4155();
|
||||
@Pc(5) int local5 = arg0 + this.anInt4280;
|
||||
@Pc(10) int local10 = arg1 + this.anInt4273;
|
||||
@Pc(12) GL2 local12 = Static239.gl;
|
||||
Static239.method4177(this.anInt4281);
|
||||
@Pc(12) GL2 local12 = GlRenderer.gl;
|
||||
GlRenderer.setTextureId(this.anInt4281);
|
||||
this.method3338();
|
||||
local12.glColor4f(1.0F, 1.0F, 1.0F, (float) arg2 / 256.0F);
|
||||
local12.glTranslatef((float) local5, (float) (Static239.anInt5329 - local10), 0.0F);
|
||||
local12.glTranslatef((float) local5, (float) (GlRenderer.canvasHeight - local10), 0.0F);
|
||||
local12.glCallList(this.anInt4282);
|
||||
local12.glLoadIdentity();
|
||||
}
|
||||
|
|
@ -96,7 +96,7 @@ public final class GlIndexedSprite extends IndexedSprite {
|
|||
private void method3338() {
|
||||
if (this.anInt4283 != 1) {
|
||||
this.anInt4283 = 1;
|
||||
@Pc(9) GL2 local9 = Static239.gl;
|
||||
@Pc(9) GL2 local9 = GlRenderer.gl;
|
||||
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_NEAREST);
|
||||
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_NEAREST);
|
||||
}
|
||||
|
|
@ -105,13 +105,13 @@ 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) {
|
||||
Static239.method4149();
|
||||
GlRenderer.method4149();
|
||||
@Pc(5) int local5 = arg0 + this.anInt4280;
|
||||
@Pc(10) int local10 = arg1 + this.anInt4273;
|
||||
@Pc(12) GL2 local12 = Static239.gl;
|
||||
Static239.method4177(this.anInt4281);
|
||||
@Pc(12) GL2 local12 = GlRenderer.gl;
|
||||
GlRenderer.setTextureId(this.anInt4281);
|
||||
this.method3338();
|
||||
local12.glTranslatef((float) local5, (float) (Static239.anInt5329 - local10), 0.0F);
|
||||
local12.glTranslatef((float) local5, (float) (GlRenderer.canvasHeight - local10), 0.0F);
|
||||
local12.glCallList(this.anInt4282);
|
||||
local12.glLoadIdentity();
|
||||
}
|
||||
|
|
@ -135,7 +135,7 @@ public final class GlIndexedSprite extends IndexedSprite {
|
|||
private void method3339() {
|
||||
@Pc(7) float local7 = (float) this.anInt4270 / (float) this.anInt4287;
|
||||
@Pc(15) float local15 = (float) this.anInt4278 / (float) this.anInt4286;
|
||||
@Pc(17) GL2 local17 = Static239.gl;
|
||||
@Pc(17) GL2 local17 = GlRenderer.gl;
|
||||
if (this.anInt4282 == -1) {
|
||||
this.anInt4282 = local17.glGenLists(1);
|
||||
this.anInt4285 = Static63.anInt1943;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue