Created TypeList classes and moved static members to them

This commit is contained in:
Pazaz 2022-04-25 02:11:03 -04:00
parent 6ba1f2f808
commit b3a5fdbec9
356 changed files with 6604 additions and 6652 deletions

View file

@ -69,11 +69,11 @@ public final class GlIndexedSprite extends IndexedSprite {
@Pc(102) int[] local102 = new int[1];
local95.glGenTextures(1, local102, 0);
this.anInt4281 = local102[0];
this.anInt4285 = Static63.contextId;
this.anInt4285 = GlCleaner.contextId;
}
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.onCard2d += local93.limit() - this.anInt4284;
GlCleaner.onCard2d += local93.limit() - this.anInt4284;
this.anInt4284 = local93.limit();
}
@ -120,12 +120,12 @@ public final class GlIndexedSprite extends IndexedSprite {
@Override
public final void finalize() throws Throwable {
if (this.anInt4281 != -1) {
Static63.deleteTexture2d(this.anInt4281, this.anInt4284, this.anInt4285);
GlCleaner.deleteTexture2d(this.anInt4281, this.anInt4284, this.anInt4285);
this.anInt4281 = -1;
this.anInt4284 = 0;
}
if (this.anInt4282 != -1) {
Static63.deleteList(this.anInt4282, this.anInt4285);
GlCleaner.deleteList(this.anInt4282, this.anInt4285);
this.anInt4282 = -1;
}
super.finalize();
@ -138,7 +138,7 @@ public final class GlIndexedSprite extends IndexedSprite {
@Pc(17) GL2 local17 = GlRenderer.gl;
if (this.anInt4282 == -1) {
this.anInt4282 = local17.glGenLists(1);
this.anInt4285 = Static63.contextId;
this.anInt4285 = GlCleaner.contextId;
}
local17.glNewList(this.anInt4282, GL2.GL_COMPILE);
local17.glBegin(GL2.GL_TRIANGLE_FAN);