mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 05:20:24 -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
|
|
@ -29,7 +29,7 @@ public final class WaterMaterialRenderer implements MaterialRenderer {
|
|||
@OriginalMember(owner = "client!pd", name = "d", descriptor = "()V")
|
||||
private void method3435() {
|
||||
@Pc(2) byte[] local2 = new byte[] { 0, -1 };
|
||||
@Pc(12) GL2 local12 = Static239.gl;
|
||||
@Pc(12) GL2 local12 = GlRenderer.gl;
|
||||
@Pc(15) int[] local15 = new int[1];
|
||||
local12.glGenTextures(1, local15, 0);
|
||||
local12.glBindTexture(GL2.GL_TEXTURE_1D, local15[0]);
|
||||
|
|
@ -42,7 +42,7 @@ public final class WaterMaterialRenderer implements MaterialRenderer {
|
|||
|
||||
@OriginalMember(owner = "client!pd", name = "f", descriptor = "()V")
|
||||
private void method3437() {
|
||||
@Pc(1) GL2 local1 = Static239.gl;
|
||||
@Pc(1) GL2 local1 = GlRenderer.gl;
|
||||
this.anInt4440 = local1.glGenLists(2);
|
||||
local1.glNewList(this.anInt4440, GL2.GL_COMPILE);
|
||||
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_COLOR);
|
||||
|
|
@ -106,26 +106,26 @@ public final class WaterMaterialRenderer implements MaterialRenderer {
|
|||
@OriginalMember(owner = "client!pd", name = "a", descriptor = "()V")
|
||||
@Override
|
||||
public final void method4602() {
|
||||
Static239.gl.glCallList(this.anInt4440 + 1);
|
||||
GlRenderer.gl.glCallList(this.anInt4440 + 1);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!pd", name = "a", descriptor = "(I)V")
|
||||
@Override
|
||||
public final void method4604(@OriginalArg(0) int arg0) {
|
||||
@Pc(1) GL2 local1 = Static239.gl;
|
||||
@Pc(1) GL2 local1 = GlRenderer.gl;
|
||||
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||
local1.glTexEnvfv(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_COLOR, Static257.aFloatArray2, 0);
|
||||
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||
if ((arg0 & 0x1) == 1) {
|
||||
if (!Static151.aBoolean176) {
|
||||
Static239.method4177(Static151.anIntArray341[Static239.anInt5323 * 64 / 100 % 64]);
|
||||
} else if (this.anInt4442 != Static239.anInt5323) {
|
||||
GlRenderer.setTextureId(Static151.anIntArray341[GlRenderer.anInt5323 * 64 / 100 % 64]);
|
||||
} else if (this.anInt4442 != GlRenderer.anInt5323) {
|
||||
this.aFloatArray23[0] = 0.0F;
|
||||
this.aFloatArray23[1] = 0.0F;
|
||||
this.aFloatArray23[2] = 0.0F;
|
||||
this.aFloatArray23[3] = (float) Static239.anInt5323 * 0.005F;
|
||||
this.aFloatArray23[3] = (float) GlRenderer.anInt5323 * 0.005F;
|
||||
local1.glTexGenfv(GL2.GL_R, GL2.GL_OBJECT_PLANE, this.aFloatArray23, 0);
|
||||
this.anInt4442 = Static239.anInt5323;
|
||||
this.anInt4442 = GlRenderer.anInt5323;
|
||||
}
|
||||
} else if (Static151.aBoolean176) {
|
||||
this.aFloatArray23[0] = 0.0F;
|
||||
|
|
@ -134,17 +134,17 @@ public final class WaterMaterialRenderer implements MaterialRenderer {
|
|||
this.aFloatArray23[3] = 0.0F;
|
||||
local1.glTexGenfv(GL2.GL_R, GL2.GL_OBJECT_PLANE, this.aFloatArray23, 0);
|
||||
} else {
|
||||
Static239.method4177(Static151.anIntArray341[0]);
|
||||
GlRenderer.setTextureId(Static151.anIntArray341[0]);
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!pd", name = "b", descriptor = "()V")
|
||||
@Override
|
||||
public final void method4603() {
|
||||
@Pc(1) GL2 local1 = Static239.gl;
|
||||
Static239.method4183(2);
|
||||
Static239.method4174(2);
|
||||
Static239.method4150();
|
||||
@Pc(1) GL2 local1 = GlRenderer.gl;
|
||||
GlRenderer.setTextureCombineRgbMode(2);
|
||||
GlRenderer.setTextureCombineAlphaMode(2);
|
||||
GlRenderer.resetTextureMatrix();
|
||||
local1.glCallList(this.anInt4440);
|
||||
@Pc(12) float local12 = 2662.4001F;
|
||||
local12 += (float) (Static254.anInt5559 - 128) * 0.5F;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue