mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-21 02:15:14 -06:00
Consolidated some more static classes, identified some util functions
This commit is contained in:
parent
8aaa00efd5
commit
2bc60f339b
97 changed files with 3032 additions and 3275 deletions
|
|
@ -73,7 +73,7 @@ public final class Shadow {
|
|||
if (GlRenderer.arbVboSupported) {
|
||||
@Pc(112) ByteBuffer local112 = ByteBuffer.wrap(local4.data, 0, local4.offset);
|
||||
this.aClass155_7 = new GlVertexBufferObject();
|
||||
this.aClass155_7.method4519(local112);
|
||||
this.aClass155_7.setArrayBuffer(local112);
|
||||
} else {
|
||||
this.aByteBuffer12 = ByteBuffer.allocateDirect(local4.offset).order(ByteOrder.nativeOrder());
|
||||
this.aByteBuffer12.put(local4.data, 0, local4.offset);
|
||||
|
|
@ -102,7 +102,7 @@ public final class Shadow {
|
|||
if (GlRenderer.arbVboSupported) {
|
||||
@Pc(293) ByteBuffer local293 = ByteBuffer.wrap(local147.data, 0, local147.offset);
|
||||
this.aClass155_6 = new GlVertexBufferObject();
|
||||
this.aClass155_6.method4517(local293);
|
||||
this.aClass155_6.setElementArrayBuffer(local293);
|
||||
} else {
|
||||
this.aByteBuffer11 = ByteBuffer.allocateDirect(local147.offset).order(ByteOrder.nativeOrder());
|
||||
this.aByteBuffer11.put(local147.data, 0, local147.offset);
|
||||
|
|
@ -176,7 +176,7 @@ public final class Shadow {
|
|||
local1.glInterleavedArrays(GL2.GL_T2F_V3F, 20, this.aByteBuffer12);
|
||||
GlRenderer.normalArrayEnabled = false;
|
||||
} else {
|
||||
this.aClass155_7.method4516();
|
||||
this.aClass155_7.bindArray();
|
||||
local1.glInterleavedArrays(GL2.GL_T2F_V3F, 20, 0L);
|
||||
GlRenderer.normalArrayEnabled = false;
|
||||
}
|
||||
|
|
@ -186,7 +186,7 @@ public final class Shadow {
|
|||
}
|
||||
local1.glDrawElements(GL2.GL_TRIANGLES, 384, GL2.GL_UNSIGNED_INT, this.aByteBuffer11);
|
||||
} else {
|
||||
this.aClass155_6.method4518();
|
||||
this.aClass155_6.bindElementArray();
|
||||
local1.glDrawElements(GL2.GL_TRIANGLES, 384, GL2.GL_UNSIGNED_INT, 0L);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue