mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 21:40:30 -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 GlVertexBufferObject {
|
|||
public GlVertexBufferObject(@OriginalArg(0) boolean arg0) {
|
||||
this.anInt5760 = -1;
|
||||
this.anInt5762 = 0;
|
||||
@Pc(9) GL2 local9 = Static239.gl;
|
||||
@Pc(9) GL2 local9 = GlRenderer.gl;
|
||||
@Pc(12) int[] local12 = new int[1];
|
||||
local9.glGenBuffers(1, local12, 0);
|
||||
this.aBoolean300 = arg0;
|
||||
|
|
@ -40,7 +40,7 @@ public final class GlVertexBufferObject {
|
|||
@OriginalMember(owner = "client!vi", name = "a", descriptor = "(Ljava/nio/ByteBuffer;)V")
|
||||
public final void method4515(@OriginalArg(0) ByteBuffer arg0) {
|
||||
if (arg0.limit() <= this.anInt5762) {
|
||||
@Pc(6) GL2 local6 = Static239.gl;
|
||||
@Pc(6) GL2 local6 = GlRenderer.gl;
|
||||
local6.glBindBuffer(GL2.GL_ARRAY_BUFFER, this.anInt5760);
|
||||
local6.glBufferSubData(GL2.GL_ARRAY_BUFFER, 0, arg0.limit(), arg0);
|
||||
} else {
|
||||
|
|
@ -61,13 +61,13 @@ public final class GlVertexBufferObject {
|
|||
|
||||
@OriginalMember(owner = "client!vi", name = "a", descriptor = "()V")
|
||||
public final void method4516() {
|
||||
@Pc(1) GL2 local1 = Static239.gl;
|
||||
@Pc(1) GL2 local1 = GlRenderer.gl;
|
||||
local1.glBindBuffer(GL2.GL_ARRAY_BUFFER, this.anInt5760);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!vi", name = "b", descriptor = "(Ljava/nio/ByteBuffer;)V")
|
||||
public final void method4517(@OriginalArg(0) ByteBuffer arg0) {
|
||||
@Pc(1) GL2 local1 = Static239.gl;
|
||||
@Pc(1) GL2 local1 = GlRenderer.gl;
|
||||
local1.glBindBuffer(GL2.GL_ELEMENT_ARRAY_BUFFER, this.anInt5760);
|
||||
local1.glBufferData(GL2.GL_ELEMENT_ARRAY_BUFFER, arg0.limit(), arg0, this.aBoolean300 ? GL2.GL_STREAM_DRAW : GL2.GL_STATIC_DRAW);
|
||||
Static63.anInt1945 += arg0.limit() - this.anInt5762;
|
||||
|
|
@ -76,13 +76,13 @@ public final class GlVertexBufferObject {
|
|||
|
||||
@OriginalMember(owner = "client!vi", name = "b", descriptor = "()V")
|
||||
public final void method4518() {
|
||||
@Pc(1) GL2 local1 = Static239.gl;
|
||||
@Pc(1) GL2 local1 = GlRenderer.gl;
|
||||
local1.glBindBuffer(GL2.GL_ELEMENT_ARRAY_BUFFER, this.anInt5760);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!vi", name = "c", descriptor = "(Ljava/nio/ByteBuffer;)V")
|
||||
public final void method4519(@OriginalArg(0) ByteBuffer arg0) {
|
||||
@Pc(1) GL2 local1 = Static239.gl;
|
||||
@Pc(1) GL2 local1 = GlRenderer.gl;
|
||||
local1.glBindBuffer(GL2.GL_ARRAY_BUFFER, this.anInt5760);
|
||||
local1.glBufferData(GL2.GL_ARRAY_BUFFER, arg0.limit(), arg0, this.aBoolean300 ? GL2.GL_STREAM_DRAW : GL2.GL_STATIC_DRAW);
|
||||
Static63.anInt1945 += arg0.limit() - this.anInt5762;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue