mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-12 01:21:23 -07:00
Upgrade to JOGL 2.4.0
This commit is contained in:
parent
f462316fce
commit
c97bf0d48a
144 changed files with 859 additions and 13754 deletions
|
|
@ -28,9 +28,64 @@
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jagex</groupId>
|
<groupId>jogamp</groupId>
|
||||||
<artifactId>gl</artifactId>
|
<artifactId>gluegen</artifactId>
|
||||||
<version>1.0</version>
|
<version>2.4.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jogamp</groupId>
|
||||||
|
<artifactId>gluegen-win32</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jogamp</groupId>
|
||||||
|
<artifactId>gluegen-win64</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jogamp</groupId>
|
||||||
|
<artifactId>gluegen-mac</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jogamp</groupId>
|
||||||
|
<artifactId>gluegen-linux32</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jogamp</groupId>
|
||||||
|
<artifactId>gluegen-linux64</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jogamp</groupId>
|
||||||
|
<artifactId>jogl</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jogamp</groupId>
|
||||||
|
<artifactId>jogl-win32</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jogamp</groupId>
|
||||||
|
<artifactId>jogl-win64</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jogamp</groupId>
|
||||||
|
<artifactId>jogl-mac</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jogamp</groupId>
|
||||||
|
<artifactId>jogl-linux32</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jogamp</groupId>
|
||||||
|
<artifactId>jogl-linux64</artifactId>
|
||||||
|
<version>2.4.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.nio.ByteOrder;
|
import java.nio.ByteOrder;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -32,16 +32,16 @@ public final class Class165 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!wm", name = "<init>", descriptor = "()V")
|
@OriginalMember(owner = "client!wm", name = "<init>", descriptor = "()V")
|
||||||
public Class165() {
|
public Class165() {
|
||||||
@Pc(9) GL local9 = Static239.aGL1;
|
@Pc(9) GL2 local9 = Static239.gl;
|
||||||
@Pc(12) int[] local12 = new int[1];
|
@Pc(12) int[] local12 = new int[1];
|
||||||
local9.glGenTextures(1, local12, 0);
|
local9.glGenTextures(1, local12, 0);
|
||||||
this.anInt5901 = local12[0];
|
this.anInt5901 = local12[0];
|
||||||
Static63.anInt1942 += 16384;
|
Static63.anInt1942 += 16384;
|
||||||
Static239.method4177(this.anInt5901);
|
Static239.method4177(this.anInt5901);
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, GL.GL_CLAMP_TO_EDGE);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_WRAP_T, GL2.GL_CLAMP_TO_EDGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!wm", name = "a", descriptor = "([[III)V")
|
@OriginalMember(owner = "client!wm", name = "a", descriptor = "([[III)V")
|
||||||
|
|
@ -152,37 +152,37 @@ public final class Class165 {
|
||||||
}
|
}
|
||||||
local19 += local5 - 128;
|
local19 += local5 - 128;
|
||||||
}
|
}
|
||||||
@Pc(145) GL local145 = Static239.aGL1;
|
@Pc(145) GL2 local145 = Static239.gl;
|
||||||
@Pc(148) ByteBuffer local148 = ByteBuffer.wrap(Static281.aByteArray82);
|
@Pc(148) ByteBuffer local148 = ByteBuffer.wrap(Static281.aByteArray82);
|
||||||
local148.limit(16384);
|
local148.limit(16384);
|
||||||
Static239.method4177(this.anInt5901);
|
Static239.method4177(this.anInt5901);
|
||||||
local145.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_ALPHA, 128, 128, 0, GL.GL_ALPHA, GL.GL_UNSIGNED_BYTE, local148);
|
local145.glTexImage2D(GL2.GL_TEXTURE_2D, 0, GL2.GL_ALPHA, 128, 128, 0, GL2.GL_ALPHA, GL2.GL_UNSIGNED_BYTE, local148);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!wm", name = "b", descriptor = "()V")
|
@OriginalMember(owner = "client!wm", name = "b", descriptor = "()V")
|
||||||
public final void method4679() {
|
public final void method4679() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
Static239.method4177(this.anInt5901);
|
Static239.method4177(this.anInt5901);
|
||||||
if (this.aClass155_7 == null) {
|
if (this.aClass155_7 == null) {
|
||||||
if (Static239.aBoolean271) {
|
if (Static239.aBoolean271) {
|
||||||
local1.glBindBufferARB(GL.GL_ARRAY_BUFFER, 0);
|
local1.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);
|
||||||
}
|
}
|
||||||
local1.glInterleavedArrays(GL.GL_T2F_V3F, 20, this.aByteBuffer12);
|
local1.glInterleavedArrays(GL2.GL_T2F_V3F, 20, this.aByteBuffer12);
|
||||||
Static239.aBoolean265 = false;
|
Static239.aBoolean265 = false;
|
||||||
} else {
|
} else {
|
||||||
this.aClass155_7.method4516();
|
this.aClass155_7.method4516();
|
||||||
local1.glInterleavedArrays(GL.GL_T2F_V3F, 20, 0L);
|
local1.glInterleavedArrays(GL2.GL_T2F_V3F, 20, 0L);
|
||||||
Static239.aBoolean265 = false;
|
Static239.aBoolean265 = false;
|
||||||
}
|
}
|
||||||
if (this.aClass155_6 == null) {
|
if (this.aClass155_6 == null) {
|
||||||
if (Static239.aBoolean271) {
|
if (Static239.aBoolean271) {
|
||||||
local1.glBindBufferARB(GL.GL_ELEMENT_ARRAY_BUFFER, 0);
|
local1.glBindBuffer(GL2.GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||||
}
|
}
|
||||||
local1.glDrawElements(GL.GL_TRIANGLES, 384, GL.GL_UNSIGNED_INT, this.aByteBuffer11);
|
local1.glDrawElements(GL2.GL_TRIANGLES, 384, GL2.GL_UNSIGNED_INT, this.aByteBuffer11);
|
||||||
} else {
|
} else {
|
||||||
this.aClass155_6.method4518();
|
this.aClass155_6.method4518();
|
||||||
local1.glDrawElements(GL.GL_TRIANGLES, 384, GL.GL_UNSIGNED_INT, 0L);
|
local1.glDrawElements(GL2.GL_TRIANGLES, 384, GL2.GL_UNSIGNED_INT, 0L);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.nio.ByteOrder;
|
import java.nio.ByteOrder;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -275,7 +275,7 @@ public final class Class3_Sub14 extends Node {
|
||||||
if (Static95.aClass3_Sub15_3.offset == 0 && Static95.aClass3_Sub15_2.offset == 0) {
|
if (Static95.aClass3_Sub15_3.offset == 0 && Static95.aClass3_Sub15_2.offset == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@Pc(257) GL local257 = Static239.aGL1;
|
@Pc(257) GL2 local257 = Static239.gl;
|
||||||
if (this.anInt2485 == -1 || arg2) {
|
if (this.anInt2485 == -1 || arg2) {
|
||||||
Static239.method4177(-1);
|
Static239.method4177(-1);
|
||||||
Static27.method766(0, 0);
|
Static27.method766(0, 0);
|
||||||
|
|
@ -285,40 +285,40 @@ public final class Class3_Sub14 extends Node {
|
||||||
@Pc(282) int local282 = this.aBoolean139 ? 40 : 36;
|
@Pc(282) int local282 = this.aBoolean139 ? 40 : 36;
|
||||||
if (this.aClass155_3 == null) {
|
if (this.aClass155_3 == null) {
|
||||||
if (Static239.aBoolean271) {
|
if (Static239.aBoolean271) {
|
||||||
local257.glBindBufferARB(GL.GL_ARRAY_BUFFER, 0);
|
local257.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);
|
||||||
}
|
}
|
||||||
this.aByteBuffer3.position(0);
|
this.aByteBuffer3.position(0);
|
||||||
local257.glVertexPointer(3, GL.GL_FLOAT, local282, this.aByteBuffer3);
|
local257.glVertexPointer(3, GL2.GL_FLOAT, local282, this.aByteBuffer3);
|
||||||
this.aByteBuffer3.position(12);
|
this.aByteBuffer3.position(12);
|
||||||
local257.glColorPointer(4, GL.GL_UNSIGNED_BYTE, local282, this.aByteBuffer3);
|
local257.glColorPointer(4, GL2.GL_UNSIGNED_BYTE, local282, this.aByteBuffer3);
|
||||||
if (Static178.aBoolean202) {
|
if (Static178.aBoolean202) {
|
||||||
this.aByteBuffer3.position(16);
|
this.aByteBuffer3.position(16);
|
||||||
local257.glNormalPointer(GL.GL_FLOAT, local282, this.aByteBuffer3);
|
local257.glNormalPointer(GL2.GL_FLOAT, local282, this.aByteBuffer3);
|
||||||
}
|
}
|
||||||
this.aByteBuffer3.position(28);
|
this.aByteBuffer3.position(28);
|
||||||
local257.glTexCoordPointer(2, GL.GL_FLOAT, local282, this.aByteBuffer3);
|
local257.glTexCoordPointer(2, GL2.GL_FLOAT, local282, this.aByteBuffer3);
|
||||||
if (this.aBoolean139) {
|
if (this.aBoolean139) {
|
||||||
local257.glClientActiveTexture(Static275.method4607());
|
local257.glClientActiveTexture(Static275.method4607());
|
||||||
this.aByteBuffer3.position(36);
|
this.aByteBuffer3.position(36);
|
||||||
local257.glTexCoordPointer(1, GL.GL_FLOAT, local282, this.aByteBuffer3);
|
local257.glTexCoordPointer(1, GL2.GL_FLOAT, local282, this.aByteBuffer3);
|
||||||
local257.glClientActiveTexture(GL.GL_TEXTURE0);
|
local257.glClientActiveTexture(GL2.GL_TEXTURE0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.aClass155_3.method4516();
|
this.aClass155_3.method4516();
|
||||||
local257.glVertexPointer(3, GL.GL_FLOAT, local282, 0L);
|
local257.glVertexPointer(3, GL2.GL_FLOAT, local282, 0L);
|
||||||
local257.glColorPointer(4, GL.GL_UNSIGNED_BYTE, local282, 12L);
|
local257.glColorPointer(4, GL2.GL_UNSIGNED_BYTE, local282, 12L);
|
||||||
if (Static178.aBoolean202) {
|
if (Static178.aBoolean202) {
|
||||||
local257.glNormalPointer(GL.GL_FLOAT, local282, 16L);
|
local257.glNormalPointer(GL2.GL_FLOAT, local282, 16L);
|
||||||
}
|
}
|
||||||
local257.glTexCoordPointer(2, GL.GL_FLOAT, local282, 28L);
|
local257.glTexCoordPointer(2, GL2.GL_FLOAT, local282, 28L);
|
||||||
if (this.aBoolean139) {
|
if (this.aBoolean139) {
|
||||||
local257.glClientActiveTexture(Static275.method4607());
|
local257.glClientActiveTexture(Static275.method4607());
|
||||||
local257.glTexCoordPointer(1, GL.GL_FLOAT, local282, 36L);
|
local257.glTexCoordPointer(1, GL2.GL_FLOAT, local282, 36L);
|
||||||
local257.glClientActiveTexture(GL.GL_TEXTURE0);
|
local257.glClientActiveTexture(GL2.GL_TEXTURE0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Static239.aBoolean271) {
|
if (Static239.aBoolean271) {
|
||||||
local257.glBindBufferARB(GL.GL_ELEMENT_ARRAY_BUFFER, 0);
|
local257.glBindBuffer(GL2.GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||||
}
|
}
|
||||||
if (Static95.aClass3_Sub15_3.offset != 0) {
|
if (Static95.aClass3_Sub15_3.offset != 0) {
|
||||||
if (Static95.aByteBuffer5 == null || Static95.aByteBuffer5.capacity() < Static95.aClass3_Sub15_3.offset) {
|
if (Static95.aByteBuffer5 == null || Static95.aByteBuffer5.capacity() < Static95.aClass3_Sub15_3.offset) {
|
||||||
|
|
@ -329,7 +329,7 @@ public final class Class3_Sub14 extends Node {
|
||||||
Static95.aByteBuffer5.put(Static95.aClass3_Sub15_3.data, 0, Static95.aClass3_Sub15_3.offset);
|
Static95.aByteBuffer5.put(Static95.aClass3_Sub15_3.data, 0, Static95.aClass3_Sub15_3.offset);
|
||||||
Static95.aByteBuffer5.flip();
|
Static95.aByteBuffer5.flip();
|
||||||
Static239.method4159(arg1);
|
Static239.method4159(arg1);
|
||||||
local257.glDrawElements(GL.GL_TRIANGLES, Static95.aClass3_Sub15_3.offset / 4, GL.GL_UNSIGNED_INT, Static95.aByteBuffer5);
|
local257.glDrawElements(GL2.GL_TRIANGLES, Static95.aClass3_Sub15_3.offset / 4, GL2.GL_UNSIGNED_INT, Static95.aByteBuffer5);
|
||||||
}
|
}
|
||||||
if (Static95.aClass3_Sub15_2.offset == 0) {
|
if (Static95.aClass3_Sub15_2.offset == 0) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -343,7 +343,7 @@ public final class Class3_Sub14 extends Node {
|
||||||
Static95.aByteBuffer4.flip();
|
Static95.aByteBuffer4.flip();
|
||||||
Static239.method4159(arg1 - 100.0F);
|
Static239.method4159(arg1 - 100.0F);
|
||||||
Static239.method4178();
|
Static239.method4178();
|
||||||
local257.glDrawElements(GL.GL_TRIANGLES, Static95.aClass3_Sub15_2.offset / 4, GL.GL_UNSIGNED_INT, Static95.aByteBuffer4);
|
local257.glDrawElements(GL2.GL_TRIANGLES, Static95.aClass3_Sub15_2.offset / 4, GL2.GL_UNSIGNED_INT, Static95.aByteBuffer4);
|
||||||
Static239.method4157();
|
Static239.method4157();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -181,22 +181,22 @@ public final class Class45 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!fj", name = "c", descriptor = "()V")
|
@OriginalMember(owner = "client!fj", name = "c", descriptor = "()V")
|
||||||
public final void method1556() {
|
public final void method1556() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
if (Static239.aBoolean271) {
|
if (Static239.aBoolean271) {
|
||||||
this.aClass155_1.method4516();
|
this.aClass155_1.method4516();
|
||||||
local1.glInterleavedArrays(GL.GL_C4UB_V3F, 16, 0L);
|
local1.glInterleavedArrays(GL2.GL_C4UB_V3F, 16, 0L);
|
||||||
Static239.aBoolean265 = false;
|
Static239.aBoolean265 = false;
|
||||||
this.aClass155_2.method4518();
|
this.aClass155_2.method4518();
|
||||||
local1.glDrawElements(GL.GL_TRIANGLES, this.anInt2018, GL.GL_UNSIGNED_INT, 0L);
|
local1.glDrawElements(GL2.GL_TRIANGLES, this.anInt2018, GL2.GL_UNSIGNED_INT, 0L);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Static239.aBoolean271) {
|
if (Static239.aBoolean271) {
|
||||||
local1.glBindBufferARB(GL.GL_ARRAY_BUFFER, 0);
|
local1.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);
|
||||||
local1.glBindBufferARB(GL.GL_ELEMENT_ARRAY_BUFFER, 0);
|
local1.glBindBuffer(GL2.GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||||
}
|
}
|
||||||
local1.glInterleavedArrays(GL.GL_C4UB_V3F, 16, this.aByteBuffer1);
|
local1.glInterleavedArrays(GL2.GL_C4UB_V3F, 16, this.aByteBuffer1);
|
||||||
Static239.aBoolean265 = false;
|
Static239.aBoolean265 = false;
|
||||||
local1.glDrawElements(GL.GL_TRIANGLES, this.anInt2018, GL.GL_UNSIGNED_INT, this.aByteBuffer2);
|
local1.glDrawElements(GL2.GL_TRIANGLES, this.anInt2018, GL2.GL_UNSIGNED_INT, this.aByteBuffer2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!fj", name = "a", descriptor = "([I)V")
|
@OriginalMember(owner = "client!fj", name = "a", descriptor = "([I)V")
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -42,14 +42,14 @@ public final class GlAlphaSprite extends GlSprite {
|
||||||
local22 += local32;
|
local22 += local32;
|
||||||
}
|
}
|
||||||
@Pc(94) ByteBuffer local94 = ByteBuffer.wrap(local20);
|
@Pc(94) ByteBuffer local94 = ByteBuffer.wrap(local20);
|
||||||
@Pc(96) GL local96 = Static239.aGL1;
|
@Pc(96) GL2 local96 = Static239.gl;
|
||||||
if (this.anInt1872 == -1) {
|
if (this.anInt1872 == -1) {
|
||||||
@Pc(103) int[] local103 = new int[1];
|
@Pc(103) int[] local103 = new int[1];
|
||||||
local96.glGenTextures(1, local103, 0);
|
local96.glGenTextures(1, local103, 0);
|
||||||
this.anInt1872 = local103[0];
|
this.anInt1872 = local103[0];
|
||||||
}
|
}
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
local96.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, this.anInt1870, this.anInt1874, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, local94);
|
local96.glTexImage2D(GL2.GL_TEXTURE_2D, 0, GL2.GL_RGBA, this.anInt1870, this.anInt1874, 0, GL2.GL_RGBA, GL2.GL_UNSIGNED_BYTE, local94);
|
||||||
Static63.anInt1944 += local94.limit() - this.anInt1869;
|
Static63.anInt1944 += local94.limit() - this.anInt1869;
|
||||||
this.anInt1869 = local94.limit();
|
this.anInt1869 = local94.limit();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -50,10 +50,10 @@ public final class GlFont extends Font {
|
||||||
@OriginalMember(owner = "client!mb", name = "a", descriptor = "(IIIIIIZ)V")
|
@OriginalMember(owner = "client!mb", name = "a", descriptor = "(IIIIIIZ)V")
|
||||||
@Override
|
@Override
|
||||||
protected final void method2854(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5) {
|
protected final void method2854(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5) {
|
||||||
@Pc(4) GL local4;
|
@Pc(4) GL2 local4;
|
||||||
if (Static46.aClass3_Sub2_Sub1_Sub2_1 == null) {
|
if (Static46.aClass3_Sub2_Sub1_Sub2_1 == null) {
|
||||||
Static239.method4151();
|
Static239.method4151();
|
||||||
local4 = Static239.aGL1;
|
local4 = Static239.gl;
|
||||||
Static239.method4177(this.anInt3638);
|
Static239.method4177(this.anInt3638);
|
||||||
local4.glColor3ub((byte) (arg5 >> 16), (byte) (arg5 >> 8), (byte) arg5);
|
local4.glColor3ub((byte) (arg5 >> 16), (byte) (arg5 >> 8), (byte) arg5);
|
||||||
local4.glTranslatef((float) arg1, (float) (Static239.anInt5329 - arg2), 0.0F);
|
local4.glTranslatef((float) arg1, (float) (Static239.anInt5329 - arg2), 0.0F);
|
||||||
|
|
@ -62,7 +62,7 @@ public final class GlFont extends Font {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Static239.method4151();
|
Static239.method4151();
|
||||||
local4 = Static239.aGL1;
|
local4 = Static239.gl;
|
||||||
local4.glColor3ub((byte) (arg5 >> 16), (byte) (arg5 >> 8), (byte) arg5);
|
local4.glColor3ub((byte) (arg5 >> 16), (byte) (arg5 >> 8), (byte) arg5);
|
||||||
local4.glTranslatef((float) arg1, (float) (Static239.anInt5329 - arg2), 0.0F);
|
local4.glTranslatef((float) arg1, (float) (Static239.anInt5329 - arg2), 0.0F);
|
||||||
@Pc(32) float local32 = (float) (arg0 % 16) / 16.0F;
|
@Pc(32) float local32 = (float) (arg0 % 16) / 16.0F;
|
||||||
|
|
@ -71,33 +71,33 @@ public final class GlFont extends Font {
|
||||||
@Pc(63) float local63 = local39 + (float) this.anIntArray345[arg0] / (float) this.anInt3640;
|
@Pc(63) float local63 = local39 + (float) this.anIntArray345[arg0] / (float) this.anInt3640;
|
||||||
Static239.method4177(this.anInt3638);
|
Static239.method4177(this.anInt3638);
|
||||||
@Pc(68) GlSprite local68 = Static46.aClass3_Sub2_Sub1_Sub2_1;
|
@Pc(68) GlSprite local68 = Static46.aClass3_Sub2_Sub1_Sub2_1;
|
||||||
local4.glActiveTexture(GL.GL_TEXTURE1);
|
local4.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local4.glEnable(GL.GL_TEXTURE_2D);
|
local4.glEnable(GL2.GL_TEXTURE_2D);
|
||||||
local4.glBindTexture(GL.GL_TEXTURE_2D, local68.anInt1872);
|
local4.glBindTexture(GL2.GL_TEXTURE_2D, local68.anInt1872);
|
||||||
local4.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_REPLACE);
|
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_REPLACE);
|
||||||
local4.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_PREVIOUS);
|
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_PREVIOUS);
|
||||||
@Pc(98) float local98 = (float) (arg1 - Static46.anInt1439) / (float) local68.anInt1870;
|
@Pc(98) float local98 = (float) (arg1 - Static46.anInt1439) / (float) local68.anInt1870;
|
||||||
@Pc(107) float local107 = (float) (arg2 - Static46.anInt1438) / (float) local68.anInt1874;
|
@Pc(107) float local107 = (float) (arg2 - Static46.anInt1438) / (float) local68.anInt1874;
|
||||||
@Pc(118) float local118 = (float) (arg1 + arg3 - Static46.anInt1439) / (float) local68.anInt1870;
|
@Pc(118) float local118 = (float) (arg1 + arg3 - Static46.anInt1439) / (float) local68.anInt1870;
|
||||||
@Pc(129) float local129 = (float) (arg2 + arg4 - Static46.anInt1438) / (float) local68.anInt1874;
|
@Pc(129) float local129 = (float) (arg2 + arg4 - Static46.anInt1438) / (float) local68.anInt1874;
|
||||||
local4.glBegin(GL.GL_TRIANGLE_FAN);
|
local4.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local4.glMultiTexCoord2f(GL.GL_TEXTURE1, local118, local107);
|
local4.glMultiTexCoord2f(GL2.GL_TEXTURE1, local118, local107);
|
||||||
local4.glTexCoord2f(local51, local39);
|
local4.glTexCoord2f(local51, local39);
|
||||||
local4.glVertex2f((float) this.anIntArray343[arg0], 0.0F);
|
local4.glVertex2f((float) this.anIntArray343[arg0], 0.0F);
|
||||||
local4.glMultiTexCoord2f(GL.GL_TEXTURE1, local98, local107);
|
local4.glMultiTexCoord2f(GL2.GL_TEXTURE1, local98, local107);
|
||||||
local4.glTexCoord2f(local32, local39);
|
local4.glTexCoord2f(local32, local39);
|
||||||
local4.glVertex2f(0.0F, 0.0F);
|
local4.glVertex2f(0.0F, 0.0F);
|
||||||
local4.glMultiTexCoord2f(GL.GL_TEXTURE1, local98, local129);
|
local4.glMultiTexCoord2f(GL2.GL_TEXTURE1, local98, local129);
|
||||||
local4.glTexCoord2f(local32, local63);
|
local4.glTexCoord2f(local32, local63);
|
||||||
local4.glVertex2f(0.0F, (float) -this.anIntArray345[arg0]);
|
local4.glVertex2f(0.0F, (float) -this.anIntArray345[arg0]);
|
||||||
local4.glMultiTexCoord2f(GL.GL_TEXTURE1, local118, local129);
|
local4.glMultiTexCoord2f(GL2.GL_TEXTURE1, local118, local129);
|
||||||
local4.glTexCoord2f(local51, local63);
|
local4.glTexCoord2f(local51, local63);
|
||||||
local4.glVertex2f((float) this.anIntArray343[arg0], (float) -this.anIntArray345[arg0]);
|
local4.glVertex2f((float) this.anIntArray343[arg0], (float) -this.anIntArray345[arg0]);
|
||||||
local4.glEnd();
|
local4.glEnd();
|
||||||
local4.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
local4.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_TEXTURE);
|
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_TEXTURE);
|
||||||
local4.glDisable(GL.GL_TEXTURE_2D);
|
local4.glDisable(GL2.GL_TEXTURE_2D);
|
||||||
local4.glActiveTexture(GL.GL_TEXTURE0);
|
local4.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
local4.glLoadIdentity();
|
local4.glLoadIdentity();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -105,7 +105,7 @@ public final class GlFont extends Font {
|
||||||
@Override
|
@Override
|
||||||
protected final void method2855(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5, @OriginalArg(6) int arg6) {
|
protected final void method2855(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5, @OriginalArg(6) int arg6) {
|
||||||
Static239.method4151();
|
Static239.method4151();
|
||||||
@Pc(2) GL local2 = Static239.aGL1;
|
@Pc(2) GL2 local2 = Static239.gl;
|
||||||
Static239.method4177(this.anInt3638);
|
Static239.method4177(this.anInt3638);
|
||||||
local2.glColor4ub((byte) (arg5 >> 16), (byte) (arg5 >> 8), (byte) arg5, arg6 > 255 ? -1 : (byte) arg6);
|
local2.glColor4ub((byte) (arg5 >> 16), (byte) (arg5 >> 8), (byte) arg5, arg6 > 255 ? -1 : (byte) arg6);
|
||||||
local2.glTranslatef((float) arg1, (float) (Static239.anInt5329 - arg2), 0.0F);
|
local2.glTranslatef((float) arg1, (float) (Static239.anInt5329 - arg2), 0.0F);
|
||||||
|
|
@ -119,15 +119,15 @@ public final class GlFont extends Font {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.anIntArray349 = new int[256];
|
this.anIntArray349 = new int[256];
|
||||||
@Pc(9) GL local9 = Static239.aGL1;
|
@Pc(9) GL2 local9 = Static239.gl;
|
||||||
for (@Pc(11) int local11 = 0; local11 < 256; local11++) {
|
for (@Pc(11) int local11 = 0; local11 < 256; local11++) {
|
||||||
@Pc(21) float local21 = (float) (local11 % 16) / 16.0F;
|
@Pc(21) float local21 = (float) (local11 % 16) / 16.0F;
|
||||||
@Pc(28) float local28 = (float) (local11 / 16) / 16.0F;
|
@Pc(28) float local28 = (float) (local11 / 16) / 16.0F;
|
||||||
@Pc(40) float local40 = local21 + (float) this.anIntArray343[local11] / (float) this.anInt3640;
|
@Pc(40) float local40 = local21 + (float) this.anIntArray343[local11] / (float) this.anInt3640;
|
||||||
@Pc(52) float local52 = local28 + (float) this.anIntArray345[local11] / (float) this.anInt3640;
|
@Pc(52) float local52 = local28 + (float) this.anIntArray345[local11] / (float) this.anInt3640;
|
||||||
this.anIntArray349[local11] = local9.glGenLists(1);
|
this.anIntArray349[local11] = local9.glGenLists(1);
|
||||||
local9.glNewList(this.anIntArray349[local11], GL.GL_COMPILE);
|
local9.glNewList(this.anIntArray349[local11], GL2.GL_COMPILE);
|
||||||
local9.glBegin(GL.GL_TRIANGLE_FAN);
|
local9.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local9.glTexCoord2f(local40, local28);
|
local9.glTexCoord2f(local40, local28);
|
||||||
local9.glVertex2f((float) this.anIntArray343[local11], 0.0F);
|
local9.glVertex2f((float) this.anIntArray343[local11], 0.0F);
|
||||||
local9.glTexCoord2f(local21, local28);
|
local9.glTexCoord2f(local21, local28);
|
||||||
|
|
@ -182,7 +182,7 @@ public final class GlFont extends Font {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Pc(153) ByteBuffer local153 = ByteBuffer.wrap(local66);
|
@Pc(153) ByteBuffer local153 = ByteBuffer.wrap(local66);
|
||||||
@Pc(155) GL local155 = Static239.aGL1;
|
@Pc(155) GL2 local155 = Static239.gl;
|
||||||
if (this.anInt3638 == -1) {
|
if (this.anInt3638 == -1) {
|
||||||
@Pc(162) int[] local162 = new int[1];
|
@Pc(162) int[] local162 = new int[1];
|
||||||
local155.glGenTextures(1, local162, 0);
|
local155.glGenTextures(1, local162, 0);
|
||||||
|
|
@ -190,10 +190,10 @@ public final class GlFont extends Font {
|
||||||
this.anInt3639 = Static63.anInt1943;
|
this.anInt3639 = Static63.anInt1943;
|
||||||
}
|
}
|
||||||
Static239.method4177(this.anInt3638);
|
Static239.method4177(this.anInt3638);
|
||||||
local155.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_LUMINANCE_ALPHA, this.anInt3640, this.anInt3640, 0, GL.GL_LUMINANCE_ALPHA, GL.GL_UNSIGNED_BYTE, local153);
|
local155.glTexImage2D(GL2.GL_TEXTURE_2D, 0, GL2.GL_LUMINANCE_ALPHA, this.anInt3640, this.anInt3640, 0, GL2.GL_LUMINANCE_ALPHA, GL2.GL_UNSIGNED_BYTE, local153);
|
||||||
Static63.anInt1944 += local153.limit() - this.anInt3637;
|
Static63.anInt1944 += local153.limit() - this.anInt3637;
|
||||||
this.anInt3637 = local153.limit();
|
this.anInt3637 = local153.limit();
|
||||||
local155.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_NEAREST);
|
local155.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_NEAREST);
|
||||||
local155.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_NEAREST);
|
local155.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_NEAREST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -64,7 +64,7 @@ public final class GlIndexedSprite extends IndexedSprite {
|
||||||
local22 += (this.anInt4287 - this.anInt4270) * 4;
|
local22 += (this.anInt4287 - this.anInt4270) * 4;
|
||||||
}
|
}
|
||||||
@Pc(93) ByteBuffer local93 = ByteBuffer.wrap(local20);
|
@Pc(93) ByteBuffer local93 = ByteBuffer.wrap(local20);
|
||||||
@Pc(95) GL local95 = Static239.aGL1;
|
@Pc(95) GL2 local95 = Static239.gl;
|
||||||
if (this.anInt4281 == -1) {
|
if (this.anInt4281 == -1) {
|
||||||
@Pc(102) int[] local102 = new int[1];
|
@Pc(102) int[] local102 = new int[1];
|
||||||
local95.glGenTextures(1, local102, 0);
|
local95.glGenTextures(1, local102, 0);
|
||||||
|
|
@ -72,7 +72,7 @@ public final class GlIndexedSprite extends IndexedSprite {
|
||||||
this.anInt4285 = Static63.anInt1943;
|
this.anInt4285 = Static63.anInt1943;
|
||||||
}
|
}
|
||||||
Static239.method4177(this.anInt4281);
|
Static239.method4177(this.anInt4281);
|
||||||
local95.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, this.anInt4287, this.anInt4286, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, local93);
|
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;
|
Static63.anInt1944 += local93.limit() - this.anInt4284;
|
||||||
this.anInt4284 = local93.limit();
|
this.anInt4284 = local93.limit();
|
||||||
}
|
}
|
||||||
|
|
@ -83,7 +83,7 @@ public final class GlIndexedSprite extends IndexedSprite {
|
||||||
Static239.method4155();
|
Static239.method4155();
|
||||||
@Pc(5) int local5 = arg0 + this.anInt4280;
|
@Pc(5) int local5 = arg0 + this.anInt4280;
|
||||||
@Pc(10) int local10 = arg1 + this.anInt4273;
|
@Pc(10) int local10 = arg1 + this.anInt4273;
|
||||||
@Pc(12) GL local12 = Static239.aGL1;
|
@Pc(12) GL2 local12 = Static239.gl;
|
||||||
Static239.method4177(this.anInt4281);
|
Static239.method4177(this.anInt4281);
|
||||||
this.method3338();
|
this.method3338();
|
||||||
local12.glColor4f(1.0F, 1.0F, 1.0F, (float) arg2 / 256.0F);
|
local12.glColor4f(1.0F, 1.0F, 1.0F, (float) arg2 / 256.0F);
|
||||||
|
|
@ -96,9 +96,9 @@ public final class GlIndexedSprite extends IndexedSprite {
|
||||||
private void method3338() {
|
private void method3338() {
|
||||||
if (this.anInt4283 != 1) {
|
if (this.anInt4283 != 1) {
|
||||||
this.anInt4283 = 1;
|
this.anInt4283 = 1;
|
||||||
@Pc(9) GL local9 = Static239.aGL1;
|
@Pc(9) GL2 local9 = Static239.gl;
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_NEAREST);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_NEAREST);
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_NEAREST);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_NEAREST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -108,7 +108,7 @@ public final class GlIndexedSprite extends IndexedSprite {
|
||||||
Static239.method4149();
|
Static239.method4149();
|
||||||
@Pc(5) int local5 = arg0 + this.anInt4280;
|
@Pc(5) int local5 = arg0 + this.anInt4280;
|
||||||
@Pc(10) int local10 = arg1 + this.anInt4273;
|
@Pc(10) int local10 = arg1 + this.anInt4273;
|
||||||
@Pc(12) GL local12 = Static239.aGL1;
|
@Pc(12) GL2 local12 = Static239.gl;
|
||||||
Static239.method4177(this.anInt4281);
|
Static239.method4177(this.anInt4281);
|
||||||
this.method3338();
|
this.method3338();
|
||||||
local12.glTranslatef((float) local5, (float) (Static239.anInt5329 - local10), 0.0F);
|
local12.glTranslatef((float) local5, (float) (Static239.anInt5329 - local10), 0.0F);
|
||||||
|
|
@ -135,13 +135,13 @@ public final class GlIndexedSprite extends IndexedSprite {
|
||||||
private void method3339() {
|
private void method3339() {
|
||||||
@Pc(7) float local7 = (float) this.anInt4270 / (float) this.anInt4287;
|
@Pc(7) float local7 = (float) this.anInt4270 / (float) this.anInt4287;
|
||||||
@Pc(15) float local15 = (float) this.anInt4278 / (float) this.anInt4286;
|
@Pc(15) float local15 = (float) this.anInt4278 / (float) this.anInt4286;
|
||||||
@Pc(17) GL local17 = Static239.aGL1;
|
@Pc(17) GL2 local17 = Static239.gl;
|
||||||
if (this.anInt4282 == -1) {
|
if (this.anInt4282 == -1) {
|
||||||
this.anInt4282 = local17.glGenLists(1);
|
this.anInt4282 = local17.glGenLists(1);
|
||||||
this.anInt4285 = Static63.anInt1943;
|
this.anInt4285 = Static63.anInt1943;
|
||||||
}
|
}
|
||||||
local17.glNewList(this.anInt4282, GL.GL_COMPILE);
|
local17.glNewList(this.anInt4282, GL2.GL_COMPILE);
|
||||||
local17.glBegin(GL.GL_TRIANGLE_FAN);
|
local17.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local17.glTexCoord2f(local7, 0.0F);
|
local17.glTexCoord2f(local7, 0.0F);
|
||||||
local17.glVertex2f((float) this.anInt4270, 0.0F);
|
local17.glVertex2f((float) this.anInt4270, 0.0F);
|
||||||
local17.glTexCoord2f(0.0F, 0.0F);
|
local17.glTexCoord2f(0.0F, 0.0F);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -802,7 +802,7 @@ public final class GlModel extends Model {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Pc(744) GL local744 = Static239.aGL1;
|
@Pc(744) GL2 local744 = Static239.gl;
|
||||||
local744.glPushMatrix();
|
local744.glPushMatrix();
|
||||||
local744.glTranslatef((float) arg5, (float) arg6, (float) arg7);
|
local744.glTranslatef((float) arg5, (float) arg6, (float) arg7);
|
||||||
local744.glRotatef((float) arg0 * 0.17578125F, 0.0F, 1.0F, 0.0F);
|
local744.glRotatef((float) arg0 * 0.17578125F, 0.0F, 1.0F, 0.0F);
|
||||||
|
|
@ -1060,7 +1060,7 @@ public final class GlModel extends Model {
|
||||||
if (this.anInt5296 == 0) {
|
if (this.anInt5296 == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@Pc(5) GL local5 = Static239.aGL1;
|
@Pc(5) GL2 local5 = Static239.gl;
|
||||||
local5.glPushMatrix();
|
local5.glPushMatrix();
|
||||||
if (arg2 != 0) {
|
if (arg2 != 0) {
|
||||||
local5.glRotatef((float) arg2 * 0.17578125F, 1.0F, 0.0F, 0.0F);
|
local5.glRotatef((float) arg2 * 0.17578125F, 1.0F, 0.0F, 0.0F);
|
||||||
|
|
@ -2966,7 +2966,7 @@ public final class GlModel extends Model {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!td", name = "w", descriptor = "()V")
|
@OriginalMember(owner = "client!td", name = "w", descriptor = "()V")
|
||||||
private void method4121() {
|
private void method4121() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
if (this.anInt5297 == 0) {
|
if (this.anInt5297 == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -3010,55 +3010,55 @@ public final class GlModel extends Model {
|
||||||
if (this.aClass127_4.aClass155_4 != null) {
|
if (this.aClass127_4.aClass155_4 != null) {
|
||||||
this.aClass127_4.aClass155_4.method4516();
|
this.aClass127_4.aClass155_4.method4516();
|
||||||
local172 = this.aClass127_4.aClass155_4;
|
local172 = this.aClass127_4.aClass155_4;
|
||||||
local1.glVertexPointer(3, GL.GL_FLOAT, this.aClass127_4.anInt4782, (long) this.aClass127_4.anInt4777);
|
local1.glVertexPointer(3, GL2.GL_FLOAT, this.aClass127_4.anInt4782, (long) this.aClass127_4.anInt4777);
|
||||||
}
|
}
|
||||||
if (this.aClass127_1.aClass155_4 != null) {
|
if (this.aClass127_1.aClass155_4 != null) {
|
||||||
if (local172 != this.aClass127_1.aClass155_4) {
|
if (local172 != this.aClass127_1.aClass155_4) {
|
||||||
this.aClass127_1.aClass155_4.method4516();
|
this.aClass127_1.aClass155_4.method4516();
|
||||||
local172 = this.aClass127_1.aClass155_4;
|
local172 = this.aClass127_1.aClass155_4;
|
||||||
}
|
}
|
||||||
local1.glColorPointer(4, GL.GL_UNSIGNED_BYTE, this.aClass127_1.anInt4782, (long) this.aClass127_1.anInt4777);
|
local1.glColorPointer(4, GL2.GL_UNSIGNED_BYTE, this.aClass127_1.anInt4782, (long) this.aClass127_1.anInt4777);
|
||||||
}
|
}
|
||||||
if (Static178.aBoolean202 && this.aClass127_2.aClass155_4 != null) {
|
if (Static178.aBoolean202 && this.aClass127_2.aClass155_4 != null) {
|
||||||
if (local172 != this.aClass127_2.aClass155_4) {
|
if (local172 != this.aClass127_2.aClass155_4) {
|
||||||
this.aClass127_2.aClass155_4.method4516();
|
this.aClass127_2.aClass155_4.method4516();
|
||||||
local172 = this.aClass127_2.aClass155_4;
|
local172 = this.aClass127_2.aClass155_4;
|
||||||
}
|
}
|
||||||
local1.glNormalPointer(GL.GL_FLOAT, this.aClass127_2.anInt4782, (long) this.aClass127_2.anInt4777);
|
local1.glNormalPointer(GL2.GL_FLOAT, this.aClass127_2.anInt4782, (long) this.aClass127_2.anInt4777);
|
||||||
}
|
}
|
||||||
if (this.aClass127_3.aClass155_4 != null) {
|
if (this.aClass127_3.aClass155_4 != null) {
|
||||||
if (local172 != this.aClass127_3.aClass155_4) {
|
if (local172 != this.aClass127_3.aClass155_4) {
|
||||||
this.aClass127_3.aClass155_4.method4516();
|
this.aClass127_3.aClass155_4.method4516();
|
||||||
local172 = this.aClass127_3.aClass155_4;
|
local172 = this.aClass127_3.aClass155_4;
|
||||||
}
|
}
|
||||||
local1.glTexCoordPointer(2, GL.GL_FLOAT, this.aClass127_3.anInt4782, (long) this.aClass127_3.anInt4777);
|
local1.glTexCoordPointer(2, GL2.GL_FLOAT, this.aClass127_3.anInt4782, (long) this.aClass127_3.anInt4777);
|
||||||
}
|
}
|
||||||
if (this.aClass127_5.aClass155_4 != null) {
|
if (this.aClass127_5.aClass155_4 != null) {
|
||||||
this.aClass127_5.aClass155_4.method4518();
|
this.aClass127_5.aClass155_4.method4518();
|
||||||
}
|
}
|
||||||
if (this.aClass127_4.aClass155_4 == null || this.aClass127_1.aClass155_4 == null || Static178.aBoolean202 && this.aClass127_2.aClass155_4 == null || this.aClass127_3.aClass155_4 == null) {
|
if (this.aClass127_4.aClass155_4 == null || this.aClass127_1.aClass155_4 == null || Static178.aBoolean202 && this.aClass127_2.aClass155_4 == null || this.aClass127_3.aClass155_4 == null) {
|
||||||
if (Static239.aBoolean271) {
|
if (Static239.aBoolean271) {
|
||||||
local1.glBindBufferARB(GL.GL_ARRAY_BUFFER, 0);
|
local1.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);
|
||||||
}
|
}
|
||||||
if (this.aClass127_4.aClass155_4 == null) {
|
if (this.aClass127_4.aClass155_4 == null) {
|
||||||
this.aClass127_4.aByteBuffer8.position(this.aClass127_4.anInt4777);
|
this.aClass127_4.aByteBuffer8.position(this.aClass127_4.anInt4777);
|
||||||
local1.glVertexPointer(3, GL.GL_FLOAT, this.aClass127_4.anInt4782, this.aClass127_4.aByteBuffer8);
|
local1.glVertexPointer(3, GL2.GL_FLOAT, this.aClass127_4.anInt4782, this.aClass127_4.aByteBuffer8);
|
||||||
}
|
}
|
||||||
if (this.aClass127_1.aClass155_4 == null) {
|
if (this.aClass127_1.aClass155_4 == null) {
|
||||||
this.aClass127_1.aByteBuffer8.position(this.aClass127_1.anInt4777);
|
this.aClass127_1.aByteBuffer8.position(this.aClass127_1.anInt4777);
|
||||||
local1.glColorPointer(4, GL.GL_UNSIGNED_BYTE, this.aClass127_1.anInt4782, this.aClass127_1.aByteBuffer8);
|
local1.glColorPointer(4, GL2.GL_UNSIGNED_BYTE, this.aClass127_1.anInt4782, this.aClass127_1.aByteBuffer8);
|
||||||
}
|
}
|
||||||
if (Static178.aBoolean202 && this.aClass127_2.aClass155_4 == null) {
|
if (Static178.aBoolean202 && this.aClass127_2.aClass155_4 == null) {
|
||||||
this.aClass127_2.aByteBuffer8.position(this.aClass127_2.anInt4777);
|
this.aClass127_2.aByteBuffer8.position(this.aClass127_2.anInt4777);
|
||||||
local1.glNormalPointer(GL.GL_FLOAT, this.aClass127_2.anInt4782, this.aClass127_2.aByteBuffer8);
|
local1.glNormalPointer(GL2.GL_FLOAT, this.aClass127_2.anInt4782, this.aClass127_2.aByteBuffer8);
|
||||||
}
|
}
|
||||||
if (this.aClass127_3.aClass155_4 == null) {
|
if (this.aClass127_3.aClass155_4 == null) {
|
||||||
this.aClass127_3.aByteBuffer8.position(this.aClass127_3.anInt4777);
|
this.aClass127_3.aByteBuffer8.position(this.aClass127_3.anInt4777);
|
||||||
local1.glTexCoordPointer(2, GL.GL_FLOAT, this.aClass127_3.anInt4782, this.aClass127_3.aByteBuffer8);
|
local1.glTexCoordPointer(2, GL2.GL_FLOAT, this.aClass127_3.anInt4782, this.aClass127_3.aByteBuffer8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.aClass127_5.aClass155_4 == null && Static239.aBoolean271) {
|
if (this.aClass127_5.aClass155_4 == null && Static239.aBoolean271) {
|
||||||
local1.glBindBufferARB(GL.GL_ELEMENT_ARRAY_BUFFER, 0);
|
local1.glBindBuffer(GL2.GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||||
}
|
}
|
||||||
@Pc(417) int local417 = this.anIntArray463.length - 1;
|
@Pc(417) int local417 = this.anIntArray463.length - 1;
|
||||||
for (@Pc(419) int local419 = 0; local419 < local417; local419++) {
|
for (@Pc(419) int local419 = 0; local419 < local417; local419++) {
|
||||||
|
|
@ -3073,9 +3073,9 @@ public final class GlModel extends Model {
|
||||||
}
|
}
|
||||||
if (this.aClass127_5.aClass155_4 == null) {
|
if (this.aClass127_5.aClass155_4 == null) {
|
||||||
this.aClass127_5.aByteBuffer8.position(local427 * 12);
|
this.aClass127_5.aByteBuffer8.position(local427 * 12);
|
||||||
local1.glDrawElements(GL.GL_TRIANGLES, (local434 - local427) * 3, GL.GL_UNSIGNED_INT, this.aClass127_5.aByteBuffer8);
|
local1.glDrawElements(GL2.GL_TRIANGLES, (local434 - local427) * 3, GL2.GL_UNSIGNED_INT, this.aClass127_5.aByteBuffer8);
|
||||||
} else {
|
} else {
|
||||||
local1.glDrawElements(GL.GL_TRIANGLES, (local434 - local427) * 3, GL.GL_UNSIGNED_INT, (long) (local427 * 12));
|
local1.glDrawElements(GL2.GL_TRIANGLES, (local434 - local427) * 3, GL2.GL_UNSIGNED_INT, (long) (local427 * 12));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -19,7 +19,7 @@ public final class GlSolidColorTexture extends SecondaryNode {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!sd", name = "<init>", descriptor = "(I)V")
|
@OriginalMember(owner = "client!sd", name = "<init>", descriptor = "(I)V")
|
||||||
public GlSolidColorTexture(@OriginalArg(0) int arg0) {
|
public GlSolidColorTexture(@OriginalArg(0) int arg0) {
|
||||||
@Pc(9) GL local9 = Static239.aGL1;
|
@Pc(9) GL2 local9 = Static239.gl;
|
||||||
@Pc(12) int[] local12 = new int[1];
|
@Pc(12) int[] local12 = new int[1];
|
||||||
local9.glGenTextures(1, local12, 0);
|
local9.glGenTextures(1, local12, 0);
|
||||||
this.anInt5058 = local12[0];
|
this.anInt5058 = local12[0];
|
||||||
|
|
@ -28,9 +28,9 @@ public final class GlSolidColorTexture extends SecondaryNode {
|
||||||
@Pc(32) int local32 = Rasteriser.anIntArray220[arg0];
|
@Pc(32) int local32 = Rasteriser.anIntArray220[arg0];
|
||||||
@Pc(58) byte[] local58 = new byte[] { (byte) (local32 >> 16), (byte) (local32 >> 8), (byte) local32, -1 };
|
@Pc(58) byte[] local58 = new byte[] { (byte) (local32 >> 16), (byte) (local32 >> 8), (byte) local32, -1 };
|
||||||
@Pc(61) ByteBuffer local61 = ByteBuffer.wrap(local58);
|
@Pc(61) ByteBuffer local61 = ByteBuffer.wrap(local58);
|
||||||
local9.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, 1, 1, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, local61);
|
local9.glTexImage2D(GL2.GL_TEXTURE_2D, 0, GL2.GL_RGBA, 1, 1, 0, GL2.GL_RGBA, GL2.GL_UNSIGNED_BYTE, local61);
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
Static63.anInt1942 += local61.limit() - this.anInt5065;
|
Static63.anInt1942 += local61.limit() - this.anInt5065;
|
||||||
this.anInt5065 = local61.limit();
|
this.anInt5065 = local61.limit();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -59,13 +59,13 @@ public class GlSprite extends Sprite {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.anInt1873 = arg0;
|
this.anInt1873 = arg0;
|
||||||
@Pc(9) GL local9 = Static239.aGL1;
|
@Pc(9) GL2 local9 = Static239.gl;
|
||||||
if (arg0 == 2) {
|
if (arg0 == 2) {
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
} else {
|
} else {
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_NEAREST);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_NEAREST);
|
||||||
local9.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_NEAREST);
|
local9.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_NEAREST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -77,47 +77,47 @@ public class GlSprite extends Sprite {
|
||||||
Static239.method4149();
|
Static239.method4149();
|
||||||
Static239.method4177(arg2.anInt1872);
|
Static239.method4177(arg2.anInt1872);
|
||||||
arg2.method1424(1);
|
arg2.method1424(1);
|
||||||
@Pc(11) GL local11 = Static239.aGL1;
|
@Pc(11) GL2 local11 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(1);
|
this.method1424(1);
|
||||||
local11.glActiveTexture(GL.GL_TEXTURE1);
|
local11.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local11.glEnable(GL.GL_TEXTURE_2D);
|
local11.glEnable(GL2.GL_TEXTURE_2D);
|
||||||
local11.glBindTexture(GL.GL_TEXTURE_2D, arg2.anInt1872);
|
local11.glBindTexture(GL2.GL_TEXTURE_2D, arg2.anInt1872);
|
||||||
local11.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_REPLACE);
|
local11.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_REPLACE);
|
||||||
local11.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_PREVIOUS);
|
local11.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_PREVIOUS);
|
||||||
@Pc(47) float local47 = (float) (arg0 - Static46.anInt1439) / (float) arg2.anInt1870;
|
@Pc(47) float local47 = (float) (arg0 - Static46.anInt1439) / (float) arg2.anInt1870;
|
||||||
@Pc(56) float local56 = (float) (arg1 - Static46.anInt1438) / (float) arg2.anInt1874;
|
@Pc(56) float local56 = (float) (arg1 - Static46.anInt1438) / (float) arg2.anInt1874;
|
||||||
@Pc(68) float local68 = (float) (arg0 + this.anInt1867 - Static46.anInt1439) / (float) arg2.anInt1870;
|
@Pc(68) float local68 = (float) (arg0 + this.anInt1867 - Static46.anInt1439) / (float) arg2.anInt1870;
|
||||||
@Pc(80) float local80 = (float) (arg1 + this.anInt1859 - Static46.anInt1438) / (float) arg2.anInt1874;
|
@Pc(80) float local80 = (float) (arg1 + this.anInt1859 - Static46.anInt1438) / (float) arg2.anInt1874;
|
||||||
@Pc(85) int local85 = arg0 + this.anInt1863;
|
@Pc(85) int local85 = arg0 + this.anInt1863;
|
||||||
@Pc(90) int local90 = arg1 + this.anInt1861;
|
@Pc(90) int local90 = arg1 + this.anInt1861;
|
||||||
local11.glBegin(GL.GL_TRIANGLE_FAN);
|
local11.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
local11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
@Pc(107) float local107 = (float) this.anInt1867 / (float) this.anInt1870;
|
@Pc(107) float local107 = (float) this.anInt1867 / (float) this.anInt1870;
|
||||||
@Pc(115) float local115 = (float) this.anInt1859 / (float) this.anInt1874;
|
@Pc(115) float local115 = (float) this.anInt1859 / (float) this.anInt1874;
|
||||||
local11.glMultiTexCoord2f(GL.GL_TEXTURE1, local68, local56);
|
local11.glMultiTexCoord2f(GL2.GL_TEXTURE1, local68, local56);
|
||||||
local11.glTexCoord2f(local107, 0.0F);
|
local11.glTexCoord2f(local107, 0.0F);
|
||||||
local11.glVertex2f((float) (local85 + this.anInt1867), (float) (Static239.anInt5329 - local90));
|
local11.glVertex2f((float) (local85 + this.anInt1867), (float) (Static239.anInt5329 - local90));
|
||||||
local11.glMultiTexCoord2f(GL.GL_TEXTURE1, local47, local56);
|
local11.glMultiTexCoord2f(GL2.GL_TEXTURE1, local47, local56);
|
||||||
local11.glTexCoord2f(0.0F, 0.0F);
|
local11.glTexCoord2f(0.0F, 0.0F);
|
||||||
local11.glVertex2f((float) local85, (float) (Static239.anInt5329 - local90));
|
local11.glVertex2f((float) local85, (float) (Static239.anInt5329 - local90));
|
||||||
local11.glMultiTexCoord2f(GL.GL_TEXTURE1, local47, local80);
|
local11.glMultiTexCoord2f(GL2.GL_TEXTURE1, local47, local80);
|
||||||
local11.glTexCoord2f(0.0F, local115);
|
local11.glTexCoord2f(0.0F, local115);
|
||||||
local11.glVertex2f((float) local85, (float) (Static239.anInt5329 - local90 - this.anInt1859));
|
local11.glVertex2f((float) local85, (float) (Static239.anInt5329 - local90 - this.anInt1859));
|
||||||
local11.glMultiTexCoord2f(GL.GL_TEXTURE1, local68, local80);
|
local11.glMultiTexCoord2f(GL2.GL_TEXTURE1, local68, local80);
|
||||||
local11.glTexCoord2f(local107, local115);
|
local11.glTexCoord2f(local107, local115);
|
||||||
local11.glVertex2f((float) (local85 + this.anInt1867), (float) (Static239.anInt5329 - local90 - this.anInt1859));
|
local11.glVertex2f((float) (local85 + this.anInt1867), (float) (Static239.anInt5329 - local90 - this.anInt1859));
|
||||||
local11.glEnd();
|
local11.glEnd();
|
||||||
local11.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
local11.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
local11.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_TEXTURE);
|
local11.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_TEXTURE);
|
||||||
local11.glDisable(GL.GL_TEXTURE_2D);
|
local11.glDisable(GL2.GL_TEXTURE_2D);
|
||||||
local11.glActiveTexture(GL.GL_TEXTURE0);
|
local11.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!cf", name = "c", descriptor = "(IIIII)V")
|
@OriginalMember(owner = "client!cf", name = "c", descriptor = "(IIIII)V")
|
||||||
public final void method1426(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4) {
|
public final void method1426(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4) {
|
||||||
Static239.method4155();
|
Static239.method4155();
|
||||||
@Pc(2) GL local2 = Static239.aGL1;
|
@Pc(2) GL2 local2 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(1);
|
this.method1424(1);
|
||||||
@Pc(16) float local16 = (float) this.anInt1867 / (float) this.anInt1870;
|
@Pc(16) float local16 = (float) this.anInt1867 / (float) this.anInt1870;
|
||||||
|
|
@ -129,7 +129,7 @@ public class GlSprite extends Sprite {
|
||||||
@Pc(53) int local53 = Static239.anInt5329 - arg1 - this.anInt1861;
|
@Pc(53) int local53 = Static239.anInt5329 - arg1 - this.anInt1861;
|
||||||
@Pc(60) int local60 = local53 - this.anInt1859 * arg4;
|
@Pc(60) int local60 = local53 - this.anInt1859 * arg4;
|
||||||
@Pc(65) float local65 = (float) arg2 / 256.0F;
|
@Pc(65) float local65 = (float) arg2 / 256.0F;
|
||||||
local2.glBegin(GL.GL_TRIANGLE_FAN);
|
local2.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local2.glColor4f(1.0F, 1.0F, 1.0F, local65);
|
local2.glColor4f(1.0F, 1.0F, 1.0F, local65);
|
||||||
local2.glTexCoord2f(local29, 0.0F);
|
local2.glTexCoord2f(local29, 0.0F);
|
||||||
local2.glVertex2f((float) local46, (float) local53);
|
local2.glVertex2f((float) local46, (float) local53);
|
||||||
|
|
@ -150,14 +150,14 @@ public class GlSprite extends Sprite {
|
||||||
Static239.method4149();
|
Static239.method4149();
|
||||||
Static239.method4177(arg8.anInt1872);
|
Static239.method4177(arg8.anInt1872);
|
||||||
arg8.method1424(1);
|
arg8.method1424(1);
|
||||||
@Pc(11) GL local11 = Static239.aGL1;
|
@Pc(11) GL2 local11 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(1);
|
this.method1424(1);
|
||||||
local11.glActiveTexture(GL.GL_TEXTURE1);
|
local11.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local11.glEnable(GL.GL_TEXTURE_2D);
|
local11.glEnable(GL2.GL_TEXTURE_2D);
|
||||||
local11.glBindTexture(GL.GL_TEXTURE_2D, arg8.anInt1872);
|
local11.glBindTexture(GL2.GL_TEXTURE_2D, arg8.anInt1872);
|
||||||
local11.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_REPLACE);
|
local11.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_REPLACE);
|
||||||
local11.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_PREVIOUS);
|
local11.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_PREVIOUS);
|
||||||
@Pc(43) int local43 = -arg2 / 2;
|
@Pc(43) int local43 = -arg2 / 2;
|
||||||
@Pc(48) int local48 = -arg3 / 2;
|
@Pc(48) int local48 = -arg3 / 2;
|
||||||
@Pc(51) int local51 = -local43;
|
@Pc(51) int local51 = -local43;
|
||||||
|
|
@ -176,27 +176,27 @@ public class GlSprite extends Sprite {
|
||||||
@Pc(180) int local180 = (arg5 << 16) + (local54 * local84 - local51 * local78);
|
@Pc(180) int local180 = (arg5 << 16) + (local54 * local84 - local51 * local78);
|
||||||
@Pc(188) float local188 = (float) arg8.anInt1867 / (float) arg8.anInt1870;
|
@Pc(188) float local188 = (float) arg8.anInt1867 / (float) arg8.anInt1870;
|
||||||
@Pc(196) float local196 = (float) arg8.anInt1859 / (float) arg8.anInt1874;
|
@Pc(196) float local196 = (float) arg8.anInt1859 / (float) arg8.anInt1874;
|
||||||
local11.glBegin(GL.GL_TRIANGLE_FAN);
|
local11.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
local11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
@Pc(211) float local211 = (float) this.anInt1870 * 65536.0F;
|
@Pc(211) float local211 = (float) this.anInt1870 * 65536.0F;
|
||||||
@Pc(217) float local217 = (float) (this.anInt1874 * 65536);
|
@Pc(217) float local217 = (float) (this.anInt1874 * 65536);
|
||||||
local11.glMultiTexCoord2f(GL.GL_TEXTURE1, local188, 0.0F);
|
local11.glMultiTexCoord2f(GL2.GL_TEXTURE1, local188, 0.0F);
|
||||||
local11.glTexCoord2f((float) local120 / local211, (float) local132 / local217);
|
local11.glTexCoord2f((float) local120 / local211, (float) local132 / local217);
|
||||||
local11.glVertex2f((float) (arg0 + arg2), (float) (Static239.anInt5329 - arg1));
|
local11.glVertex2f((float) (arg0 + arg2), (float) (Static239.anInt5329 - arg1));
|
||||||
local11.glMultiTexCoord2f(GL.GL_TEXTURE1, 0.0F, 0.0F);
|
local11.glMultiTexCoord2f(GL2.GL_TEXTURE1, 0.0F, 0.0F);
|
||||||
local11.glTexCoord2f((float) local96 / local211, (float) local108 / local217);
|
local11.glTexCoord2f((float) local96 / local211, (float) local108 / local217);
|
||||||
local11.glVertex2f((float) arg0, (float) (Static239.anInt5329 - arg1));
|
local11.glVertex2f((float) arg0, (float) (Static239.anInt5329 - arg1));
|
||||||
local11.glMultiTexCoord2f(GL.GL_TEXTURE1, 0.0F, local196);
|
local11.glMultiTexCoord2f(GL2.GL_TEXTURE1, 0.0F, local196);
|
||||||
local11.glTexCoord2f((float) local144 / local211, (float) local156 / local217);
|
local11.glTexCoord2f((float) local144 / local211, (float) local156 / local217);
|
||||||
local11.glVertex2f((float) arg0, (float) (Static239.anInt5329 - arg1 - arg3));
|
local11.glVertex2f((float) arg0, (float) (Static239.anInt5329 - arg1 - arg3));
|
||||||
local11.glMultiTexCoord2f(GL.GL_TEXTURE1, local188, local196);
|
local11.glMultiTexCoord2f(GL2.GL_TEXTURE1, local188, local196);
|
||||||
local11.glTexCoord2f((float) local168 / local211, (float) local180 / local217);
|
local11.glTexCoord2f((float) local168 / local211, (float) local180 / local217);
|
||||||
local11.glVertex2f((float) (arg0 + arg2), (float) (Static239.anInt5329 - arg1 - arg3));
|
local11.glVertex2f((float) (arg0 + arg2), (float) (Static239.anInt5329 - arg1 - arg3));
|
||||||
local11.glEnd();
|
local11.glEnd();
|
||||||
local11.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
local11.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
local11.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_TEXTURE);
|
local11.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_TEXTURE);
|
||||||
local11.glDisable(GL.GL_TEXTURE_2D);
|
local11.glDisable(GL2.GL_TEXTURE_2D);
|
||||||
local11.glActiveTexture(GL.GL_TEXTURE0);
|
local11.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!cf", name = "d", descriptor = "(II)V")
|
@OriginalMember(owner = "client!cf", name = "d", descriptor = "(II)V")
|
||||||
|
|
@ -205,13 +205,13 @@ public class GlSprite extends Sprite {
|
||||||
Static239.method4149();
|
Static239.method4149();
|
||||||
@Pc(5) int local5 = arg0 + this.anInt1863;
|
@Pc(5) int local5 = arg0 + this.anInt1863;
|
||||||
@Pc(10) int local10 = arg1 + this.anInt1861;
|
@Pc(10) int local10 = arg1 + this.anInt1861;
|
||||||
@Pc(12) GL local12 = Static239.aGL1;
|
@Pc(12) GL2 local12 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(1);
|
this.method1424(1);
|
||||||
local12.glTranslatef((float) local5, (float) (Static239.anInt5329 - local10), 0.0F);
|
local12.glTranslatef((float) local5, (float) (Static239.anInt5329 - local10), 0.0F);
|
||||||
@Pc(35) float local35 = (float) this.anInt1867 / (float) this.anInt1870;
|
@Pc(35) float local35 = (float) this.anInt1867 / (float) this.anInt1870;
|
||||||
@Pc(43) float local43 = (float) this.anInt1859 / (float) this.anInt1874;
|
@Pc(43) float local43 = (float) this.anInt1859 / (float) this.anInt1874;
|
||||||
local12.glBegin(GL.GL_TRIANGLE_FAN);
|
local12.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local12.glTexCoord2f(0.0F, 0.0F);
|
local12.glTexCoord2f(0.0F, 0.0F);
|
||||||
local12.glVertex2f((float) this.anInt1867, 0.0F);
|
local12.glVertex2f((float) this.anInt1867, 0.0F);
|
||||||
local12.glTexCoord2f(local35, 0.0F);
|
local12.glTexCoord2f(local35, 0.0F);
|
||||||
|
|
@ -230,7 +230,7 @@ public class GlSprite extends Sprite {
|
||||||
Static239.method4149();
|
Static239.method4149();
|
||||||
@Pc(5) int local5 = arg0 + this.anInt1863;
|
@Pc(5) int local5 = arg0 + this.anInt1863;
|
||||||
@Pc(10) int local10 = arg1 + this.anInt1861;
|
@Pc(10) int local10 = arg1 + this.anInt1861;
|
||||||
@Pc(12) GL local12 = Static239.aGL1;
|
@Pc(12) GL2 local12 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(1);
|
this.method1424(1);
|
||||||
local12.glTranslatef((float) local5, (float) (Static239.anInt5329 - local10), 0.0F);
|
local12.glTranslatef((float) local5, (float) (Static239.anInt5329 - local10), 0.0F);
|
||||||
|
|
@ -241,7 +241,7 @@ public class GlSprite extends Sprite {
|
||||||
@OriginalMember(owner = "client!cf", name = "b", descriptor = "(IIIIII)V")
|
@OriginalMember(owner = "client!cf", name = "b", descriptor = "(IIIIII)V")
|
||||||
public final void method1428(@OriginalArg(2) int arg0, @OriginalArg(3) int arg1, @OriginalArg(4) int arg2) {
|
public final void method1428(@OriginalArg(2) int arg0, @OriginalArg(3) int arg1, @OriginalArg(4) int arg2) {
|
||||||
Static239.method4149();
|
Static239.method4149();
|
||||||
@Pc(2) GL local2 = Static239.aGL1;
|
@Pc(2) GL2 local2 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(2);
|
this.method1424(2);
|
||||||
@Pc(15) int local15 = 240 - (this.anInt1863 << 4);
|
@Pc(15) int local15 = 240 - (this.anInt1863 << 4);
|
||||||
|
|
@ -285,7 +285,7 @@ public class GlSprite extends Sprite {
|
||||||
if (local11 < local21) {
|
if (local11 < local21) {
|
||||||
arg3 = ((local11 << 16) + local33 - local15 - 1) / local33;
|
arg3 = ((local11 << 16) + local33 - local15 - 1) / local33;
|
||||||
}
|
}
|
||||||
@Pc(123) GL local123 = Static239.aGL1;
|
@Pc(123) GL2 local123 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(2);
|
this.method1424(2);
|
||||||
@Pc(132) float local132 = (float) arg0;
|
@Pc(132) float local132 = (float) arg0;
|
||||||
|
|
@ -294,7 +294,7 @@ public class GlSprite extends Sprite {
|
||||||
@Pc(147) float local147 = local142 - (float) arg3;
|
@Pc(147) float local147 = local142 - (float) arg3;
|
||||||
@Pc(155) float local155 = (float) this.anInt1867 / (float) this.anInt1870;
|
@Pc(155) float local155 = (float) this.anInt1867 / (float) this.anInt1870;
|
||||||
@Pc(163) float local163 = (float) this.anInt1859 / (float) this.anInt1874;
|
@Pc(163) float local163 = (float) this.anInt1859 / (float) this.anInt1874;
|
||||||
local123.glBegin(GL.GL_TRIANGLE_FAN);
|
local123.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local123.glTexCoord2f(local155, 0.0F);
|
local123.glTexCoord2f(local155, 0.0F);
|
||||||
local123.glVertex2f(local137, local142);
|
local123.glVertex2f(local137, local142);
|
||||||
local123.glTexCoord2f(0.0F, 0.0F);
|
local123.glTexCoord2f(0.0F, 0.0F);
|
||||||
|
|
@ -312,7 +312,7 @@ public class GlSprite extends Sprite {
|
||||||
Static239.method4149();
|
Static239.method4149();
|
||||||
@Pc(5) int local5 = arg0 + this.anInt1863;
|
@Pc(5) int local5 = arg0 + this.anInt1863;
|
||||||
@Pc(10) int local10 = arg1 + this.anInt1861;
|
@Pc(10) int local10 = arg1 + this.anInt1861;
|
||||||
@Pc(12) GL local12 = Static239.aGL1;
|
@Pc(12) GL2 local12 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(1);
|
this.method1424(1);
|
||||||
local12.glTranslatef((float) local5, (float) (Static239.anInt5329 - local10), 0.0F);
|
local12.glTranslatef((float) local5, (float) (Static239.anInt5329 - local10), 0.0F);
|
||||||
|
|
@ -339,7 +339,7 @@ public class GlSprite extends Sprite {
|
||||||
@Override
|
@Override
|
||||||
protected final void method1416(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5) {
|
protected final void method1416(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(5) int arg5) {
|
||||||
Static239.method4149();
|
Static239.method4149();
|
||||||
@Pc(2) GL local2 = Static239.aGL1;
|
@Pc(2) GL2 local2 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(1);
|
this.method1424(1);
|
||||||
@Pc(15) int local15 = arg0 - (this.anInt1863 << 4);
|
@Pc(15) int local15 = arg0 - (this.anInt1863 << 4);
|
||||||
|
|
@ -386,7 +386,7 @@ public class GlSprite extends Sprite {
|
||||||
if (local11 < local21) {
|
if (local11 < local21) {
|
||||||
arg3 = ((local11 << 16) + local33 - local15 - 1) / local33;
|
arg3 = ((local11 << 16) + local33 - local15 - 1) / local33;
|
||||||
}
|
}
|
||||||
@Pc(123) GL local123 = Static239.aGL1;
|
@Pc(123) GL2 local123 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(1);
|
this.method1424(1);
|
||||||
@Pc(132) float local132 = (float) arg0;
|
@Pc(132) float local132 = (float) arg0;
|
||||||
|
|
@ -396,7 +396,7 @@ public class GlSprite extends Sprite {
|
||||||
@Pc(155) float local155 = (float) this.anInt1867 / (float) this.anInt1870;
|
@Pc(155) float local155 = (float) this.anInt1867 / (float) this.anInt1870;
|
||||||
@Pc(163) float local163 = (float) this.anInt1859 / (float) this.anInt1874;
|
@Pc(163) float local163 = (float) this.anInt1859 / (float) this.anInt1874;
|
||||||
@Pc(168) float local168 = (float) arg4 / 256.0F;
|
@Pc(168) float local168 = (float) arg4 / 256.0F;
|
||||||
local123.glBegin(GL.GL_TRIANGLE_FAN);
|
local123.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local123.glColor4f(1.0F, 1.0F, 1.0F, local168);
|
local123.glColor4f(1.0F, 1.0F, 1.0F, local168);
|
||||||
local123.glTexCoord2f(local155, 0.0F);
|
local123.glTexCoord2f(local155, 0.0F);
|
||||||
local123.glVertex2f(local137, local142);
|
local123.glVertex2f(local137, local142);
|
||||||
|
|
@ -412,7 +412,7 @@ public class GlSprite extends Sprite {
|
||||||
@OriginalMember(owner = "client!cf", name = "b", descriptor = "(IIII)V")
|
@OriginalMember(owner = "client!cf", name = "b", descriptor = "(IIII)V")
|
||||||
public final void method1429(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) {
|
public final void method1429(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) {
|
||||||
Static239.method4149();
|
Static239.method4149();
|
||||||
@Pc(2) GL local2 = Static239.aGL1;
|
@Pc(2) GL2 local2 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(1);
|
this.method1424(1);
|
||||||
@Pc(16) float local16 = (float) this.anInt1867 / (float) this.anInt1870;
|
@Pc(16) float local16 = (float) this.anInt1867 / (float) this.anInt1870;
|
||||||
|
|
@ -423,7 +423,7 @@ public class GlSprite extends Sprite {
|
||||||
@Pc(46) int local46 = local39 + this.anInt1867 * arg2;
|
@Pc(46) int local46 = local39 + this.anInt1867 * arg2;
|
||||||
@Pc(53) int local53 = Static239.anInt5329 - arg1 - this.anInt1861;
|
@Pc(53) int local53 = Static239.anInt5329 - arg1 - this.anInt1861;
|
||||||
@Pc(60) int local60 = local53 - this.anInt1859 * arg3;
|
@Pc(60) int local60 = local53 - this.anInt1859 * arg3;
|
||||||
local2.glBegin(GL.GL_TRIANGLE_FAN);
|
local2.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local2.glTexCoord2f(local29, 0.0F);
|
local2.glTexCoord2f(local29, 0.0F);
|
||||||
local2.glVertex2f((float) local46, (float) local53);
|
local2.glVertex2f((float) local46, (float) local53);
|
||||||
local2.glTexCoord2f(0.0F, 0.0F);
|
local2.glTexCoord2f(0.0F, 0.0F);
|
||||||
|
|
@ -458,7 +458,7 @@ public class GlSprite extends Sprite {
|
||||||
local22 += local32;
|
local22 += local32;
|
||||||
}
|
}
|
||||||
@Pc(91) ByteBuffer local91 = ByteBuffer.wrap(local20);
|
@Pc(91) ByteBuffer local91 = ByteBuffer.wrap(local20);
|
||||||
@Pc(93) GL local93 = Static239.aGL1;
|
@Pc(93) GL2 local93 = Static239.gl;
|
||||||
if (this.anInt1872 == -1) {
|
if (this.anInt1872 == -1) {
|
||||||
@Pc(100) int[] local100 = new int[1];
|
@Pc(100) int[] local100 = new int[1];
|
||||||
local93.glGenTextures(1, local100, 0);
|
local93.glGenTextures(1, local100, 0);
|
||||||
|
|
@ -466,7 +466,7 @@ public class GlSprite extends Sprite {
|
||||||
this.anInt1875 = Static63.anInt1943;
|
this.anInt1875 = Static63.anInt1943;
|
||||||
}
|
}
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
local93.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, this.anInt1870, this.anInt1874, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, local91);
|
local93.glTexImage2D(GL2.GL_TEXTURE_2D, 0, GL2.GL_RGBA, this.anInt1870, this.anInt1874, 0, GL2.GL_RGBA, GL2.GL_UNSIGNED_BYTE, local91);
|
||||||
Static63.anInt1944 += local91.limit() - this.anInt1869;
|
Static63.anInt1944 += local91.limit() - this.anInt1869;
|
||||||
this.anInt1869 = local91.limit();
|
this.anInt1869 = local91.limit();
|
||||||
}
|
}
|
||||||
|
|
@ -477,7 +477,7 @@ public class GlSprite extends Sprite {
|
||||||
Static239.method4155();
|
Static239.method4155();
|
||||||
@Pc(5) int local5 = arg0 + this.anInt1863;
|
@Pc(5) int local5 = arg0 + this.anInt1863;
|
||||||
@Pc(10) int local10 = arg1 + this.anInt1861;
|
@Pc(10) int local10 = arg1 + this.anInt1861;
|
||||||
@Pc(12) GL local12 = Static239.aGL1;
|
@Pc(12) GL2 local12 = Static239.gl;
|
||||||
Static239.method4177(this.anInt1872);
|
Static239.method4177(this.anInt1872);
|
||||||
this.method1424(1);
|
this.method1424(1);
|
||||||
local12.glColor4f(1.0F, 1.0F, 1.0F, (float) arg2 / 256.0F);
|
local12.glColor4f(1.0F, 1.0F, 1.0F, (float) arg2 / 256.0F);
|
||||||
|
|
@ -490,13 +490,13 @@ public class GlSprite extends Sprite {
|
||||||
private void method1431() {
|
private void method1431() {
|
||||||
@Pc(7) float local7 = (float) this.anInt1867 / (float) this.anInt1870;
|
@Pc(7) float local7 = (float) this.anInt1867 / (float) this.anInt1870;
|
||||||
@Pc(15) float local15 = (float) this.anInt1859 / (float) this.anInt1874;
|
@Pc(15) float local15 = (float) this.anInt1859 / (float) this.anInt1874;
|
||||||
@Pc(17) GL local17 = Static239.aGL1;
|
@Pc(17) GL2 local17 = Static239.gl;
|
||||||
if (this.anInt1871 == -1) {
|
if (this.anInt1871 == -1) {
|
||||||
this.anInt1871 = local17.glGenLists(1);
|
this.anInt1871 = local17.glGenLists(1);
|
||||||
this.anInt1875 = Static63.anInt1943;
|
this.anInt1875 = Static63.anInt1943;
|
||||||
}
|
}
|
||||||
local17.glNewList(this.anInt1871, GL.GL_COMPILE);
|
local17.glNewList(this.anInt1871, GL2.GL_COMPILE);
|
||||||
local17.glBegin(GL.GL_TRIANGLE_FAN);
|
local17.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local17.glTexCoord2f(local7, 0.0F);
|
local17.glTexCoord2f(local7, 0.0F);
|
||||||
local17.glVertex2f((float) this.anInt1867, 0.0F);
|
local17.glVertex2f((float) this.anInt1867, 0.0F);
|
||||||
local17.glTexCoord2f(0.0F, 0.0F);
|
local17.glTexCoord2f(0.0F, 0.0F);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import javax.media.opengl.glu.GLU;
|
import com.jogamp.opengl.glu.gl2es1.GLUgl2es1;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -172,7 +172,7 @@ public final class GlTexture extends SecondaryNode {
|
||||||
if (!this.aClass88_1.method2729(arg1, arg0)) {
|
if (!this.aClass88_1.method2729(arg1, arg0)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@Pc(22) GL local22 = Static239.aGL1;
|
@Pc(22) GL2 local22 = Static239.gl;
|
||||||
@Pc(28) int local28 = arg2 ? 64 : 128;
|
@Pc(28) int local28 = arg2 ? 64 : 128;
|
||||||
@Pc(31) int local31 = Static56.method1314();
|
@Pc(31) int local31 = Static56.method1314();
|
||||||
if ((local31 & 0x1) == 0) {
|
if ((local31 & 0x1) == 0) {
|
||||||
|
|
@ -184,20 +184,20 @@ public final class GlTexture extends SecondaryNode {
|
||||||
Static239.method4177(this.anInt5493);
|
Static239.method4177(this.anInt5493);
|
||||||
@Pc(82) ByteBuffer local82 = ByteBuffer.wrap(this.aClass88_1.method2728(local28, local28, this.aBoolean288, arg1, 0.7D, arg0));
|
@Pc(82) ByteBuffer local82 = ByteBuffer.wrap(this.aClass88_1.method2728(local28, local28, this.aBoolean288, arg1, 0.7D, arg0));
|
||||||
if (this.anInt5489 == 2) {
|
if (this.anInt5489 == 2) {
|
||||||
@Pc(201) GLU local201 = new GLU();
|
@Pc(201) GLUgl2es1 local201 = new GLUgl2es1();
|
||||||
local201.gluBuild2DMipmaps(3553, 6408, local28, local28, 6408, 5121, local82);
|
local201.gluBuild2DMipmaps(3553, 6408, local28, local28, 6408, 5121, local82);
|
||||||
local22.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR_MIPMAP_LINEAR);
|
local22.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR_MIPMAP_LINEAR);
|
||||||
local22.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local22.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
Static63.anInt1942 += local82.limit() * 4 / 3 - this.anInt5495;
|
Static63.anInt1942 += local82.limit() * 4 / 3 - this.anInt5495;
|
||||||
this.anInt5495 = local82.limit() * 4 / 3;
|
this.anInt5495 = local82.limit() * 4 / 3;
|
||||||
} else if (this.anInt5489 == 1) {
|
} else if (this.anInt5489 == 1) {
|
||||||
@Pc(129) int local129 = 0;
|
@Pc(129) int local129 = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
local22.glTexImage2D(GL.GL_TEXTURE_2D, local129++, GL.GL_RGBA, local28, local28, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, local82);
|
local22.glTexImage2D(GL2.GL_TEXTURE_2D, local129++, GL2.GL_RGBA, local28, local28, 0, GL2.GL_RGBA, GL2.GL_UNSIGNED_BYTE, local82);
|
||||||
local28 >>= 0x1;
|
local28 >>= 0x1;
|
||||||
if (local28 == 0) {
|
if (local28 == 0) {
|
||||||
local22.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR_MIPMAP_LINEAR);
|
local22.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR_MIPMAP_LINEAR);
|
||||||
local22.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local22.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
Static63.anInt1942 += local82.limit() * 4 / 3 - this.anInt5495;
|
Static63.anInt1942 += local82.limit() * 4 / 3 - this.anInt5495;
|
||||||
this.anInt5495 = local82.limit() * 4 / 3;
|
this.anInt5495 = local82.limit() * 4 / 3;
|
||||||
break;
|
break;
|
||||||
|
|
@ -205,14 +205,14 @@ public final class GlTexture extends SecondaryNode {
|
||||||
local82 = ByteBuffer.wrap(this.aClass88_1.method2728(local28, local28, this.aBoolean288, arg1, 0.7D, arg0));
|
local82 = ByteBuffer.wrap(this.aClass88_1.method2728(local28, local28, this.aBoolean288, arg1, 0.7D, arg0));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
local22.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, local28, local28, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, local82);
|
local22.glTexImage2D(GL2.GL_TEXTURE_2D, 0, GL2.GL_RGBA, local28, local28, 0, GL2.GL_RGBA, GL2.GL_UNSIGNED_BYTE, local82);
|
||||||
local22.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local22.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local22.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local22.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
Static63.anInt1942 += local82.limit() - this.anInt5495;
|
Static63.anInt1942 += local82.limit() - this.anInt5495;
|
||||||
this.anInt5495 = local82.limit();
|
this.anInt5495 = local82.limit();
|
||||||
}
|
}
|
||||||
local22.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, this.aBoolean285 ? GL.GL_REPEAT : GL.GL_CLAMP_TO_EDGE);
|
local22.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_WRAP_S, this.aBoolean285 ? GL2.GL_REPEAT : GL2.GL_CLAMP_TO_EDGE);
|
||||||
local22.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, this.aBoolean284 ? GL.GL_REPEAT : GL.GL_CLAMP_TO_EDGE);
|
local22.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_WRAP_T, this.aBoolean284 ? GL2.GL_REPEAT : GL2.GL_CLAMP_TO_EDGE);
|
||||||
} else {
|
} else {
|
||||||
Static239.method4177(this.anInt5493);
|
Static239.method4177(this.anInt5493);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -29,9 +29,9 @@ public final class GlVertexBufferObject {
|
||||||
public GlVertexBufferObject(@OriginalArg(0) boolean arg0) {
|
public GlVertexBufferObject(@OriginalArg(0) boolean arg0) {
|
||||||
this.anInt5760 = -1;
|
this.anInt5760 = -1;
|
||||||
this.anInt5762 = 0;
|
this.anInt5762 = 0;
|
||||||
@Pc(9) GL local9 = Static239.aGL1;
|
@Pc(9) GL2 local9 = Static239.gl;
|
||||||
@Pc(12) int[] local12 = new int[1];
|
@Pc(12) int[] local12 = new int[1];
|
||||||
local9.glGenBuffersARB(1, local12, 0);
|
local9.glGenBuffers(1, local12, 0);
|
||||||
this.aBoolean300 = arg0;
|
this.aBoolean300 = arg0;
|
||||||
this.anInt5760 = local12[0];
|
this.anInt5760 = local12[0];
|
||||||
this.anInt5761 = Static63.anInt1943;
|
this.anInt5761 = Static63.anInt1943;
|
||||||
|
|
@ -40,9 +40,9 @@ public final class GlVertexBufferObject {
|
||||||
@OriginalMember(owner = "client!vi", name = "a", descriptor = "(Ljava/nio/ByteBuffer;)V")
|
@OriginalMember(owner = "client!vi", name = "a", descriptor = "(Ljava/nio/ByteBuffer;)V")
|
||||||
public final void method4515(@OriginalArg(0) ByteBuffer arg0) {
|
public final void method4515(@OriginalArg(0) ByteBuffer arg0) {
|
||||||
if (arg0.limit() <= this.anInt5762) {
|
if (arg0.limit() <= this.anInt5762) {
|
||||||
@Pc(6) GL local6 = Static239.aGL1;
|
@Pc(6) GL2 local6 = Static239.gl;
|
||||||
local6.glBindBufferARB(GL.GL_ARRAY_BUFFER, this.anInt5760);
|
local6.glBindBuffer(GL2.GL_ARRAY_BUFFER, this.anInt5760);
|
||||||
local6.glBufferSubDataARB(GL.GL_ARRAY_BUFFER, 0, arg0.limit(), arg0);
|
local6.glBufferSubData(GL2.GL_ARRAY_BUFFER, 0, arg0.limit(), arg0);
|
||||||
} else {
|
} else {
|
||||||
this.method4519(arg0);
|
this.method4519(arg0);
|
||||||
}
|
}
|
||||||
|
|
@ -61,30 +61,30 @@ public final class GlVertexBufferObject {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!vi", name = "a", descriptor = "()V")
|
@OriginalMember(owner = "client!vi", name = "a", descriptor = "()V")
|
||||||
public final void method4516() {
|
public final void method4516() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glBindBufferARB(GL.GL_ARRAY_BUFFER, this.anInt5760);
|
local1.glBindBuffer(GL2.GL_ARRAY_BUFFER, this.anInt5760);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!vi", name = "b", descriptor = "(Ljava/nio/ByteBuffer;)V")
|
@OriginalMember(owner = "client!vi", name = "b", descriptor = "(Ljava/nio/ByteBuffer;)V")
|
||||||
public final void method4517(@OriginalArg(0) ByteBuffer arg0) {
|
public final void method4517(@OriginalArg(0) ByteBuffer arg0) {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glBindBufferARB(GL.GL_ELEMENT_ARRAY_BUFFER, this.anInt5760);
|
local1.glBindBuffer(GL2.GL_ELEMENT_ARRAY_BUFFER, this.anInt5760);
|
||||||
local1.glBufferDataARB(GL.GL_ELEMENT_ARRAY_BUFFER, arg0.limit(), arg0, this.aBoolean300 ? GL.GL_STREAM_DRAW : GL.GL_STATIC_DRAW);
|
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;
|
Static63.anInt1945 += arg0.limit() - this.anInt5762;
|
||||||
this.anInt5762 = arg0.limit();
|
this.anInt5762 = arg0.limit();
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!vi", name = "b", descriptor = "()V")
|
@OriginalMember(owner = "client!vi", name = "b", descriptor = "()V")
|
||||||
public final void method4518() {
|
public final void method4518() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glBindBufferARB(GL.GL_ELEMENT_ARRAY_BUFFER, this.anInt5760);
|
local1.glBindBuffer(GL2.GL_ELEMENT_ARRAY_BUFFER, this.anInt5760);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!vi", name = "c", descriptor = "(Ljava/nio/ByteBuffer;)V")
|
@OriginalMember(owner = "client!vi", name = "c", descriptor = "(Ljava/nio/ByteBuffer;)V")
|
||||||
public final void method4519(@OriginalArg(0) ByteBuffer arg0) {
|
public final void method4519(@OriginalArg(0) ByteBuffer arg0) {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glBindBufferARB(GL.GL_ARRAY_BUFFER, this.anInt5760);
|
local1.glBindBuffer(GL2.GL_ARRAY_BUFFER, this.anInt5760);
|
||||||
local1.glBufferDataARB(GL.GL_ARRAY_BUFFER, arg0.limit(), arg0, this.aBoolean300 ? GL.GL_STREAM_DRAW : GL.GL_STATIC_DRAW);
|
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;
|
Static63.anInt1945 += arg0.limit() - this.anInt5762;
|
||||||
this.anInt5762 = arg0.limit();
|
this.anInt5762 = arg0.limit();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.nio.ByteOrder;
|
import java.nio.ByteOrder;
|
||||||
import java.nio.FloatBuffer;
|
import java.nio.FloatBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -26,7 +26,7 @@ public final class LiquidMaterialRenderer implements MaterialRenderer {
|
||||||
public LiquidMaterialRenderer() {
|
public LiquidMaterialRenderer() {
|
||||||
if (this.anInt4831 < 0 && (Static239.aBoolean274 && Static239.anInt5322 >= 2)) {
|
if (this.anInt4831 < 0 && (Static239.aBoolean274 && Static239.anInt5322 >= 2)) {
|
||||||
@Pc(19) int[] local19 = new int[1];
|
@Pc(19) int[] local19 = new int[1];
|
||||||
@Pc(21) GL local21 = Static239.aGL1;
|
@Pc(21) GL2 local21 = Static239.gl;
|
||||||
local21.glGenProgramsARB(1, local19, 0);
|
local21.glGenProgramsARB(1, local19, 0);
|
||||||
this.anInt4830 = local19[0];
|
this.anInt4830 = local19[0];
|
||||||
@Pc(42) int[][] local42 = Static33.method874(0.4F);
|
@Pc(42) int[][] local42 = Static33.method874(0.4F);
|
||||||
|
|
@ -62,7 +62,7 @@ public final class LiquidMaterialRenderer implements MaterialRenderer {
|
||||||
@Override
|
@Override
|
||||||
public final void method4602() {
|
public final void method4602() {
|
||||||
if (this.anInt4831 >= 0) {
|
if (this.anInt4831 >= 0) {
|
||||||
@Pc(5) GL local5 = Static239.aGL1;
|
@Pc(5) GL2 local5 = Static239.gl;
|
||||||
local5.glCallList(this.anInt4831 + 1);
|
local5.glCallList(this.anInt4831 + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -79,65 +79,65 @@ public final class LiquidMaterialRenderer implements MaterialRenderer {
|
||||||
if (this.anInt4831 < 0) {
|
if (this.anInt4831 < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@Pc(5) GL local5 = Static239.aGL1;
|
@Pc(5) GL2 local5 = Static239.gl;
|
||||||
local5.glCallList(this.anInt4831);
|
local5.glCallList(this.anInt4831);
|
||||||
local5.glActiveTexture(GL.GL_TEXTURE1);
|
local5.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local5.glMatrixMode(GL.GL_TEXTURE);
|
local5.glMatrixMode(GL2.GL_TEXTURE);
|
||||||
local5.glTranslatef((float) Static12.anInt406, (float) Static199.anInt4675, (float) Static230.anInt5158);
|
local5.glTranslatef((float) Static12.anInt406, (float) Static199.anInt4675, (float) Static230.anInt5158);
|
||||||
local5.glRotatef(-((float) Static59.anInt1815 * 360.0F) / 2048.0F, 0.0F, 1.0F, 0.0F);
|
local5.glRotatef(-((float) Static59.anInt1815 * 360.0F) / 2048.0F, 0.0F, 1.0F, 0.0F);
|
||||||
local5.glRotatef(-((float) Static254.anInt5559 * 360.0F) / 2048.0F, 1.0F, 0.0F, 0.0F);
|
local5.glRotatef(-((float) Static254.anInt5559 * 360.0F) / 2048.0F, 1.0F, 0.0F, 0.0F);
|
||||||
local5.glRotatef(-180.0F, 1.0F, 0.0F, 0.0F);
|
local5.glRotatef(-180.0F, 1.0F, 0.0F, 0.0F);
|
||||||
local5.glMatrixMode(GL.GL_MODELVIEW);
|
local5.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
if (!Static151.aBoolean176) {
|
if (!Static151.aBoolean176) {
|
||||||
local5.glBindTexture(GL.GL_TEXTURE_2D, Static151.anIntArray341[(int) ((float) (Static239.anInt5323 * 64) * 0.005F) % 64]);
|
local5.glBindTexture(GL2.GL_TEXTURE_2D, Static151.anIntArray341[(int) ((float) (Static239.anInt5323 * 64) * 0.005F) % 64]);
|
||||||
}
|
}
|
||||||
local5.glActiveTexture(GL.GL_TEXTURE0);
|
local5.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
if (this.anInt4829 == Static239.anInt5323) {
|
if (this.anInt4829 == Static239.anInt5323) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@Pc(85) int local85 = (Static239.anInt5323 & 0xFF) * 256;
|
@Pc(85) int local85 = (Static239.anInt5323 & 0xFF) * 256;
|
||||||
for (@Pc(87) int local87 = 0; local87 < 64; local87++) {
|
for (@Pc(87) int local87 = 0; local87 < 64; local87++) {
|
||||||
this.aFloatBuffer1.position(local85);
|
this.aFloatBuffer1.position(local85);
|
||||||
local5.glProgramLocalParameter4fvARB(GL.GL_VERTEX_PROGRAM_ARB, local87, this.aFloatBuffer1);
|
local5.glProgramLocalParameter4fvARB(GL2.GL_VERTEX_PROGRAM_ARB, local87, this.aFloatBuffer1);
|
||||||
local85 += 4;
|
local85 += 4;
|
||||||
}
|
}
|
||||||
if (Static151.aBoolean176) {
|
if (Static151.aBoolean176) {
|
||||||
local5.glProgramLocalParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, 65, (float) Static239.anInt5323 * 0.005F, 0.0F, 0.0F, 1.0F);
|
local5.glProgramLocalParameter4fARB(GL2.GL_VERTEX_PROGRAM_ARB, 65, (float) Static239.anInt5323 * 0.005F, 0.0F, 0.0F, 1.0F);
|
||||||
} else {
|
} else {
|
||||||
local5.glProgramLocalParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, 65, 0.0F, 0.0F, 0.0F, 1.0F);
|
local5.glProgramLocalParameter4fARB(GL2.GL_VERTEX_PROGRAM_ARB, 65, 0.0F, 0.0F, 0.0F, 1.0F);
|
||||||
}
|
}
|
||||||
this.anInt4829 = Static239.anInt5323;
|
this.anInt4829 = Static239.anInt5323;
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!rd", name = "e", descriptor = "()V")
|
@OriginalMember(owner = "client!rd", name = "e", descriptor = "()V")
|
||||||
private void method3719() {
|
private void method3719() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
this.anInt4831 = local1.glGenLists(2);
|
this.anInt4831 = local1.glGenLists(2);
|
||||||
local1.glNewList(this.anInt4831, GL.GL_COMPILE);
|
local1.glNewList(this.anInt4831, GL2.GL_COMPILE);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE1);
|
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
if (Static151.aBoolean176) {
|
if (Static151.aBoolean176) {
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_3D, Static151.anInt3587);
|
local1.glBindTexture(GL2.GL_TEXTURE_3D, Static151.anInt3587);
|
||||||
}
|
}
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_ADD);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_ADD);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_REPLACE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_REPLACE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_PREVIOUS);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_PREVIOUS);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE0);
|
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
local1.glBindProgramARB(GL.GL_VERTEX_PROGRAM_ARB, this.anInt4830);
|
local1.glBindProgramARB(GL2.GL_VERTEX_PROGRAM_ARB, this.anInt4830);
|
||||||
local1.glEnable(GL.GL_VERTEX_PROGRAM_ARB);
|
local1.glEnable(GL2.GL_VERTEX_PROGRAM_ARB);
|
||||||
local1.glEndList();
|
local1.glEndList();
|
||||||
local1.glNewList(this.anInt4831 + 1, GL.GL_COMPILE);
|
local1.glNewList(this.anInt4831 + 1, GL2.GL_COMPILE);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE1);
|
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local1.glMatrixMode(GL.GL_TEXTURE);
|
local1.glMatrixMode(GL2.GL_TEXTURE);
|
||||||
local1.glLoadIdentity();
|
local1.glLoadIdentity();
|
||||||
local1.glMatrixMode(GL.GL_MODELVIEW);
|
local1.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_TEXTURE);
|
||||||
local1.glDisable(Static151.aBoolean176 ? GL.GL_TEXTURE_3D : GL.GL_TEXTURE_2D);
|
local1.glDisable(Static151.aBoolean176 ? GL2.GL_TEXTURE_3D : GL2.GL_TEXTURE_2D);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE0);
|
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
local1.glBindProgramARB(GL.GL_VERTEX_PROGRAM_ARB, 0);
|
local1.glBindProgramARB(GL2.GL_VERTEX_PROGRAM_ARB, 0);
|
||||||
local1.glDisable(GL.GL_VERTEX_PROGRAM_ARB);
|
local1.glDisable(GL2.GL_VERTEX_PROGRAM_ARB);
|
||||||
local1.glDisable(GL.GL_FRAGMENT_PROGRAM_ARB);
|
local1.glDisable(GL2.GL_FRAGMENT_PROGRAM_ARB);
|
||||||
local1.glEndList();
|
local1.glEndList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -146,11 +146,11 @@ public final class LiquidMaterialRenderer implements MaterialRenderer {
|
||||||
if (this.anInt4831 < 0) {
|
if (this.anInt4831 < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@Pc(4) GL local4 = Static239.aGL1;
|
@Pc(4) GL2 local4 = Static239.gl;
|
||||||
@Pc(7) int[] local7 = new int[1];
|
@Pc(7) int[] local7 = new int[1];
|
||||||
local4.glBindProgramARB(GL.GL_VERTEX_PROGRAM_ARB, this.anInt4830);
|
local4.glBindProgramARB(GL2.GL_VERTEX_PROGRAM_ARB, this.anInt4830);
|
||||||
local4.glProgramStringARB(GL.GL_VERTEX_PROGRAM_ARB, GL.GL_PROGRAM_FORMAT_ASCII_ARB, "!!ARBvp1.0\nATTRIB iPos = vertex.position;\nATTRIB iColour = vertex.color;\nOUTPUT oPos = result.position;\nOUTPUT oColour = result.color;\nOUTPUT oTexCoord0 = result.texcoord[0];\nOUTPUT oTexCoord1 = result.texcoord[1];\nOUTPUT oFogCoord = result.fogcoord;\nPARAM time = program.local[65];\nPARAM turbulence = program.local[64];\nPARAM lightAmbient = program.local[66]; \nPARAM pMatrix[4] = { state.matrix.projection };\nPARAM mvMatrix[4] = { state.matrix.modelview };\nPARAM ivMatrix[4] = { state.matrix.texture[1] };\nPARAM fNoise[64] = { program.local[0..63] };\nTEMP noise, clipPos, viewPos, worldPos;\nADDRESS noiseAddr;\nDP4 viewPos.x, mvMatrix[0], iPos;\nDP4 viewPos.y, mvMatrix[1], iPos;\nDP4 viewPos.z, mvMatrix[2], iPos;\nDP4 viewPos.w, mvMatrix[3], iPos;\nDP4 worldPos.x, ivMatrix[0], viewPos;\nDP4 worldPos.y, ivMatrix[1], viewPos;\nDP4 worldPos.z, ivMatrix[2], viewPos;\nDP4 worldPos.w, ivMatrix[3], viewPos;\nADD noise.x, worldPos.x, worldPos.z;SUB noise.y, worldPos.z, worldPos.x;MUL noise, noise, 0.0001220703125;\nFRC noise, noise;\nMUL noise, noise, 64;\nARL noiseAddr.x, noise.x;\nMOV noise.x, fNoise[noiseAddr.x].x;\nARL noiseAddr.x, noise.y;\nMOV noise.y, fNoise[noiseAddr.x].y;\nMUL noise, noise, turbulence.x;\nMAD oTexCoord0, worldPos.xzww, 0.0078125, noise;\nMOV oTexCoord0.w, 1;\nMUL oTexCoord1.xy, worldPos.xzww, 0.0009765625;\nMOV oTexCoord1.zw, time.xxxw;\nDP4 clipPos.x, pMatrix[0], viewPos;\nDP4 clipPos.y, pMatrix[1], viewPos;\nDP4 clipPos.z, pMatrix[2], viewPos;\nDP4 clipPos.w, pMatrix[3], viewPos;\nMUL oColour.xyz, iColour, lightAmbient;\nMOV oColour.w, 1;\nMOV oFogCoord.x, clipPos.z;\nMOV oPos, clipPos; \nEND".length(), "!!ARBvp1.0\nATTRIB iPos = vertex.position;\nATTRIB iColour = vertex.color;\nOUTPUT oPos = result.position;\nOUTPUT oColour = result.color;\nOUTPUT oTexCoord0 = result.texcoord[0];\nOUTPUT oTexCoord1 = result.texcoord[1];\nOUTPUT oFogCoord = result.fogcoord;\nPARAM time = program.local[65];\nPARAM turbulence = program.local[64];\nPARAM lightAmbient = program.local[66]; \nPARAM pMatrix[4] = { state.matrix.projection };\nPARAM mvMatrix[4] = { state.matrix.modelview };\nPARAM ivMatrix[4] = { state.matrix.texture[1] };\nPARAM fNoise[64] = { program.local[0..63] };\nTEMP noise, clipPos, viewPos, worldPos;\nADDRESS noiseAddr;\nDP4 viewPos.x, mvMatrix[0], iPos;\nDP4 viewPos.y, mvMatrix[1], iPos;\nDP4 viewPos.z, mvMatrix[2], iPos;\nDP4 viewPos.w, mvMatrix[3], iPos;\nDP4 worldPos.x, ivMatrix[0], viewPos;\nDP4 worldPos.y, ivMatrix[1], viewPos;\nDP4 worldPos.z, ivMatrix[2], viewPos;\nDP4 worldPos.w, ivMatrix[3], viewPos;\nADD noise.x, worldPos.x, worldPos.z;SUB noise.y, worldPos.z, worldPos.x;MUL noise, noise, 0.0001220703125;\nFRC noise, noise;\nMUL noise, noise, 64;\nARL noiseAddr.x, noise.x;\nMOV noise.x, fNoise[noiseAddr.x].x;\nARL noiseAddr.x, noise.y;\nMOV noise.y, fNoise[noiseAddr.x].y;\nMUL noise, noise, turbulence.x;\nMAD oTexCoord0, worldPos.xzww, 0.0078125, noise;\nMOV oTexCoord0.w, 1;\nMUL oTexCoord1.xy, worldPos.xzww, 0.0009765625;\nMOV oTexCoord1.zw, time.xxxw;\nDP4 clipPos.x, pMatrix[0], viewPos;\nDP4 clipPos.y, pMatrix[1], viewPos;\nDP4 clipPos.z, pMatrix[2], viewPos;\nDP4 clipPos.w, pMatrix[3], viewPos;\nMUL oColour.xyz, iColour, lightAmbient;\nMOV oColour.w, 1;\nMOV oFogCoord.x, clipPos.z;\nMOV oPos, clipPos; \nEND");
|
local4.glProgramStringARB(GL2.GL_VERTEX_PROGRAM_ARB, GL2.GL_PROGRAM_FORMAT_ASCII_ARB, "!!ARBvp1.0\nATTRIB iPos = vertex.position;\nATTRIB iColour = vertex.color;\nOUTPUT oPos = result.position;\nOUTPUT oColour = result.color;\nOUTPUT oTexCoord0 = result.texcoord[0];\nOUTPUT oTexCoord1 = result.texcoord[1];\nOUTPUT oFogCoord = result.fogcoord;\nPARAM time = program.local[65];\nPARAM turbulence = program.local[64];\nPARAM lightAmbient = program.local[66]; \nPARAM pMatrix[4] = { state.matrix.projection };\nPARAM mvMatrix[4] = { state.matrix.modelview };\nPARAM ivMatrix[4] = { state.matrix.texture[1] };\nPARAM fNoise[64] = { program.local[0..63] };\nTEMP noise, clipPos, viewPos, worldPos;\nADDRESS noiseAddr;\nDP4 viewPos.x, mvMatrix[0], iPos;\nDP4 viewPos.y, mvMatrix[1], iPos;\nDP4 viewPos.z, mvMatrix[2], iPos;\nDP4 viewPos.w, mvMatrix[3], iPos;\nDP4 worldPos.x, ivMatrix[0], viewPos;\nDP4 worldPos.y, ivMatrix[1], viewPos;\nDP4 worldPos.z, ivMatrix[2], viewPos;\nDP4 worldPos.w, ivMatrix[3], viewPos;\nADD noise.x, worldPos.x, worldPos.z;SUB noise.y, worldPos.z, worldPos.x;MUL noise, noise, 0.0001220703125;\nFRC noise, noise;\nMUL noise, noise, 64;\nARL noiseAddr.x, noise.x;\nMOV noise.x, fNoise[noiseAddr.x].x;\nARL noiseAddr.x, noise.y;\nMOV noise.y, fNoise[noiseAddr.x].y;\nMUL noise, noise, turbulence.x;\nMAD oTexCoord0, worldPos.xzww, 0.0078125, noise;\nMOV oTexCoord0.w, 1;\nMUL oTexCoord1.xy, worldPos.xzww, 0.0009765625;\nMOV oTexCoord1.zw, time.xxxw;\nDP4 clipPos.x, pMatrix[0], viewPos;\nDP4 clipPos.y, pMatrix[1], viewPos;\nDP4 clipPos.z, pMatrix[2], viewPos;\nDP4 clipPos.w, pMatrix[3], viewPos;\nMUL oColour.xyz, iColour, lightAmbient;\nMOV oColour.w, 1;\nMOV oFogCoord.x, clipPos.z;\nMOV oPos, clipPos; \nEND".length(), "!!ARBvp1.0\nATTRIB iPos = vertex.position;\nATTRIB iColour = vertex.color;\nOUTPUT oPos = result.position;\nOUTPUT oColour = result.color;\nOUTPUT oTexCoord0 = result.texcoord[0];\nOUTPUT oTexCoord1 = result.texcoord[1];\nOUTPUT oFogCoord = result.fogcoord;\nPARAM time = program.local[65];\nPARAM turbulence = program.local[64];\nPARAM lightAmbient = program.local[66]; \nPARAM pMatrix[4] = { state.matrix.projection };\nPARAM mvMatrix[4] = { state.matrix.modelview };\nPARAM ivMatrix[4] = { state.matrix.texture[1] };\nPARAM fNoise[64] = { program.local[0..63] };\nTEMP noise, clipPos, viewPos, worldPos;\nADDRESS noiseAddr;\nDP4 viewPos.x, mvMatrix[0], iPos;\nDP4 viewPos.y, mvMatrix[1], iPos;\nDP4 viewPos.z, mvMatrix[2], iPos;\nDP4 viewPos.w, mvMatrix[3], iPos;\nDP4 worldPos.x, ivMatrix[0], viewPos;\nDP4 worldPos.y, ivMatrix[1], viewPos;\nDP4 worldPos.z, ivMatrix[2], viewPos;\nDP4 worldPos.w, ivMatrix[3], viewPos;\nADD noise.x, worldPos.x, worldPos.z;SUB noise.y, worldPos.z, worldPos.x;MUL noise, noise, 0.0001220703125;\nFRC noise, noise;\nMUL noise, noise, 64;\nARL noiseAddr.x, noise.x;\nMOV noise.x, fNoise[noiseAddr.x].x;\nARL noiseAddr.x, noise.y;\nMOV noise.y, fNoise[noiseAddr.x].y;\nMUL noise, noise, turbulence.x;\nMAD oTexCoord0, worldPos.xzww, 0.0078125, noise;\nMOV oTexCoord0.w, 1;\nMUL oTexCoord1.xy, worldPos.xzww, 0.0009765625;\nMOV oTexCoord1.zw, time.xxxw;\nDP4 clipPos.x, pMatrix[0], viewPos;\nDP4 clipPos.y, pMatrix[1], viewPos;\nDP4 clipPos.z, pMatrix[2], viewPos;\nDP4 clipPos.w, pMatrix[3], viewPos;\nMUL oColour.xyz, iColour, lightAmbient;\nMOV oColour.w, 1;\nMOV oFogCoord.x, clipPos.z;\nMOV oPos, clipPos; \nEND");
|
||||||
local4.glGetIntegerv(GL.GL_PROGRAM_ERROR_POSITION_ARB, local7, 0);
|
local4.glGetIntegerv(GL2.GL_PROGRAM_ERROR_POSITION_ARB, local7, 0);
|
||||||
if (local7[0] != -1) {
|
if (local7[0] != -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -162,27 +162,27 @@ public final class LiquidMaterialRenderer implements MaterialRenderer {
|
||||||
if (this.anInt4831 < 0) {
|
if (this.anInt4831 < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@Pc(5) GL local5 = Static239.aGL1;
|
@Pc(5) GL2 local5 = Static239.gl;
|
||||||
local5.glActiveTexture(GL.GL_TEXTURE1);
|
local5.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
if ((arg0 & 0x80) == 0) {
|
if ((arg0 & 0x80) == 0) {
|
||||||
local5.glEnable(Static151.aBoolean176 ? GL.GL_TEXTURE_3D : GL.GL_TEXTURE_2D);
|
local5.glEnable(Static151.aBoolean176 ? GL2.GL_TEXTURE_3D : GL2.GL_TEXTURE_2D);
|
||||||
} else {
|
} else {
|
||||||
local5.glDisable(Static151.aBoolean176 ? GL.GL_TEXTURE_3D : GL.GL_TEXTURE_2D);
|
local5.glDisable(Static151.aBoolean176 ? GL2.GL_TEXTURE_3D : GL2.GL_TEXTURE_2D);
|
||||||
}
|
}
|
||||||
local5.glActiveTexture(GL.GL_TEXTURE0);
|
local5.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
if ((arg0 & 0x40) == 0) {
|
if ((arg0 & 0x40) == 0) {
|
||||||
local5.glGetFloatv(GL.GL_LIGHT_MODEL_AMBIENT, Static212.aFloatArray24, 0);
|
local5.glGetFloatv(GL2.GL_LIGHT_MODEL_AMBIENT, Static212.aFloatArray24, 0);
|
||||||
local5.glProgramLocalParameter4fvARB(GL.GL_VERTEX_PROGRAM_ARB, 66, Static212.aFloatArray24, 0);
|
local5.glProgramLocalParameter4fvARB(GL2.GL_VERTEX_PROGRAM_ARB, 66, Static212.aFloatArray24, 0);
|
||||||
} else {
|
} else {
|
||||||
local5.glProgramLocalParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, 66, 1.0F, 1.0F, 1.0F, 1.0F);
|
local5.glProgramLocalParameter4fARB(GL2.GL_VERTEX_PROGRAM_ARB, 66, 1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
}
|
}
|
||||||
@Pc(58) int local58 = arg0 & 0x3;
|
@Pc(58) int local58 = arg0 & 0x3;
|
||||||
if (local58 == 2) {
|
if (local58 == 2) {
|
||||||
local5.glProgramLocalParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, 64, 0.05F, 1.0F, 1.0F, 1.0F);
|
local5.glProgramLocalParameter4fARB(GL2.GL_VERTEX_PROGRAM_ARB, 64, 0.05F, 1.0F, 1.0F, 1.0F);
|
||||||
} else if (local58 == 3) {
|
} else if (local58 == 3) {
|
||||||
local5.glProgramLocalParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, 64, 0.1F, 1.0F, 1.0F, 1.0F);
|
local5.glProgramLocalParameter4fARB(GL2.GL_VERTEX_PROGRAM_ARB, 64, 0.1F, 1.0F, 1.0F, 1.0F);
|
||||||
} else {
|
} else {
|
||||||
local5.glProgramLocalParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, 64, 0.025F, 1.0F, 1.0F, 1.0F);
|
local5.glProgramLocalParameter4fARB(GL2.GL_VERTEX_PROGRAM_ARB, 64, 0.025F, 1.0F, 1.0F, 1.0F);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -21,25 +21,25 @@ public final class SpecularMaterialRenderer implements MaterialRenderer {
|
||||||
public SpecularMaterialRenderer() {
|
public SpecularMaterialRenderer() {
|
||||||
if (Static239.aBoolean275 && Static239.anInt5322 >= 2) {
|
if (Static239.aBoolean275 && Static239.anInt5322 >= 2) {
|
||||||
this.method4536();
|
this.method4536();
|
||||||
@Pc(19) GL local19 = Static239.aGL1;
|
@Pc(19) GL2 local19 = Static239.gl;
|
||||||
local19.glBindTexture(GL.GL_TEXTURE_CUBE_MAP, this.anIntArray519[0]);
|
local19.glBindTexture(GL2.GL_TEXTURE_CUBE_MAP, this.anIntArray519[0]);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_WRAP_R, GL.GL_CLAMP_TO_EDGE);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_WRAP_R, GL2.GL_CLAMP_TO_EDGE);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_WRAP_T, GL.GL_CLAMP_TO_EDGE);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_WRAP_T, GL2.GL_CLAMP_TO_EDGE);
|
||||||
local19.glBindTexture(GL.GL_TEXTURE_CUBE_MAP, this.anIntArray519[1]);
|
local19.glBindTexture(GL2.GL_TEXTURE_CUBE_MAP, this.anIntArray519[1]);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_WRAP_R, GL.GL_CLAMP_TO_EDGE);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_WRAP_R, GL2.GL_CLAMP_TO_EDGE);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_WRAP_T, GL.GL_CLAMP_TO_EDGE);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_WRAP_T, GL2.GL_CLAMP_TO_EDGE);
|
||||||
local19.glBindTexture(GL.GL_TEXTURE_CUBE_MAP, this.anIntArray519[2]);
|
local19.glBindTexture(GL2.GL_TEXTURE_CUBE_MAP, this.anIntArray519[2]);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_WRAP_R, GL.GL_CLAMP_TO_EDGE);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_WRAP_R, GL2.GL_CLAMP_TO_EDGE);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);
|
||||||
local19.glTexParameteri(GL.GL_TEXTURE_CUBE_MAP, GL.GL_TEXTURE_WRAP_T, GL.GL_CLAMP_TO_EDGE);
|
local19.glTexParameteri(GL2.GL_TEXTURE_CUBE_MAP, GL2.GL_TEXTURE_WRAP_T, GL2.GL_CLAMP_TO_EDGE);
|
||||||
this.aBoolean301 = Static239.anInt5322 < 3;
|
this.aBoolean301 = Static239.anInt5322 < 3;
|
||||||
}
|
}
|
||||||
this.method4535();
|
this.method4535();
|
||||||
|
|
@ -47,77 +47,77 @@ public final class SpecularMaterialRenderer implements MaterialRenderer {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!vm", name = "d", descriptor = "()V")
|
@OriginalMember(owner = "client!vm", name = "d", descriptor = "()V")
|
||||||
private void method4535() {
|
private void method4535() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
this.anInt5777 = local1.glGenLists(2);
|
this.anInt5777 = local1.glGenLists(2);
|
||||||
local1.glNewList(this.anInt5777, GL.GL_COMPILE);
|
local1.glNewList(this.anInt5777, GL2.GL_COMPILE);
|
||||||
if (this.anIntArray519 == null) {
|
if (this.anIntArray519 == null) {
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_PRIMARY_COLOR);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_PRIMARY_COLOR);
|
||||||
} else {
|
} else {
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE1);
|
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local1.glTexGeni(GL.GL_S, GL.GL_TEXTURE_GEN_MODE, GL.GL_NORMAL_MAP);
|
local1.glTexGeni(GL2.GL_S, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_NORMAL_MAP);
|
||||||
local1.glTexGeni(GL.GL_T, GL.GL_TEXTURE_GEN_MODE, GL.GL_NORMAL_MAP);
|
local1.glTexGeni(GL2.GL_T, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_NORMAL_MAP);
|
||||||
local1.glTexGeni(GL.GL_R, GL.GL_TEXTURE_GEN_MODE, GL.GL_NORMAL_MAP);
|
local1.glTexGeni(GL2.GL_R, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_NORMAL_MAP);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_S);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_T);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_T);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_R);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_R);
|
||||||
local1.glEnable(GL.GL_TEXTURE_CUBE_MAP);
|
local1.glEnable(GL2.GL_TEXTURE_CUBE_MAP);
|
||||||
local1.glMatrixMode(GL.GL_TEXTURE);
|
local1.glMatrixMode(GL2.GL_TEXTURE);
|
||||||
local1.glLoadIdentity();
|
local1.glLoadIdentity();
|
||||||
local1.glRotatef(22.5F, 1.0F, 0.0F, 0.0F);
|
local1.glRotatef(22.5F, 1.0F, 0.0F, 0.0F);
|
||||||
local1.glMatrixMode(GL.GL_MODELVIEW);
|
local1.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
if (this.aBoolean301) {
|
if (this.aBoolean301) {
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_ADD);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_ADD);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_OPERAND0_RGB, GL.GL_SRC_ALPHA);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_ALPHA);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_REPLACE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_REPLACE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_PRIMARY_COLOR);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_PRIMARY_COLOR);
|
||||||
} else {
|
} else {
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_REPLACE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_REPLACE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_PREVIOUS);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_PREVIOUS);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_MODULATE);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE2);
|
local1.glActiveTexture(GL2.GL_TEXTURE2);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_COMBINE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_MODE, GL2.GL_COMBINE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_ADD);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_ADD);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_PREVIOUS);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_PREVIOUS);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC1_RGB, GL.GL_PREVIOUS);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC1_RGB, GL2.GL_PREVIOUS);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_OPERAND1_RGB, GL.GL_SRC_ALPHA);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND1_RGB, GL2.GL_SRC_ALPHA);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_REPLACE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_REPLACE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_PRIMARY_COLOR);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_PRIMARY_COLOR);
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_2D, Static239.anInt5328);
|
local1.glBindTexture(GL2.GL_TEXTURE_2D, Static239.anInt5328);
|
||||||
local1.glEnable(GL.GL_TEXTURE_2D);
|
local1.glEnable(GL2.GL_TEXTURE_2D);
|
||||||
}
|
}
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE0);
|
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
}
|
}
|
||||||
local1.glEndList();
|
local1.glEndList();
|
||||||
local1.glNewList(this.anInt5777 + 1, GL.GL_COMPILE);
|
local1.glNewList(this.anInt5777 + 1, GL2.GL_COMPILE);
|
||||||
if (this.anIntArray519 == null) {
|
if (this.anIntArray519 == null) {
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_TEXTURE);
|
||||||
} else {
|
} else {
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE1);
|
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_S);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_T);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_T);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_R);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_R);
|
||||||
local1.glDisable(GL.GL_TEXTURE_CUBE_MAP);
|
local1.glDisable(GL2.GL_TEXTURE_CUBE_MAP);
|
||||||
local1.glMatrixMode(GL.GL_TEXTURE);
|
local1.glMatrixMode(GL2.GL_TEXTURE);
|
||||||
local1.glLoadIdentity();
|
local1.glLoadIdentity();
|
||||||
local1.glMatrixMode(GL.GL_MODELVIEW);
|
local1.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
if (this.aBoolean301) {
|
if (this.aBoolean301) {
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_OPERAND0_RGB, GL.GL_SRC_COLOR);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_COLOR);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_TEXTURE);
|
||||||
} else {
|
} else {
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_TEXTURE);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE2);
|
local1.glActiveTexture(GL2.GL_TEXTURE2);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_MODE, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_TEXTURE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_OPERAND1_RGB, GL.GL_SRC_COLOR);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND1_RGB, GL2.GL_SRC_COLOR);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_TEXTURE);
|
||||||
local1.glDisable(GL.GL_TEXTURE_2D);
|
local1.glDisable(GL2.GL_TEXTURE_2D);
|
||||||
}
|
}
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE0);
|
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
}
|
}
|
||||||
local1.glEndList();
|
local1.glEndList();
|
||||||
}
|
}
|
||||||
|
|
@ -125,11 +125,11 @@ public final class SpecularMaterialRenderer implements MaterialRenderer {
|
||||||
@OriginalMember(owner = "client!vm", name = "a", descriptor = "()V")
|
@OriginalMember(owner = "client!vm", name = "a", descriptor = "()V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4602() {
|
public final void method4602() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
if (Static178.aBoolean202) {
|
if (Static178.aBoolean202) {
|
||||||
local1.glCallList(this.anInt5777 + 1);
|
local1.glCallList(this.anInt5777 + 1);
|
||||||
} else {
|
} else {
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_TEXTURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -142,29 +142,29 @@ public final class SpecularMaterialRenderer implements MaterialRenderer {
|
||||||
@OriginalMember(owner = "client!vm", name = "b", descriptor = "()V")
|
@OriginalMember(owner = "client!vm", name = "b", descriptor = "()V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4603() {
|
public final void method4603() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
Static239.method4174(1);
|
Static239.method4174(1);
|
||||||
if (Static178.aBoolean202) {
|
if (Static178.aBoolean202) {
|
||||||
local1.glCallList(this.anInt5777);
|
local1.glCallList(this.anInt5777);
|
||||||
} else {
|
} else {
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_PRIMARY_COLOR);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_PRIMARY_COLOR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!vm", name = "a", descriptor = "(I)V")
|
@OriginalMember(owner = "client!vm", name = "a", descriptor = "(I)V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4604(@OriginalArg(0) int arg0) {
|
public final void method4604(@OriginalArg(0) int arg0) {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
if (Static178.aBoolean202 && this.anIntArray519 != null) {
|
if (Static178.aBoolean202 && this.anIntArray519 != null) {
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE1);
|
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_CUBE_MAP, this.anIntArray519[arg0 - 1]);
|
local1.glBindTexture(GL2.GL_TEXTURE_CUBE_MAP, this.anIntArray519[arg0 - 1]);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE0);
|
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!vm", name = "e", descriptor = "()V")
|
@OriginalMember(owner = "client!vm", name = "e", descriptor = "()V")
|
||||||
private void method4536() {
|
private void method4536() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
if (this.anIntArray519 == null) {
|
if (this.anIntArray519 == null) {
|
||||||
this.anIntArray519 = new int[3];
|
this.anIntArray519 = new int[3];
|
||||||
local1.glGenTextures(3, this.anIntArray519, 0);
|
local1.glGenTextures(3, this.anIntArray519, 0);
|
||||||
|
|
@ -222,12 +222,12 @@ public final class SpecularMaterialRenderer implements MaterialRenderer {
|
||||||
local32++;
|
local32++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_CUBE_MAP, this.anIntArray519[0]);
|
local1.glBindTexture(GL2.GL_TEXTURE_CUBE_MAP, this.anIntArray519[0]);
|
||||||
local1.glTexImage2D(local27 + GL.GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL.GL_ALPHA, 64, 64, 0, GL.GL_ALPHA, GL.GL_UNSIGNED_BYTE, ByteBuffer.wrap(local22));
|
local1.glTexImage2D(local27 + GL2.GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL2.GL_ALPHA, 64, 64, 0, GL2.GL_ALPHA, GL2.GL_UNSIGNED_BYTE, ByteBuffer.wrap(local22));
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_CUBE_MAP, this.anIntArray519[1]);
|
local1.glBindTexture(GL2.GL_TEXTURE_CUBE_MAP, this.anIntArray519[1]);
|
||||||
local1.glTexImage2D(local27 + GL.GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL.GL_ALPHA, 64, 64, 0, GL.GL_ALPHA, GL.GL_UNSIGNED_BYTE, ByteBuffer.wrap(local25));
|
local1.glTexImage2D(local27 + GL2.GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL2.GL_ALPHA, 64, 64, 0, GL2.GL_ALPHA, GL2.GL_UNSIGNED_BYTE, ByteBuffer.wrap(local25));
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_CUBE_MAP, this.anIntArray519[2]);
|
local1.glBindTexture(GL2.GL_TEXTURE_CUBE_MAP, this.anIntArray519[2]);
|
||||||
local1.glTexImage2D(local27 + GL.GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL.GL_ALPHA, 64, 64, 0, GL.GL_ALPHA, GL.GL_UNSIGNED_BYTE, ByteBuffer.wrap(local19));
|
local1.glTexImage2D(local27 + GL2.GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL2.GL_ALPHA, 64, 64, 0, GL2.GL_ALPHA, GL2.GL_UNSIGNED_BYTE, ByteBuffer.wrap(local19));
|
||||||
Static63.anInt1942 += 12288;
|
Static63.anInt1942 += 12288;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
import org.openrs2.deob.annotation.Pc;
|
import org.openrs2.deob.annotation.Pc;
|
||||||
|
|
@ -294,7 +294,7 @@ public final class Static120 {
|
||||||
if (aBooleanArray65[arg0]) {
|
if (aBooleanArray65[arg0]) {
|
||||||
aBooleanArray65[arg0] = false;
|
aBooleanArray65[arg0] = false;
|
||||||
@Pc(14) int local14 = arg0 + 16384 + 4;
|
@Pc(14) int local14 = arg0 + 16384 + 4;
|
||||||
@Pc(16) GL local16 = Static239.aGL1;
|
@Pc(16) GL2 local16 = Static239.gl;
|
||||||
local16.glDisable(local14);
|
local16.glDisable(local14);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -341,13 +341,13 @@ public final class Static120 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!jf", name = "e", descriptor = "()V")
|
@OriginalMember(owner = "client!jf", name = "e", descriptor = "()V")
|
||||||
public static void method2400() {
|
public static void method2400() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
@Pc(3) int local3;
|
@Pc(3) int local3;
|
||||||
for (local3 = 0; local3 < 4; local3++) {
|
for (local3 = 0; local3 < 4; local3++) {
|
||||||
@Pc(10) int local10 = local3 + 16388;
|
@Pc(10) int local10 = local3 + 16388;
|
||||||
local1.glLightfv(local10, GL.GL_AMBIENT, new float[] { 0.0F, 0.0F, 0.0F, 1.0F }, 0);
|
local1.glLightfv(local10, GL2.GL_AMBIENT, new float[] { 0.0F, 0.0F, 0.0F, 1.0F }, 0);
|
||||||
local1.glLightf(local10, GL.GL_LINEAR_ATTENUATION, 0.0F);
|
local1.glLightf(local10, GL2.GL_LINEAR_ATTENUATION, 0.0F);
|
||||||
local1.glLightf(local10, GL.GL_CONSTANT_ATTENUATION, 0.0F);
|
local1.glLightf(local10, GL2.GL_CONSTANT_ATTENUATION, 0.0F);
|
||||||
}
|
}
|
||||||
for (local3 = 0; local3 < 4; local3++) {
|
for (local3 = 0; local3 < 4; local3++) {
|
||||||
anIntArray284[local3] = -1;
|
anIntArray284[local3] = -1;
|
||||||
|
|
@ -370,17 +370,17 @@ public final class Static120 {
|
||||||
if (!Static178.aBoolean202) {
|
if (!Static178.aBoolean202) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@Pc(4) GL local4 = Static239.aGL1;
|
@Pc(4) GL2 local4 = Static239.gl;
|
||||||
Static27.method766(0, 0);
|
Static27.method766(0, 0);
|
||||||
Static239.method4183(0);
|
Static239.method4183(0);
|
||||||
Static239.method4150();
|
Static239.method4150();
|
||||||
Static239.method4177(Static239.anInt5328);
|
Static239.method4177(Static239.anInt5328);
|
||||||
local4.glDepthMask(false);
|
local4.glDepthMask(false);
|
||||||
Static239.method4164(false);
|
Static239.method4164(false);
|
||||||
local4.glBlendFunc(GL.GL_DST_COLOR, GL.GL_ONE);
|
local4.glBlendFunc(GL2.GL_DST_COLOR, GL2.GL_ONE);
|
||||||
local4.glFogfv(GL.GL_FOG_COLOR, new float[] { 0.0F, 0.0F, 0.0F, 0.0F }, 0);
|
local4.glFogfv(GL2.GL_FOG_COLOR, new float[] { 0.0F, 0.0F, 0.0F, 0.0F }, 0);
|
||||||
local4.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_CONSTANT);
|
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_CONSTANT);
|
||||||
local4.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_OPERAND0_RGB, GL.GL_SRC_ALPHA);
|
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_ALPHA);
|
||||||
label71: for (@Pc(56) int local56 = 0; local56 < anInt3034; local56++) {
|
label71: for (@Pc(56) int local56 = 0; local56 < anInt3034; local56++) {
|
||||||
@Pc(63) Light local63 = aClass51Array1[local56];
|
@Pc(63) Light local63 = aClass51Array1[local56];
|
||||||
@Pc(66) int local66 = local63.anInt2241;
|
@Pc(66) int local66 = local63.anInt2241;
|
||||||
|
|
@ -415,7 +415,7 @@ public final class Static120 {
|
||||||
}
|
}
|
||||||
if (local66 < 0 || local160 != null && local160.aBoolean45) {
|
if (local66 < 0 || local160 != null && local160.aBoolean45) {
|
||||||
Static239.method4159(201.5F - (float) local63.anInt2241 * 50.0F - 1.5F);
|
Static239.method4159(201.5F - (float) local63.anInt2241 * 50.0F - 1.5F);
|
||||||
local4.glTexEnvfv(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_COLOR, new float[] { 0.0F, 0.0F, 0.0F, local63.aFloat8 }, 0);
|
local4.glTexEnvfv(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_COLOR, new float[] { 0.0F, 0.0F, 0.0F, local63.aFloat8 }, 0);
|
||||||
local63.aClass45_1.method1556();
|
local63.aClass45_1.method1556();
|
||||||
continue label71;
|
continue label71;
|
||||||
}
|
}
|
||||||
|
|
@ -423,29 +423,29 @@ public final class Static120 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local4.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_TEXTURE);
|
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_TEXTURE);
|
||||||
local4.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_OPERAND0_RGB, GL.GL_SRC_COLOR);
|
local4.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_COLOR);
|
||||||
local4.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
|
local4.glBlendFunc(GL2.GL_SRC_ALPHA, GL2.GL_ONE_MINUS_SRC_ALPHA);
|
||||||
local4.glDepthMask(true);
|
local4.glDepthMask(true);
|
||||||
local4.glFogfv(GL.GL_FOG_COLOR, Static161.aFloatArray19, 0);
|
local4.glFogfv(GL2.GL_FOG_COLOR, Static161.aFloatArray19, 0);
|
||||||
local4.glEnableClientState(GL.GL_TEXTURE_COORD_ARRAY);
|
local4.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);
|
||||||
Static239.method4173();
|
Static239.method4173();
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!jf", name = "a", descriptor = "(ILclient!gi;III)V")
|
@OriginalMember(owner = "client!jf", name = "a", descriptor = "(ILclient!gi;III)V")
|
||||||
private static void method2403(@OriginalArg(0) int arg0, @OriginalArg(1) Light arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4) {
|
private static void method2403(@OriginalArg(0) int arg0, @OriginalArg(1) Light arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4) {
|
||||||
@Pc(5) int local5 = arg0 + 16384 + 4;
|
@Pc(5) int local5 = arg0 + 16384 + 4;
|
||||||
@Pc(7) GL local7 = Static239.aGL1;
|
@Pc(7) GL2 local7 = Static239.gl;
|
||||||
if (!aBooleanArray65[arg0]) {
|
if (!aBooleanArray65[arg0]) {
|
||||||
local7.glEnable(local5);
|
local7.glEnable(local5);
|
||||||
aBooleanArray65[arg0] = true;
|
aBooleanArray65[arg0] = true;
|
||||||
}
|
}
|
||||||
local7.glLightf(local5, GL.GL_QUADRATIC_ATTENUATION, arg1.aFloat9);
|
local7.glLightf(local5, GL2.GL_QUADRATIC_ATTENUATION, arg1.aFloat9);
|
||||||
local7.glLightfv(local5, GL.GL_DIFFUSE, arg1.aFloatArray3, 0);
|
local7.glLightfv(local5, GL2.GL_DIFFUSE, arg1.aFloatArray3, 0);
|
||||||
aFloatArray17[0] = arg1.anInt2240 - arg2;
|
aFloatArray17[0] = arg1.anInt2240 - arg2;
|
||||||
aFloatArray17[1] = arg1.anInt2235 - arg3;
|
aFloatArray17[1] = arg1.anInt2235 - arg3;
|
||||||
aFloatArray17[2] = arg1.anInt2245 - arg4;
|
aFloatArray17[2] = arg1.anInt2245 - arg4;
|
||||||
local7.glLightfv(local5, GL.GL_POSITION, aFloatArray17, 0);
|
local7.glLightfv(local5, GL2.GL_POSITION, aFloatArray17, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!jf", name = "g", descriptor = "()V")
|
@OriginalMember(owner = "client!jf", name = "g", descriptor = "()V")
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
import org.openrs2.deob.annotation.Pc;
|
import org.openrs2.deob.annotation.Pc;
|
||||||
|
|
||||||
|
|
@ -50,30 +50,30 @@ public final class Static151 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!lm", name = "b", descriptor = "()V")
|
@OriginalMember(owner = "client!lm", name = "b", descriptor = "()V")
|
||||||
public static void method2808() {
|
public static void method2808() {
|
||||||
@Pc(4) GL local4;
|
@Pc(4) GL2 local4;
|
||||||
@Pc(11) int[] local11;
|
@Pc(11) int[] local11;
|
||||||
if (anInt3587 != -1) {
|
if (anInt3587 != -1) {
|
||||||
local4 = Static239.aGL1;
|
local4 = Static239.gl;
|
||||||
local11 = new int[] { anInt3587 };
|
local11 = new int[] { anInt3587 };
|
||||||
local4.glDeleteTextures(1, local11, 0);
|
local4.glDeleteTextures(1, local11, 0);
|
||||||
anInt3587 = -1;
|
anInt3587 = -1;
|
||||||
Static63.anInt1942 -= aByteBuffer7.limit() * 2;
|
Static63.anInt1942 -= aByteBuffer7.limit() * 2;
|
||||||
}
|
}
|
||||||
if (anIntArray341 != null) {
|
if (anIntArray341 != null) {
|
||||||
local4 = Static239.aGL1;
|
local4 = Static239.gl;
|
||||||
local4.glDeleteTextures(64, anIntArray341, 0);
|
local4.glDeleteTextures(64, anIntArray341, 0);
|
||||||
anIntArray341 = null;
|
anIntArray341 = null;
|
||||||
Static63.anInt1942 -= aByteBuffer7.limit() * 2;
|
Static63.anInt1942 -= aByteBuffer7.limit() * 2;
|
||||||
}
|
}
|
||||||
if (anInt3588 != -1) {
|
if (anInt3588 != -1) {
|
||||||
local4 = Static239.aGL1;
|
local4 = Static239.gl;
|
||||||
local11 = new int[] { anInt3588 };
|
local11 = new int[] { anInt3588 };
|
||||||
local4.glDeleteTextures(1, local11, 0);
|
local4.glDeleteTextures(1, local11, 0);
|
||||||
anInt3588 = -1;
|
anInt3588 = -1;
|
||||||
Static63.anInt1942 -= aByteBuffer6.limit() * 2;
|
Static63.anInt1942 -= aByteBuffer6.limit() * 2;
|
||||||
}
|
}
|
||||||
if (anIntArray340 != null) {
|
if (anIntArray340 != null) {
|
||||||
local4 = Static239.aGL1;
|
local4 = Static239.gl;
|
||||||
local4.glDeleteTextures(64, anIntArray340, 0);
|
local4.glDeleteTextures(64, anIntArray340, 0);
|
||||||
anIntArray340 = null;
|
anIntArray340 = null;
|
||||||
Static63.anInt1942 -= aByteBuffer6.limit() * 2;
|
Static63.anInt1942 -= aByteBuffer6.limit() * 2;
|
||||||
|
|
@ -90,15 +90,15 @@ public final class Static151 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!lm", name = "e", descriptor = "()V")
|
@OriginalMember(owner = "client!lm", name = "e", descriptor = "()V")
|
||||||
private static void method2811() {
|
private static void method2811() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
if (aBoolean176) {
|
if (aBoolean176) {
|
||||||
@Pc(6) int[] local6 = new int[1];
|
@Pc(6) int[] local6 = new int[1];
|
||||||
local1.glGenTextures(1, local6, 0);
|
local1.glGenTextures(1, local6, 0);
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_3D, local6[0]);
|
local1.glBindTexture(GL2.GL_TEXTURE_3D, local6[0]);
|
||||||
aByteBuffer7.position(0);
|
aByteBuffer7.position(0);
|
||||||
local1.glTexImage3D(GL.GL_TEXTURE_3D, 0, GL.GL_LUMINANCE_ALPHA, 64, 64, 64, 0, GL.GL_LUMINANCE_ALPHA, GL.GL_UNSIGNED_BYTE, aByteBuffer7);
|
local1.glTexImage3D(GL2.GL_TEXTURE_3D, 0, GL2.GL_LUMINANCE_ALPHA, 64, 64, 64, 0, GL2.GL_LUMINANCE_ALPHA, GL2.GL_UNSIGNED_BYTE, aByteBuffer7);
|
||||||
local1.glTexParameteri(GL.GL_TEXTURE_3D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local1.glTexParameteri(GL2.GL_TEXTURE_3D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local1.glTexParameteri(GL.GL_TEXTURE_3D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local1.glTexParameteri(GL2.GL_TEXTURE_3D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
anInt3587 = local6[0];
|
anInt3587 = local6[0];
|
||||||
Static63.anInt1942 += aByteBuffer7.limit() * 2;
|
Static63.anInt1942 += aByteBuffer7.limit() * 2;
|
||||||
return;
|
return;
|
||||||
|
|
@ -108,24 +108,24 @@ public final class Static151 {
|
||||||
for (@Pc(65) int local65 = 0; local65 < 64; local65++) {
|
for (@Pc(65) int local65 = 0; local65 < 64; local65++) {
|
||||||
Static239.method4177(anIntArray341[local65]);
|
Static239.method4177(anIntArray341[local65]);
|
||||||
aByteBuffer7.position(local65 * 64 * 64 * 2);
|
aByteBuffer7.position(local65 * 64 * 64 * 2);
|
||||||
local1.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_LUMINANCE_ALPHA, 64, 64, 0, GL.GL_LUMINANCE_ALPHA, GL.GL_UNSIGNED_BYTE, aByteBuffer7);
|
local1.glTexImage2D(GL2.GL_TEXTURE_2D, 0, GL2.GL_LUMINANCE_ALPHA, 64, 64, 0, GL2.GL_LUMINANCE_ALPHA, GL2.GL_UNSIGNED_BYTE, aByteBuffer7);
|
||||||
local1.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local1.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local1.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local1.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
}
|
}
|
||||||
Static63.anInt1942 += aByteBuffer7.limit() * 2;
|
Static63.anInt1942 += aByteBuffer7.limit() * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!lm", name = "f", descriptor = "()V")
|
@OriginalMember(owner = "client!lm", name = "f", descriptor = "()V")
|
||||||
private static void method2812() {
|
private static void method2812() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
if (aBoolean176) {
|
if (aBoolean176) {
|
||||||
@Pc(6) int[] local6 = new int[1];
|
@Pc(6) int[] local6 = new int[1];
|
||||||
local1.glGenTextures(1, local6, 0);
|
local1.glGenTextures(1, local6, 0);
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_3D, local6[0]);
|
local1.glBindTexture(GL2.GL_TEXTURE_3D, local6[0]);
|
||||||
aByteBuffer6.position(0);
|
aByteBuffer6.position(0);
|
||||||
local1.glTexImage3D(GL.GL_TEXTURE_3D, 0, GL.GL_LUMINANCE_ALPHA, 64, 64, 64, 0, GL.GL_LUMINANCE_ALPHA, GL.GL_UNSIGNED_BYTE, aByteBuffer6);
|
local1.glTexImage3D(GL2.GL_TEXTURE_3D, 0, GL2.GL_LUMINANCE_ALPHA, 64, 64, 64, 0, GL2.GL_LUMINANCE_ALPHA, GL2.GL_UNSIGNED_BYTE, aByteBuffer6);
|
||||||
local1.glTexParameteri(GL.GL_TEXTURE_3D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local1.glTexParameteri(GL2.GL_TEXTURE_3D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local1.glTexParameteri(GL.GL_TEXTURE_3D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local1.glTexParameteri(GL2.GL_TEXTURE_3D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
anInt3588 = local6[0];
|
anInt3588 = local6[0];
|
||||||
Static63.anInt1942 += aByteBuffer6.limit() * 2;
|
Static63.anInt1942 += aByteBuffer6.limit() * 2;
|
||||||
return;
|
return;
|
||||||
|
|
@ -135,9 +135,9 @@ public final class Static151 {
|
||||||
for (@Pc(65) int local65 = 0; local65 < 64; local65++) {
|
for (@Pc(65) int local65 = 0; local65 < 64; local65++) {
|
||||||
Static239.method4177(anIntArray340[local65]);
|
Static239.method4177(anIntArray340[local65]);
|
||||||
aByteBuffer6.position(local65 * 64 * 64 * 2);
|
aByteBuffer6.position(local65 * 64 * 64 * 2);
|
||||||
local1.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_LUMINANCE_ALPHA, 64, 64, 0, GL.GL_LUMINANCE_ALPHA, GL.GL_UNSIGNED_BYTE, aByteBuffer6);
|
local1.glTexImage2D(GL2.GL_TEXTURE_2D, 0, GL2.GL_LUMINANCE_ALPHA, 64, 64, 0, GL2.GL_LUMINANCE_ALPHA, GL2.GL_UNSIGNED_BYTE, aByteBuffer6);
|
||||||
local1.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local1.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local1.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local1.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
}
|
}
|
||||||
Static63.anInt1942 += aByteBuffer6.limit() * 2;
|
Static63.anInt1942 += aByteBuffer6.limit() * 2;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
import org.openrs2.deob.annotation.Pc;
|
import org.openrs2.deob.annotation.Pc;
|
||||||
|
|
@ -153,12 +153,12 @@ public final class Static156 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!mf", name = "a", descriptor = "()V")
|
@OriginalMember(owner = "client!mf", name = "a", descriptor = "()V")
|
||||||
public static void method2959() {
|
public static void method2959() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glDisableClientState(GL.GL_COLOR_ARRAY);
|
local1.glDisableClientState(GL2.GL_COLOR_ARRAY);
|
||||||
Static239.method4164(false);
|
Static239.method4164(false);
|
||||||
local1.glDisable(GL.GL_DEPTH_TEST);
|
local1.glDisable(GL2.GL_DEPTH_TEST);
|
||||||
local1.glPushAttrib(GL.GL_FOG_BIT);
|
local1.glPushAttrib(GL2.GL_FOG_BIT);
|
||||||
local1.glFogf(GL.GL_FOG_START, 3072.0F);
|
local1.glFogf(GL2.GL_FOG_START, 3072.0F);
|
||||||
Static239.method4178();
|
Static239.method4178();
|
||||||
for (@Pc(19) int local19 = 0; local19 < Static36.aClass3_Sub14ArrayArray1[0].length; local19++) {
|
for (@Pc(19) int local19 = 0; local19 < Static36.aClass3_Sub14ArrayArray1[0].length; local19++) {
|
||||||
@Pc(31) Class3_Sub14 local31 = Static36.aClass3_Sub14ArrayArray1[0][local19];
|
@Pc(31) Class3_Sub14 local31 = Static36.aClass3_Sub14ArrayArray1[0][local19];
|
||||||
|
|
@ -168,9 +168,9 @@ public final class Static156 {
|
||||||
local31.method1944(Static130.aClass3_Sub5ArrayArrayArray1, local57, true);
|
local31.method1944(Static130.aClass3_Sub5ArrayArrayArray1, local57, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local1.glEnableClientState(GL.GL_COLOR_ARRAY);
|
local1.glEnableClientState(GL2.GL_COLOR_ARRAY);
|
||||||
Static239.method4173();
|
Static239.method4173();
|
||||||
local1.glEnable(GL.GL_DEPTH_TEST);
|
local1.glEnable(GL2.GL_DEPTH_TEST);
|
||||||
local1.glPopAttrib();
|
local1.glPopAttrib();
|
||||||
Static239.method4157();
|
Static239.method4157();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
import org.openrs2.deob.annotation.Pc;
|
import org.openrs2.deob.annotation.Pc;
|
||||||
|
|
@ -46,9 +46,9 @@ public final class Static161 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!mk", name = "a", descriptor = "()V")
|
@OriginalMember(owner = "client!mk", name = "a", descriptor = "()V")
|
||||||
public static void method3058() {
|
public static void method3058() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, aFloatArray18, 0);
|
local1.glLightfv(GL2.GL_LIGHT0, GL2.GL_POSITION, aFloatArray18, 0);
|
||||||
local1.glLightfv(GL.GL_LIGHT1, GL.GL_POSITION, aFloatArray20, 0);
|
local1.glLightfv(GL2.GL_LIGHT1, GL2.GL_POSITION, aFloatArray20, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!mk", name = "b", descriptor = "()F")
|
@OriginalMember(owner = "client!mk", name = "b", descriptor = "()F")
|
||||||
|
|
@ -65,16 +65,16 @@ public final class Static161 {
|
||||||
aFloat21 = arg1;
|
aFloat21 = arg1;
|
||||||
aFloat19 = arg2;
|
aFloat19 = arg2;
|
||||||
aFloat20 = arg3;
|
aFloat20 = arg3;
|
||||||
@Pc(25) GL local25 = Static239.aGL1;
|
@Pc(25) GL2 local25 = Static239.gl;
|
||||||
@Pc(34) float local34 = (float) (arg0 >> 16 & 0xFF) / 255.0F;
|
@Pc(34) float local34 = (float) (arg0 >> 16 & 0xFF) / 255.0F;
|
||||||
@Pc(43) float local43 = (float) (arg0 >> 8 & 0xFF) / 255.0F;
|
@Pc(43) float local43 = (float) (arg0 >> 8 & 0xFF) / 255.0F;
|
||||||
@Pc(50) float local50 = (float) (arg0 & 0xFF) / 255.0F;
|
@Pc(50) float local50 = (float) (arg0 & 0xFF) / 255.0F;
|
||||||
@Pc(75) float[] local75 = new float[] { arg1 * local34, arg1 * local43, arg1 * local50, 1.0F };
|
@Pc(75) float[] local75 = new float[] { arg1 * local34, arg1 * local43, arg1 * local50, 1.0F };
|
||||||
local25.glLightModelfv(GL.GL_LIGHT_MODEL_AMBIENT, local75, 0);
|
local25.glLightModelfv(GL2.GL_LIGHT_MODEL_AMBIENT, local75, 0);
|
||||||
@Pc(105) float[] local105 = new float[] { arg2 * local34, arg2 * local43, arg2 * local50, 1.0F };
|
@Pc(105) float[] local105 = new float[] { arg2 * local34, arg2 * local43, arg2 * local50, 1.0F };
|
||||||
local25.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, local105, 0);
|
local25.glLightfv(GL2.GL_LIGHT0, GL2.GL_DIFFUSE, local105, 0);
|
||||||
@Pc(139) float[] local139 = new float[] { -arg3 * local34, -arg3 * local43, -arg3 * local50, 1.0F };
|
@Pc(139) float[] local139 = new float[] { -arg3 * local34, -arg3 * local43, -arg3 * local50, 1.0F };
|
||||||
local25.glLightfv(GL.GL_LIGHT1, GL.GL_DIFFUSE, local139, 0);
|
local25.glLightfv(GL2.GL_LIGHT1, GL2.GL_DIFFUSE, local139, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!mk", name = "a", descriptor = "(II)V")
|
@OriginalMember(owner = "client!mk", name = "a", descriptor = "(II)V")
|
||||||
|
|
@ -84,20 +84,20 @@ public final class Static161 {
|
||||||
}
|
}
|
||||||
anInt3925 = arg0;
|
anInt3925 = arg0;
|
||||||
anInt3924 = arg1;
|
anInt3924 = arg1;
|
||||||
@Pc(12) GL local12 = Static239.aGL1;
|
@Pc(12) GL2 local12 = Static239.gl;
|
||||||
aFloatArray19[0] = (float) (arg0 >> 16 & 0xFF) / 255.0F;
|
aFloatArray19[0] = (float) (arg0 >> 16 & 0xFF) / 255.0F;
|
||||||
aFloatArray19[1] = (float) (arg0 >> 8 & 0xFF) / 255.0F;
|
aFloatArray19[1] = (float) (arg0 >> 8 & 0xFF) / 255.0F;
|
||||||
aFloatArray19[2] = (float) (arg0 & 0xFF) / 255.0F;
|
aFloatArray19[2] = (float) (arg0 & 0xFF) / 255.0F;
|
||||||
local12.glFogi(GL.GL_FOG_MODE, GL.GL_LINEAR);
|
local12.glFogi(GL2.GL_FOG_MODE, GL2.GL_LINEAR);
|
||||||
local12.glFogf(GL.GL_FOG_DENSITY, 0.95F);
|
local12.glFogf(GL2.GL_FOG_DENSITY, 0.95F);
|
||||||
local12.glHint(GL.GL_FOG_HINT, GL.GL_FASTEST);
|
local12.glHint(GL2.GL_FOG_HINT, GL2.GL_FASTEST);
|
||||||
@Pc(65) int local65 = 3072 - arg1;
|
@Pc(65) int local65 = 3072 - arg1;
|
||||||
if (local65 < 50) {
|
if (local65 < 50) {
|
||||||
local65 = 50;
|
local65 = 50;
|
||||||
}
|
}
|
||||||
local12.glFogf(GL.GL_FOG_START, (float) local65);
|
local12.glFogf(GL2.GL_FOG_START, (float) local65);
|
||||||
local12.glFogf(GL.GL_FOG_END, (float) 3328);
|
local12.glFogf(GL2.GL_FOG_END, (float) 3328);
|
||||||
local12.glFogfv(GL.GL_FOG_COLOR, aFloatArray19, 0);
|
local12.glFogfv(GL2.GL_FOG_COLOR, aFloatArray19, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!mk", name = "a", descriptor = "(FFF)V")
|
@OriginalMember(owner = "client!mk", name = "a", descriptor = "(FFF)V")
|
||||||
|
|
@ -122,15 +122,15 @@ public final class Static161 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!mk", name = "e", descriptor = "()V")
|
@OriginalMember(owner = "client!mk", name = "e", descriptor = "()V")
|
||||||
public static void method3065() {
|
public static void method3065() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glColorMaterial(GL.GL_FRONT, GL.GL_AMBIENT_AND_DIFFUSE);
|
local1.glColorMaterial(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE);
|
||||||
local1.glEnable(GL.GL_COLOR_MATERIAL);
|
local1.glEnable(GL2.GL_COLOR_MATERIAL);
|
||||||
@Pc(27) float[] local27 = new float[] { 0.0F, 0.0F, 0.0F, 1.0F };
|
@Pc(27) float[] local27 = new float[] { 0.0F, 0.0F, 0.0F, 1.0F };
|
||||||
local1.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, local27, 0);
|
local1.glLightfv(GL2.GL_LIGHT0, GL2.GL_AMBIENT, local27, 0);
|
||||||
local1.glEnable(GL.GL_LIGHT0);
|
local1.glEnable(GL2.GL_LIGHT0);
|
||||||
@Pc(55) float[] local55 = new float[] { 0.0F, 0.0F, 0.0F, 1.0F };
|
@Pc(55) float[] local55 = new float[] { 0.0F, 0.0F, 0.0F, 1.0F };
|
||||||
local1.glLightfv(GL.GL_LIGHT1, GL.GL_AMBIENT, local55, 0);
|
local1.glLightfv(GL2.GL_LIGHT1, GL2.GL_AMBIENT, local55, 0);
|
||||||
local1.glEnable(GL.GL_LIGHT1);
|
local1.glEnable(GL2.GL_LIGHT1);
|
||||||
anInt3919 = -1;
|
anInt3919 = -1;
|
||||||
anInt3925 = -1;
|
anInt3925 = -1;
|
||||||
method3067();
|
method3067();
|
||||||
|
|
@ -141,8 +141,8 @@ public final class Static161 {
|
||||||
if (arg0 == null) {
|
if (arg0 == null) {
|
||||||
arg0 = aFloatArray19;
|
arg0 = aFloatArray19;
|
||||||
}
|
}
|
||||||
@Pc(5) GL local5 = Static239.aGL1;
|
@Pc(5) GL2 local5 = Static239.gl;
|
||||||
local5.glFogfv(GL.GL_FOG_COLOR, arg0, 0);
|
local5.glFogfv(GL2.GL_FOG_COLOR, arg0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!mk", name = "f", descriptor = "()V")
|
@OriginalMember(owner = "client!mk", name = "f", descriptor = "()V")
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@ import java.awt.Canvas;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.nio.ByteOrder;
|
import java.nio.ByteOrder;
|
||||||
import java.nio.IntBuffer;
|
import java.nio.IntBuffer;
|
||||||
import javax.media.opengl.GL;
|
|
||||||
import javax.media.opengl.GLCapabilities;
|
import com.jogamp.nativewindow.awt.AWTGraphicsConfiguration;
|
||||||
import javax.media.opengl.GLContext;
|
import com.jogamp.nativewindow.awt.JAWTWindow;
|
||||||
import javax.media.opengl.GLDrawable;
|
import com.jogamp.opengl.*;
|
||||||
import javax.media.opengl.GLDrawableFactory;
|
import com.jogamp.opengl.glu.gl2es1.GLUgl2es1;
|
||||||
import javax.media.opengl.glu.GLU;
|
import jogamp.newt.awt.NewtFactoryAWT;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
import org.openrs2.deob.annotation.Pc;
|
import org.openrs2.deob.annotation.Pc;
|
||||||
|
|
@ -39,7 +39,7 @@ public final class Static239 {
|
||||||
public static boolean aBoolean267;
|
public static boolean aBoolean267;
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "t", descriptor = "Lgl!javax/media/opengl/GL;")
|
@OriginalMember(owner = "client!tf", name = "t", descriptor = "Lgl!javax/media/opengl/GL;")
|
||||||
public static GL aGL1;
|
public static GL2 gl;
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "v", descriptor = "I")
|
@OriginalMember(owner = "client!tf", name = "v", descriptor = "I")
|
||||||
private static int anInt5327;
|
private static int anInt5327;
|
||||||
|
|
@ -156,9 +156,9 @@ public final class Static239 {
|
||||||
@OriginalMember(owner = "client!tf", name = "b", descriptor = "()V")
|
@OriginalMember(owner = "client!tf", name = "b", descriptor = "()V")
|
||||||
public static void method4150() {
|
public static void method4150() {
|
||||||
if (aBoolean262) {
|
if (aBoolean262) {
|
||||||
aGL1.glMatrixMode(GL.GL_TEXTURE);
|
gl.glMatrixMode(GL2.GL_TEXTURE);
|
||||||
aGL1.glLoadIdentity();
|
gl.glLoadIdentity();
|
||||||
aGL1.glMatrixMode(GL.GL_MODELVIEW);
|
gl.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
aBoolean262 = false;
|
aBoolean262 = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -192,9 +192,9 @@ public final class Static239 {
|
||||||
aFloatArray27[10] = aFloat30 + local42;
|
aFloatArray27[10] = aFloat30 + local42;
|
||||||
aFloatArray27[14] = aFloat32 * local29;
|
aFloatArray27[14] = aFloat32 * local29;
|
||||||
}
|
}
|
||||||
aGL1.glMatrixMode(GL.GL_PROJECTION);
|
gl.glMatrixMode(GL2.GL_PROJECTION);
|
||||||
aGL1.glLoadMatrixf(aFloatArray27, 0);
|
gl.glLoadMatrixf(aFloatArray27, 0);
|
||||||
aGL1.glMatrixMode(GL.GL_MODELVIEW);
|
gl.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "d", descriptor = "()V")
|
@OriginalMember(owner = "client!tf", name = "d", descriptor = "()V")
|
||||||
|
|
@ -211,9 +211,9 @@ public final class Static239 {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (arg0) {
|
if (arg0) {
|
||||||
aGL1.glEnable(GL.GL_FOG);
|
gl.glEnable(GL2.GL_FOG);
|
||||||
} else {
|
} else {
|
||||||
aGL1.glDisable(GL.GL_FOG);
|
gl.glDisable(GL2.GL_FOG);
|
||||||
}
|
}
|
||||||
aBoolean272 = arg0;
|
aBoolean272 = arg0;
|
||||||
}
|
}
|
||||||
|
|
@ -233,54 +233,54 @@ public final class Static239 {
|
||||||
@OriginalMember(owner = "client!tf", name = "f", descriptor = "()V")
|
@OriginalMember(owner = "client!tf", name = "f", descriptor = "()V")
|
||||||
private static void method4156() {
|
private static void method4156() {
|
||||||
aBoolean266 = false;
|
aBoolean266 = false;
|
||||||
aGL1.glDisable(GL.GL_TEXTURE_2D);
|
gl.glDisable(GL2.GL_TEXTURE_2D);
|
||||||
anInt5326 = -1;
|
anInt5326 = -1;
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_COMBINE);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_MODE, GL2.GL_COMBINE);
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
anInt5325 = 0;
|
anInt5325 = 0;
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_MODULATE);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_MODULATE);
|
||||||
anInt5324 = 0;
|
anInt5324 = 0;
|
||||||
aGL1.glEnable(GL.GL_LIGHTING);
|
gl.glEnable(GL2.GL_LIGHTING);
|
||||||
aGL1.glEnable(GL.GL_FOG);
|
gl.glEnable(GL2.GL_FOG);
|
||||||
aGL1.glEnable(GL.GL_DEPTH_TEST);
|
gl.glEnable(GL2.GL_DEPTH_TEST);
|
||||||
aBoolean264 = true;
|
aBoolean264 = true;
|
||||||
aBoolean268 = true;
|
aBoolean268 = true;
|
||||||
aBoolean272 = true;
|
aBoolean272 = true;
|
||||||
Static83.method440();
|
Static83.method440();
|
||||||
aGL1.glActiveTexture(GL.GL_TEXTURE1);
|
gl.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_COMBINE);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_MODE, GL2.GL_COMBINE);
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_MODULATE);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_MODULATE);
|
||||||
aGL1.glActiveTexture(GL.GL_TEXTURE0);
|
gl.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
aGL1.setSwapInterval(0);
|
gl.setSwapInterval(0);
|
||||||
aGL1.glClearColor(0.0F, 0.0F, 0.0F, 0.0F);
|
gl.glClearColor(0.0F, 0.0F, 0.0F, 0.0F);
|
||||||
aGL1.glShadeModel(GL.GL_SMOOTH);
|
gl.glShadeModel(GL2.GL_SMOOTH);
|
||||||
aGL1.glClearDepth(1.0D);
|
gl.glClearDepth(1.0D);
|
||||||
aGL1.glDepthFunc(GL.GL_LEQUAL);
|
gl.glDepthFunc(GL2.GL_LEQUAL);
|
||||||
method4157();
|
method4157();
|
||||||
aGL1.glMatrixMode(GL.GL_TEXTURE);
|
gl.glMatrixMode(GL2.GL_TEXTURE);
|
||||||
aGL1.glLoadIdentity();
|
gl.glLoadIdentity();
|
||||||
aGL1.glPolygonMode(GL.GL_FRONT, GL.GL_FILL);
|
gl.glPolygonMode(GL2.GL_FRONT, GL2.GL_FILL);
|
||||||
aGL1.glEnable(GL.GL_CULL_FACE);
|
gl.glEnable(GL2.GL_CULL_FACE);
|
||||||
aGL1.glCullFace(GL.GL_BACK);
|
gl.glCullFace(GL2.GL_BACK);
|
||||||
aGL1.glEnable(GL.GL_BLEND);
|
gl.glEnable(GL2.GL_BLEND);
|
||||||
aGL1.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
|
gl.glBlendFunc(GL2.GL_SRC_ALPHA, GL2.GL_ONE_MINUS_SRC_ALPHA);
|
||||||
aGL1.glEnable(GL.GL_ALPHA_TEST);
|
gl.glEnable(GL2.GL_ALPHA_TEST);
|
||||||
aGL1.glAlphaFunc(GL.GL_GREATER, 0.0F);
|
gl.glAlphaFunc(GL2.GL_GREATER, 0.0F);
|
||||||
aGL1.glEnableClientState(GL.GL_VERTEX_ARRAY);
|
gl.glEnableClientState(GL2.GL_VERTEX_ARRAY);
|
||||||
aGL1.glEnableClientState(GL.GL_NORMAL_ARRAY);
|
gl.glEnableClientState(GL2.GL_NORMAL_ARRAY);
|
||||||
aBoolean265 = true;
|
aBoolean265 = true;
|
||||||
aGL1.glEnableClientState(GL.GL_COLOR_ARRAY);
|
gl.glEnableClientState(GL2.GL_COLOR_ARRAY);
|
||||||
aGL1.glEnableClientState(GL.GL_TEXTURE_COORD_ARRAY);
|
gl.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);
|
||||||
aGL1.glMatrixMode(GL.GL_MODELVIEW);
|
gl.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
aGL1.glLoadIdentity();
|
gl.glLoadIdentity();
|
||||||
Static161.method3065();
|
Static161.method3065();
|
||||||
Static120.method2400();
|
Static120.method2400();
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "g", descriptor = "()V")
|
@OriginalMember(owner = "client!tf", name = "g", descriptor = "()V")
|
||||||
public static void method4157() {
|
public static void method4157() {
|
||||||
aGL1.glDepthMask(true);
|
gl.glDepthMask(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "b", descriptor = "(Z)V")
|
@OriginalMember(owner = "client!tf", name = "b", descriptor = "(Z)V")
|
||||||
|
|
@ -289,9 +289,9 @@ public final class Static239 {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (arg0) {
|
if (arg0) {
|
||||||
aGL1.glEnable(GL.GL_DEPTH_TEST);
|
gl.glEnable(GL2.GL_DEPTH_TEST);
|
||||||
} else {
|
} else {
|
||||||
aGL1.glDisable(GL.GL_DEPTH_TEST);
|
gl.glDisable(GL2.GL_DEPTH_TEST);
|
||||||
}
|
}
|
||||||
aBoolean268 = arg0;
|
aBoolean268 = arg0;
|
||||||
}
|
}
|
||||||
|
|
@ -304,37 +304,43 @@ public final class Static239 {
|
||||||
@OriginalMember(owner = "client!tf", name = "h", descriptor = "()V")
|
@OriginalMember(owner = "client!tf", name = "h", descriptor = "()V")
|
||||||
public static void method4160() {
|
public static void method4160() {
|
||||||
@Pc(2) int[] local2 = new int[2];
|
@Pc(2) int[] local2 = new int[2];
|
||||||
aGL1.glGetIntegerv(GL.GL_DRAW_BUFFER, local2, 0);
|
gl.glGetIntegerv(GL2.GL_DRAW_BUFFER, local2, 0);
|
||||||
aGL1.glGetIntegerv(GL.GL_READ_BUFFER, local2, 1);
|
gl.glGetIntegerv(GL2.GL_READ_BUFFER, local2, 1);
|
||||||
aGL1.glDrawBuffer(GL.GL_BACK_LEFT);
|
gl.glDrawBuffer(GL2.GL_BACK_LEFT);
|
||||||
aGL1.glReadBuffer(GL.GL_FRONT_LEFT);
|
gl.glReadBuffer(GL2.GL_FRONT_LEFT);
|
||||||
method4177(-1);
|
method4177(-1);
|
||||||
aGL1.glPushAttrib(GL.GL_ENABLE_BIT);
|
gl.glPushAttrib(GL2.GL_ENABLE_BIT);
|
||||||
aGL1.glDisable(GL.GL_FOG);
|
gl.glDisable(GL2.GL_FOG);
|
||||||
aGL1.glDisable(GL.GL_BLEND);
|
gl.glDisable(GL2.GL_BLEND);
|
||||||
aGL1.glDisable(GL.GL_DEPTH_TEST);
|
gl.glDisable(GL2.GL_DEPTH_TEST);
|
||||||
aGL1.glDisable(GL.GL_ALPHA_TEST);
|
gl.glDisable(GL2.GL_ALPHA_TEST);
|
||||||
aGL1.glRasterPos2i(0, 0);
|
gl.glRasterPos2i(0, 0);
|
||||||
aGL1.glCopyPixels(0, 0, anInt5332, anInt5329, GL.GL_COLOR);
|
gl.glCopyPixels(0, 0, anInt5332, anInt5329, GL2.GL_COLOR);
|
||||||
aGL1.glPopAttrib();
|
gl.glPopAttrib();
|
||||||
aGL1.glDrawBuffer(local2[0]);
|
gl.glDrawBuffer(local2[0]);
|
||||||
aGL1.glReadBuffer(local2[1]);
|
gl.glReadBuffer(local2[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "a", descriptor = "(Ljava/awt/Canvas;)V")
|
@OriginalMember(owner = "client!tf", name = "a", descriptor = "(Ljava/awt/Canvas;)V")
|
||||||
public static void method4161(@OriginalArg(0) Canvas arg0) {
|
public static void method4161(@OriginalArg(0) Canvas canvas) {
|
||||||
try {
|
try {
|
||||||
if (!arg0.isDisplayable()) {
|
if (!canvas.isDisplayable()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@Pc(5) GLDrawableFactory local5 = GLDrawableFactory.getFactory();
|
GLProfile profile = GLProfile.getDefault();
|
||||||
@Pc(11) GLDrawable local11 = local5.getGLDrawable(arg0, null, null);
|
|
||||||
local11.setRealized(true);
|
GLCapabilities glCaps = new GLCapabilities(profile);
|
||||||
@Pc(18) GLContext local18 = local11.createContext(null);
|
AWTGraphicsConfiguration config = AWTGraphicsConfiguration.create(canvas.getGraphicsConfiguration(), glCaps, glCaps);
|
||||||
local18.makeCurrent();
|
JAWTWindow jawtWindow = NewtFactoryAWT.getNativeWindow(canvas, config);
|
||||||
local18.release();
|
@Pc(5) GLDrawableFactory glDrawableFactory = GLDrawableFactory.getFactory(profile);
|
||||||
local18.destroy();
|
@Pc(11) GLDrawable glDrawable = glDrawableFactory.createGLDrawable(jawtWindow);
|
||||||
local11.setRealized(false);
|
|
||||||
|
glDrawable.setRealized(true);
|
||||||
|
@Pc(18) GLContext glContext = glDrawable.createContext(null);
|
||||||
|
glContext.makeCurrent();
|
||||||
|
glContext.release();
|
||||||
|
glContext.destroy();
|
||||||
|
glDrawable.setRealized(false);
|
||||||
} catch (@Pc(30) Throwable local30) {
|
} catch (@Pc(30) Throwable local30) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -355,12 +361,12 @@ public final class Static239 {
|
||||||
if (aBoolean266) {
|
if (aBoolean266) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
aGL1.glMatrixMode(GL.GL_PROJECTION);
|
gl.glMatrixMode(GL2.GL_PROJECTION);
|
||||||
aGL1.glLoadIdentity();
|
gl.glLoadIdentity();
|
||||||
aGL1.glOrtho(0.0D, (double) anInt5332, 0.0D, (double) anInt5329, -1.0D, 1.0D);
|
gl.glOrtho(0.0D, (double) anInt5332, 0.0D, (double) anInt5329, -1.0D, 1.0D);
|
||||||
aGL1.glViewport(0, 0, anInt5332, anInt5329);
|
gl.glViewport(0, 0, anInt5332, anInt5329);
|
||||||
aGL1.glMatrixMode(GL.GL_MODELVIEW);
|
gl.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
aGL1.glLoadIdentity();
|
gl.glLoadIdentity();
|
||||||
aBoolean266 = true;
|
aBoolean266 = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -370,9 +376,9 @@ public final class Static239 {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (arg0) {
|
if (arg0) {
|
||||||
aGL1.glEnable(GL.GL_LIGHTING);
|
gl.glEnable(GL2.GL_LIGHTING);
|
||||||
} else {
|
} else {
|
||||||
aGL1.glDisable(GL.GL_LIGHTING);
|
gl.glDisable(GL2.GL_LIGHTING);
|
||||||
}
|
}
|
||||||
aBoolean264 = arg0;
|
aBoolean264 = arg0;
|
||||||
}
|
}
|
||||||
|
|
@ -385,8 +391,8 @@ public final class Static239 {
|
||||||
@OriginalMember(owner = "client!tf", name = "m", descriptor = "()I")
|
@OriginalMember(owner = "client!tf", name = "m", descriptor = "()I")
|
||||||
private static int method4167() {
|
private static int method4167() {
|
||||||
@Pc(1) int local1 = 0;
|
@Pc(1) int local1 = 0;
|
||||||
aString5 = aGL1.glGetString(GL.GL_VENDOR);
|
aString5 = gl.glGetString(GL2.GL_VENDOR);
|
||||||
aString6 = aGL1.glGetString(GL.GL_RENDERER);
|
aString6 = gl.glGetString(GL2.GL_RENDERER);
|
||||||
@Pc(12) String local12 = aString5.toLowerCase();
|
@Pc(12) String local12 = aString5.toLowerCase();
|
||||||
if (local12.indexOf("microsoft") != -1) {
|
if (local12.indexOf("microsoft") != -1) {
|
||||||
local1 = 1;
|
local1 = 1;
|
||||||
|
|
@ -394,7 +400,7 @@ public final class Static239 {
|
||||||
if (local12.indexOf("brian paul") != -1 || local12.indexOf("mesa") != -1) {
|
if (local12.indexOf("brian paul") != -1 || local12.indexOf("mesa") != -1) {
|
||||||
local1 |= 0x1;
|
local1 |= 0x1;
|
||||||
}
|
}
|
||||||
@Pc(39) String local39 = aGL1.glGetString(GL.GL_VERSION);
|
@Pc(39) String local39 = gl.glGetString(GL2.GL_VERSION);
|
||||||
@Pc(43) String[] local43 = local39.split("[. ]");
|
@Pc(43) String[] local43 = local39.split("[. ]");
|
||||||
if (local43.length >= 2) {
|
if (local43.length >= 2) {
|
||||||
try {
|
try {
|
||||||
|
|
@ -410,18 +416,18 @@ public final class Static239 {
|
||||||
if (anInt5330 < 12) {
|
if (anInt5330 < 12) {
|
||||||
local1 |= 0x2;
|
local1 |= 0x2;
|
||||||
}
|
}
|
||||||
if (!aGL1.isExtensionAvailable("GL_ARB_multitexture")) {
|
if (!gl.isExtensionAvailable("GL_ARB_multitexture")) {
|
||||||
local1 |= 0x8;
|
local1 |= 0x8;
|
||||||
}
|
}
|
||||||
if (!aGL1.isExtensionAvailable("GL_ARB_texture_env_combine")) {
|
if (!gl.isExtensionAvailable("GL_ARB_texture_env_combine")) {
|
||||||
local1 |= 0x20;
|
local1 |= 0x20;
|
||||||
}
|
}
|
||||||
@Pc(100) int[] local100 = new int[1];
|
@Pc(100) int[] local100 = new int[1];
|
||||||
aGL1.glGetIntegerv(GL.GL_MAX_TEXTURE_UNITS, local100, 0);
|
gl.glGetIntegerv(GL2.GL_MAX_TEXTURE_UNITS, local100, 0);
|
||||||
anInt5322 = local100[0];
|
anInt5322 = local100[0];
|
||||||
aGL1.glGetIntegerv(GL.GL_MAX_TEXTURE_COORDS, local100, 0);
|
gl.glGetIntegerv(GL2.GL_MAX_TEXTURE_COORDS, local100, 0);
|
||||||
anInt5331 = local100[0];
|
anInt5331 = local100[0];
|
||||||
aGL1.glGetIntegerv(GL.GL_MAX_TEXTURE_IMAGE_UNITS, local100, 0);
|
gl.glGetIntegerv(GL2.GL_MAX_TEXTURE_IMAGE_UNITS, local100, 0);
|
||||||
anInt5327 = local100[0];
|
anInt5327 = local100[0];
|
||||||
if (anInt5322 < 2 || anInt5331 < 2 || anInt5327 < 2) {
|
if (anInt5322 < 2 || anInt5331 < 2 || anInt5327 < 2) {
|
||||||
local1 |= 0x10;
|
local1 |= 0x10;
|
||||||
|
|
@ -430,11 +436,11 @@ public final class Static239 {
|
||||||
return local1;
|
return local1;
|
||||||
}
|
}
|
||||||
aBoolean263 = ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN;
|
aBoolean263 = ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN;
|
||||||
aBoolean271 = aGL1.isExtensionAvailable("GL_ARB_vertex_buffer_object");
|
aBoolean271 = gl.isExtensionAvailable("GL_ARB_vertex_buffer_object");
|
||||||
aBoolean270 = aGL1.isExtensionAvailable("GL_ARB_multisample");
|
aBoolean270 = gl.isExtensionAvailable("GL_ARB_multisample");
|
||||||
aBoolean275 = aGL1.isExtensionAvailable("GL_ARB_texture_cube_map");
|
aBoolean275 = gl.isExtensionAvailable("GL_ARB_texture_cube_map");
|
||||||
aBoolean274 = aGL1.isExtensionAvailable("GL_ARB_vertex_program");
|
aBoolean274 = gl.isExtensionAvailable("GL_ARB_vertex_program");
|
||||||
aBoolean267 = aGL1.isExtensionAvailable("GL_EXT_texture3D");
|
aBoolean267 = gl.isExtensionAvailable("GL_EXT_texture3D");
|
||||||
@Pc(176) JagString local176 = method4147(aString6).method3114();
|
@Pc(176) JagString local176 = method4147(aString6).method3114();
|
||||||
if (local176.method3131(aClass100_1007) != -1) {
|
if (local176.method3131(aClass100_1007) != -1) {
|
||||||
@Pc(184) int local184 = 0;
|
@Pc(184) int local184 = 0;
|
||||||
|
|
@ -457,7 +463,7 @@ public final class Static239 {
|
||||||
if (aBoolean271) {
|
if (aBoolean271) {
|
||||||
try {
|
try {
|
||||||
@Pc(250) int[] local250 = new int[1];
|
@Pc(250) int[] local250 = new int[1];
|
||||||
aGL1.glGenBuffersARB(1, local250, 0);
|
gl.glGenBuffers(1, local250, 0);
|
||||||
} catch (@Pc(257) Throwable local257) {
|
} catch (@Pc(257) Throwable local257) {
|
||||||
return -4;
|
return -4;
|
||||||
}
|
}
|
||||||
|
|
@ -467,17 +473,17 @@ public final class Static239 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "n", descriptor = "()V")
|
@OriginalMember(owner = "client!tf", name = "n", descriptor = "()V")
|
||||||
public static void method4168() {
|
public static void method4168() {
|
||||||
aGL1.glClear(GL.GL_DEPTH_BUFFER_BIT);
|
gl.glClear(GL2.GL_DEPTH_BUFFER_BIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "o", descriptor = "()V")
|
@OriginalMember(owner = "client!tf", name = "o", descriptor = "()V")
|
||||||
public static void method4169() {
|
public static void method4169() {
|
||||||
if (aGL1 != null) {
|
if (gl != null) {
|
||||||
try {
|
try {
|
||||||
Static172.method3225();
|
Static172.method3225();
|
||||||
} catch (@Pc(5) Throwable local5) {
|
} catch (@Pc(5) Throwable local5) {
|
||||||
}
|
}
|
||||||
aGL1 = null;
|
gl = null;
|
||||||
}
|
}
|
||||||
if (aGLContext1 != null) {
|
if (aGLContext1 != null) {
|
||||||
Static63.method1488();
|
Static63.method1488();
|
||||||
|
|
@ -506,12 +512,12 @@ public final class Static239 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "a", descriptor = "(FFF)V")
|
@OriginalMember(owner = "client!tf", name = "a", descriptor = "(FFF)V")
|
||||||
public static void method4170(@OriginalArg(0) float arg0, @OriginalArg(1) float arg1, @OriginalArg(2) float arg2) {
|
public static void method4170(@OriginalArg(0) float arg0, @OriginalArg(1) float arg1, @OriginalArg(2) float arg2) {
|
||||||
aGL1.glMatrixMode(GL.GL_TEXTURE);
|
gl.glMatrixMode(GL2.GL_TEXTURE);
|
||||||
if (aBoolean262) {
|
if (aBoolean262) {
|
||||||
aGL1.glLoadIdentity();
|
gl.glLoadIdentity();
|
||||||
}
|
}
|
||||||
aGL1.glTranslatef(arg0, arg1, arg2);
|
gl.glTranslatef(arg0, arg1, arg2);
|
||||||
aGL1.glMatrixMode(GL.GL_MODELVIEW);
|
gl.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
aBoolean262 = true;
|
aBoolean262 = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -521,18 +527,18 @@ public final class Static239 {
|
||||||
@Pc(17) int local17 = (arg0 + arg2 - arg4 << 8) / arg8;
|
@Pc(17) int local17 = (arg0 + arg2 - arg4 << 8) / arg8;
|
||||||
@Pc(25) int local25 = (arg1 - arg5 << 8) / arg9;
|
@Pc(25) int local25 = (arg1 - arg5 << 8) / arg9;
|
||||||
@Pc(35) int local35 = (arg1 + arg3 - arg5 << 8) / arg9;
|
@Pc(35) int local35 = (arg1 + arg3 - arg5 << 8) / arg9;
|
||||||
aGL1.glMatrixMode(GL.GL_PROJECTION);
|
gl.glMatrixMode(GL2.GL_PROJECTION);
|
||||||
aGL1.glLoadIdentity();
|
gl.glLoadIdentity();
|
||||||
method4175((float) local7 * aFloat34, (float) local17 * aFloat34, (float) -local35 * aFloat34, (float) -local25 * aFloat34, 50.0F, 3584.0F);
|
method4175((float) local7 * aFloat34, (float) local17 * aFloat34, (float) -local35 * aFloat34, (float) -local25 * aFloat34, 50.0F, 3584.0F);
|
||||||
aGL1.glViewport(arg0, anInt5329 - arg1 - arg3, arg2, arg3);
|
gl.glViewport(arg0, anInt5329 - arg1 - arg3, arg2, arg3);
|
||||||
aGL1.glMatrixMode(GL.GL_MODELVIEW);
|
gl.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
aGL1.glLoadIdentity();
|
gl.glLoadIdentity();
|
||||||
aGL1.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
|
gl.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
|
||||||
if (arg6 != 0.0F) {
|
if (arg6 != 0.0F) {
|
||||||
aGL1.glRotatef(arg6, 1.0F, 0.0F, 0.0F);
|
gl.glRotatef(arg6, 1.0F, 0.0F, 0.0F);
|
||||||
}
|
}
|
||||||
if (arg7 != 0.0F) {
|
if (arg7 != 0.0F) {
|
||||||
aGL1.glRotatef(arg7, 0.0F, 1.0F, 0.0F);
|
gl.glRotatef(arg7, 0.0F, 1.0F, 0.0F);
|
||||||
}
|
}
|
||||||
aBoolean266 = false;
|
aBoolean266 = false;
|
||||||
Static240.anInt5334 = local7;
|
Static240.anInt5334 = local7;
|
||||||
|
|
@ -547,9 +553,9 @@ public final class Static239 {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (arg0) {
|
if (arg0) {
|
||||||
aGL1.glEnableClientState(GL.GL_NORMAL_ARRAY);
|
gl.glEnableClientState(GL2.GL_NORMAL_ARRAY);
|
||||||
} else {
|
} else {
|
||||||
aGL1.glDisableClientState(GL.GL_NORMAL_ARRAY);
|
gl.glDisableClientState(GL2.GL_NORMAL_ARRAY);
|
||||||
}
|
}
|
||||||
aBoolean265 = arg0;
|
aBoolean265 = arg0;
|
||||||
}
|
}
|
||||||
|
|
@ -571,13 +577,13 @@ public final class Static239 {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (arg0 == 0) {
|
if (arg0 == 0) {
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_MODULATE);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_MODULATE);
|
||||||
}
|
}
|
||||||
if (arg0 == 1) {
|
if (arg0 == 1) {
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_REPLACE);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_REPLACE);
|
||||||
}
|
}
|
||||||
if (arg0 == 2) {
|
if (arg0 == 2) {
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_ADD);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_ADD);
|
||||||
}
|
}
|
||||||
anInt5324 = arg0;
|
anInt5324 = arg0;
|
||||||
}
|
}
|
||||||
|
|
@ -601,16 +607,16 @@ public final class Static239 {
|
||||||
aFloatArray27[13] = 0.0F;
|
aFloatArray27[13] = 0.0F;
|
||||||
aFloatArray27[14] = aFloat32 = -(local3 * arg5) / (arg5 - arg4);
|
aFloatArray27[14] = aFloat32 = -(local3 * arg5) / (arg5 - arg4);
|
||||||
aFloatArray27[15] = 0.0F;
|
aFloatArray27[15] = 0.0F;
|
||||||
aGL1.glLoadMatrixf(aFloatArray27, 0);
|
gl.glLoadMatrixf(aFloatArray27, 0);
|
||||||
aFloat33 = 0.0F;
|
aFloat33 = 0.0F;
|
||||||
aFloat31 = 0.0F;
|
aFloat31 = 0.0F;
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "b", descriptor = "(I)V")
|
@OriginalMember(owner = "client!tf", name = "b", descriptor = "(I)V")
|
||||||
public static void method4176(@OriginalArg(0) int arg0) {
|
public static void method4176(@OriginalArg(0) int arg0) {
|
||||||
aGL1.glClearColor((float) (arg0 >> 16 & 0xFF) / 255.0F, (float) (arg0 >> 8 & 0xFF) / 255.0F, (float) (arg0 & 0xFF) / 255.0F, 0.0F);
|
gl.glClearColor((float) (arg0 >> 16 & 0xFF) / 255.0F, (float) (arg0 >> 8 & 0xFF) / 255.0F, (float) (arg0 & 0xFF) / 255.0F, 0.0F);
|
||||||
aGL1.glClear(GL.GL_DEPTH_BUFFER_BIT | GL.GL_COLOR_BUFFER_BIT);
|
gl.glClear(GL2.GL_DEPTH_BUFFER_BIT | GL2.GL_COLOR_BUFFER_BIT);
|
||||||
aGL1.glClearColor(0.0F, 0.0F, 0.0F, 0.0F);
|
gl.glClearColor(0.0F, 0.0F, 0.0F, 0.0F);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "c", descriptor = "(I)V")
|
@OriginalMember(owner = "client!tf", name = "c", descriptor = "(I)V")
|
||||||
|
|
@ -619,19 +625,19 @@ public final class Static239 {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (arg0 == -1) {
|
if (arg0 == -1) {
|
||||||
aGL1.glDisable(GL.GL_TEXTURE_2D);
|
gl.glDisable(GL2.GL_TEXTURE_2D);
|
||||||
} else {
|
} else {
|
||||||
if (anInt5326 == -1) {
|
if (anInt5326 == -1) {
|
||||||
aGL1.glEnable(GL.GL_TEXTURE_2D);
|
gl.glEnable(GL2.GL_TEXTURE_2D);
|
||||||
}
|
}
|
||||||
aGL1.glBindTexture(GL.GL_TEXTURE_2D, arg0);
|
gl.glBindTexture(GL2.GL_TEXTURE_2D, arg0);
|
||||||
}
|
}
|
||||||
anInt5326 = arg0;
|
anInt5326 = arg0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "q", descriptor = "()V")
|
@OriginalMember(owner = "client!tf", name = "q", descriptor = "()V")
|
||||||
public static void method4178() {
|
public static void method4178() {
|
||||||
aGL1.glDepthMask(false);
|
gl.glDepthMask(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "r", descriptor = "()F")
|
@OriginalMember(owner = "client!tf", name = "r", descriptor = "()F")
|
||||||
|
|
@ -640,18 +646,21 @@ public final class Static239 {
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tf", name = "a", descriptor = "(Ljava/awt/Canvas;I)I")
|
@OriginalMember(owner = "client!tf", name = "a", descriptor = "(Ljava/awt/Canvas;I)I")
|
||||||
public static int method4180(@OriginalArg(0) Canvas arg0, @OriginalArg(1) int arg1) {
|
public static int method4180(@OriginalArg(0) Canvas canvas, @OriginalArg(1) int arg1) {
|
||||||
try {
|
try {
|
||||||
if (!arg0.isDisplayable()) {
|
if (!canvas.isDisplayable()) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@Pc(8) GLCapabilities local8 = new GLCapabilities();
|
GLProfile glProfile = GLProfile.get(GLProfile.GL2);
|
||||||
|
@Pc(8) GLCapabilities glCaps = new GLCapabilities(glProfile);
|
||||||
if (arg1 > 0) {
|
if (arg1 > 0) {
|
||||||
local8.setSampleBuffers(true);
|
glCaps.setSampleBuffers(true);
|
||||||
local8.setNumSamples(arg1);
|
glCaps.setNumSamples(arg1);
|
||||||
}
|
}
|
||||||
@Pc(18) GLDrawableFactory local18 = GLDrawableFactory.getFactory();
|
@Pc(18) GLDrawableFactory glDrawableFactory = GLDrawableFactory.getFactory(glProfile);
|
||||||
aGLDrawable1 = local18.getGLDrawable(arg0, local8, null);
|
AWTGraphicsConfiguration config = AWTGraphicsConfiguration.create(canvas.getGraphicsConfiguration(), glCaps, glCaps);
|
||||||
|
JAWTWindow jawtWindow = NewtFactoryAWT.getNativeWindow(canvas, config);
|
||||||
|
aGLDrawable1 = glDrawableFactory.createGLDrawable(jawtWindow);
|
||||||
aGLDrawable1.setRealized(true);
|
aGLDrawable1.setRealized(true);
|
||||||
@Pc(29) int local29 = 0;
|
@Pc(29) int local29 = 0;
|
||||||
@Pc(36) int var5;
|
@Pc(36) int var5;
|
||||||
|
|
@ -669,11 +678,11 @@ public final class Static239 {
|
||||||
}
|
}
|
||||||
Static231.method3983(1000L);
|
Static231.method3983(1000L);
|
||||||
}
|
}
|
||||||
aGL1 = aGLContext1.getGL();
|
gl = GLContext.getCurrentGL().getGL2();
|
||||||
new GLU();
|
new GLUgl2es1();
|
||||||
aBoolean269 = true;
|
aBoolean269 = true;
|
||||||
anInt5332 = arg0.getSize().width;
|
anInt5332 = canvas.getSize().width;
|
||||||
anInt5329 = arg0.getSize().height;
|
anInt5329 = canvas.getSize().height;
|
||||||
var5 = method4167();
|
var5 = method4167();
|
||||||
if (var5 != 0) {
|
if (var5 != 0) {
|
||||||
method4169();
|
method4169();
|
||||||
|
|
@ -681,7 +690,7 @@ public final class Static239 {
|
||||||
}
|
}
|
||||||
method4184();
|
method4184();
|
||||||
method4156();
|
method4156();
|
||||||
aGL1.glClear(GL.GL_COLOR_BUFFER_BIT);
|
gl.glClear(GL2.GL_COLOR_BUFFER_BIT);
|
||||||
local29 = 0;
|
local29 = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
|
|
@ -695,7 +704,7 @@ public final class Static239 {
|
||||||
Static231.method3983(100L);
|
Static231.method3983(100L);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
aGL1.glClear(GL.GL_COLOR_BUFFER_BIT);
|
gl.glClear(GL2.GL_COLOR_BUFFER_BIT);
|
||||||
return 0;
|
return 0;
|
||||||
} catch (@Pc(103) Throwable local103) {
|
} catch (@Pc(103) Throwable local103) {
|
||||||
method4169();
|
method4169();
|
||||||
|
|
@ -716,16 +725,16 @@ public final class Static239 {
|
||||||
@Pc(6) int local6 = anInt5332 - arg0;
|
@Pc(6) int local6 = anInt5332 - arg0;
|
||||||
@Pc(9) int local9 = -arg1;
|
@Pc(9) int local9 = -arg1;
|
||||||
@Pc(13) int local13 = anInt5329 - arg1;
|
@Pc(13) int local13 = anInt5329 - arg1;
|
||||||
aGL1.glMatrixMode(GL.GL_PROJECTION);
|
gl.glMatrixMode(GL2.GL_PROJECTION);
|
||||||
aGL1.glLoadIdentity();
|
gl.glLoadIdentity();
|
||||||
@Pc(23) float local23 = (float) arg2 / 512.0F;
|
@Pc(23) float local23 = (float) arg2 / 512.0F;
|
||||||
@Pc(30) float local30 = local23 * (256.0F / (float) arg4);
|
@Pc(30) float local30 = local23 * (256.0F / (float) arg4);
|
||||||
@Pc(37) float local37 = local23 * (256.0F / (float) arg5);
|
@Pc(37) float local37 = local23 * (256.0F / (float) arg5);
|
||||||
aGL1.glOrtho((double) ((float) local2 * local30), (double) ((float) local6 * local30), (double) ((float) -local13 * local37), (double) ((float) -local9 * local37), (double) (50 - arg3), (double) (3584 - arg3));
|
gl.glOrtho((double) ((float) local2 * local30), (double) ((float) local6 * local30), (double) ((float) -local13 * local37), (double) ((float) -local9 * local37), (double) (50 - arg3), (double) (3584 - arg3));
|
||||||
aGL1.glViewport(0, 0, anInt5332, anInt5329);
|
gl.glViewport(0, 0, anInt5332, anInt5329);
|
||||||
aGL1.glMatrixMode(GL.GL_MODELVIEW);
|
gl.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
aGL1.glLoadIdentity();
|
gl.glLoadIdentity();
|
||||||
aGL1.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
|
gl.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
|
||||||
aBoolean266 = false;
|
aBoolean266 = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -735,22 +744,22 @@ public final class Static239 {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (arg0 == 0) {
|
if (arg0 == 0) {
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
}
|
}
|
||||||
if (arg0 == 1) {
|
if (arg0 == 1) {
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_REPLACE);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_REPLACE);
|
||||||
}
|
}
|
||||||
if (arg0 == 2) {
|
if (arg0 == 2) {
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_ADD);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_ADD);
|
||||||
}
|
}
|
||||||
if (arg0 == 3) {
|
if (arg0 == 3) {
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_SUBTRACT);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_SUBTRACT);
|
||||||
}
|
}
|
||||||
if (arg0 == 4) {
|
if (arg0 == 4) {
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_ADD_SIGNED);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_ADD_SIGNED);
|
||||||
}
|
}
|
||||||
if (arg0 == 5) {
|
if (arg0 == 5) {
|
||||||
aGL1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_INTERPOLATE);
|
gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_INTERPOLATE);
|
||||||
}
|
}
|
||||||
anInt5325 = arg0;
|
anInt5325 = arg0;
|
||||||
}
|
}
|
||||||
|
|
@ -758,10 +767,10 @@ public final class Static239 {
|
||||||
@OriginalMember(owner = "client!tf", name = "s", descriptor = "()V")
|
@OriginalMember(owner = "client!tf", name = "s", descriptor = "()V")
|
||||||
private static void method4184() {
|
private static void method4184() {
|
||||||
@Pc(2) int[] local2 = new int[1];
|
@Pc(2) int[] local2 = new int[1];
|
||||||
aGL1.glGenTextures(1, local2, 0);
|
gl.glGenTextures(1, local2, 0);
|
||||||
anInt5328 = local2[0];
|
anInt5328 = local2[0];
|
||||||
aGL1.glBindTexture(GL.GL_TEXTURE_2D, anInt5328);
|
gl.glBindTexture(GL2.GL_TEXTURE_2D, anInt5328);
|
||||||
aGL1.glTexImage2D(GL.GL_TEXTURE_2D, 0, 4, 1, 1, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, IntBuffer.wrap(new int[] { -1 }));
|
gl.glTexImage2D(GL2.GL_TEXTURE_2D, 0, 4, 1, 1, 0, GL2.GL_RGBA, GL2.GL_UNSIGNED_BYTE, IntBuffer.wrap(new int[] { -1 }));
|
||||||
Static120.method2401();
|
Static120.method2401();
|
||||||
Static238.method4145();
|
Static238.method4145();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
import org.openrs2.deob.annotation.Pc;
|
import org.openrs2.deob.annotation.Pc;
|
||||||
|
|
@ -121,7 +121,7 @@ public final class Static242 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!tj", name = "a", descriptor = "(IIII[[Z[[I)V")
|
@OriginalMember(owner = "client!tj", name = "a", descriptor = "(IIII[[Z[[I)V")
|
||||||
public static void method4198(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) boolean[][] arg4, @OriginalArg(5) int[][] arg5) {
|
public static void method4198(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) boolean[][] arg4, @OriginalArg(5) int[][] arg5) {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
Static239.method4183(1);
|
Static239.method4183(1);
|
||||||
Static239.method4174(1);
|
Static239.method4174(1);
|
||||||
Static239.method4150();
|
Static239.method4150();
|
||||||
|
|
@ -150,7 +150,7 @@ public final class Static242 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local1.glEnableClientState(GL.GL_COLOR_ARRAY);
|
local1.glEnableClientState(GL2.GL_COLOR_ARRAY);
|
||||||
local1.glDepthMask(true);
|
local1.glDepthMask(true);
|
||||||
Static239.method4173();
|
Static239.method4173();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
import org.openrs2.deob.annotation.Pc;
|
import org.openrs2.deob.annotation.Pc;
|
||||||
|
|
@ -97,7 +97,7 @@ public final class Static248 {
|
||||||
}
|
}
|
||||||
@Pc(240) boolean local240 = Static83.anIntArrayArrayArray4 == Static80.anIntArrayArrayArray19;
|
@Pc(240) boolean local240 = Static83.anIntArrayArrayArray4 == Static80.anIntArrayArrayArray19;
|
||||||
if (Static239.aBoolean269) {
|
if (Static239.aBoolean269) {
|
||||||
@Pc(244) GL local244 = Static239.aGL1;
|
@Pc(244) GL2 local244 = Static239.gl;
|
||||||
local244.glPushMatrix();
|
local244.glPushMatrix();
|
||||||
local244.glTranslatef((float) -arg0, (float) -arg1, (float) -arg2);
|
local244.glTranslatef((float) -arg0, (float) -arg1, (float) -arg2);
|
||||||
if (local240) {
|
if (local240) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
import org.openrs2.deob.annotation.Pc;
|
import org.openrs2.deob.annotation.Pc;
|
||||||
|
|
||||||
|
|
@ -14,17 +14,17 @@ public final class Static275 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!wg", name = "f", descriptor = "()V")
|
@OriginalMember(owner = "client!wg", name = "f", descriptor = "()V")
|
||||||
public static void method4608() {
|
public static void method4608() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glClientActiveTexture(method4607());
|
local1.glClientActiveTexture(method4607());
|
||||||
local1.glDisableClientState(GL.GL_TEXTURE_COORD_ARRAY);
|
local1.glDisableClientState(GL2.GL_TEXTURE_COORD_ARRAY);
|
||||||
local1.glClientActiveTexture(GL.GL_TEXTURE0);
|
local1.glClientActiveTexture(GL2.GL_TEXTURE0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!wg", name = "g", descriptor = "()V")
|
@OriginalMember(owner = "client!wg", name = "g", descriptor = "()V")
|
||||||
public static void method4609() {
|
public static void method4609() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glClientActiveTexture(method4607());
|
local1.glClientActiveTexture(method4607());
|
||||||
local1.glEnableClientState(GL.GL_TEXTURE_COORD_ARRAY);
|
local1.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);
|
||||||
local1.glClientActiveTexture(GL.GL_TEXTURE0);
|
local1.glClientActiveTexture(GL2.GL_TEXTURE0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.IntBuffer;
|
import java.nio.IntBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
import org.openrs2.deob.annotation.Pc;
|
import org.openrs2.deob.annotation.Pc;
|
||||||
|
|
@ -32,8 +32,8 @@ public final class Static46 {
|
||||||
@Pc(5) float local5 = (float) arg0 + 0.3F;
|
@Pc(5) float local5 = (float) arg0 + 0.3F;
|
||||||
@Pc(10) float local10 = local5 + (float) arg2;
|
@Pc(10) float local10 = local5 + (float) arg2;
|
||||||
@Pc(18) float local18 = (float) Static239.anInt5329 - (float) arg1 - 0.3F;
|
@Pc(18) float local18 = (float) Static239.anInt5329 - (float) arg1 - 0.3F;
|
||||||
@Pc(20) GL local20 = Static239.aGL1;
|
@Pc(20) GL2 local20 = Static239.gl;
|
||||||
local20.glBegin(GL.GL_LINES);
|
local20.glBegin(GL2.GL_LINES);
|
||||||
local20.glColor3ub((byte) (arg3 >> 16), (byte) (arg3 >> 8), (byte) arg3);
|
local20.glColor3ub((byte) (arg3 >> 16), (byte) (arg3 >> 8), (byte) arg3);
|
||||||
local20.glVertex2f(local5, local18);
|
local20.glVertex2f(local5, local18);
|
||||||
local20.glVertex2f(local10, local18);
|
local20.glVertex2f(local10, local18);
|
||||||
|
|
@ -46,8 +46,8 @@ public final class Static46 {
|
||||||
@Pc(5) float local5 = (float) arg0 + 0.3F;
|
@Pc(5) float local5 = (float) arg0 + 0.3F;
|
||||||
@Pc(13) float local13 = (float) Static239.anInt5329 - (float) arg1 - 0.3F;
|
@Pc(13) float local13 = (float) Static239.anInt5329 - (float) arg1 - 0.3F;
|
||||||
@Pc(18) float local18 = local13 - (float) arg2;
|
@Pc(18) float local18 = local13 - (float) arg2;
|
||||||
@Pc(20) GL local20 = Static239.aGL1;
|
@Pc(20) GL2 local20 = Static239.gl;
|
||||||
local20.glBegin(GL.GL_LINES);
|
local20.glBegin(GL2.GL_LINES);
|
||||||
local20.glColor3ub((byte) (arg3 >> 16), (byte) (arg3 >> 8), (byte) arg3);
|
local20.glColor3ub((byte) (arg3 >> 16), (byte) (arg3 >> 8), (byte) arg3);
|
||||||
local20.glVertex2f(local5, local13);
|
local20.glVertex2f(local5, local13);
|
||||||
local20.glVertex2f(local5, local18);
|
local20.glVertex2f(local5, local18);
|
||||||
|
|
@ -60,22 +60,22 @@ public final class Static46 {
|
||||||
anInt1438 = 0;
|
anInt1438 = 0;
|
||||||
anInt1440 = Static239.anInt5332;
|
anInt1440 = Static239.anInt5332;
|
||||||
anInt1441 = Static239.anInt5329;
|
anInt1441 = Static239.anInt5329;
|
||||||
@Pc(9) GL local9 = Static239.aGL1;
|
@Pc(9) GL2 local9 = Static239.gl;
|
||||||
local9.glDisable(GL.GL_SCISSOR_TEST);
|
local9.glDisable(GL2.GL_SCISSOR_TEST);
|
||||||
method1173();
|
method1173();
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!dj", name = "a", descriptor = "([IIIII)V")
|
@OriginalMember(owner = "client!dj", name = "a", descriptor = "([IIIII)V")
|
||||||
public static void method1178(@OriginalArg(0) int[] arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4) {
|
public static void method1178(@OriginalArg(0) int[] arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4) {
|
||||||
Static239.method4162();
|
Static239.method4162();
|
||||||
@Pc(2) GL local2 = Static239.aGL1;
|
@Pc(2) GL2 local2 = Static239.gl;
|
||||||
local2.glRasterPos2i(arg1, Static239.anInt5329 - arg2);
|
local2.glRasterPos2i(arg1, Static239.anInt5329 - arg2);
|
||||||
local2.glPixelZoom(1.0F, -1.0F);
|
local2.glPixelZoom(1.0F, -1.0F);
|
||||||
local2.glDisable(GL.GL_BLEND);
|
local2.glDisable(GL2.GL_BLEND);
|
||||||
local2.glDisable(GL.GL_ALPHA_TEST);
|
local2.glDisable(GL2.GL_ALPHA_TEST);
|
||||||
local2.glDrawPixels(arg3, arg4, GL.GL_BGRA, Static239.aBoolean263 ? GL.GL_UNSIGNED_INT_8_8_8_8_REV : GL.GL_UNSIGNED_BYTE, IntBuffer.wrap(arg0));
|
local2.glDrawPixels(arg3, arg4, GL2.GL_BGRA, Static239.aBoolean263 ? GL2.GL_UNSIGNED_INT_8_8_8_8_REV : GL2.GL_UNSIGNED_BYTE, IntBuffer.wrap(arg0));
|
||||||
local2.glEnable(GL.GL_ALPHA_TEST);
|
local2.glEnable(GL2.GL_ALPHA_TEST);
|
||||||
local2.glEnable(GL.GL_BLEND);
|
local2.glEnable(GL2.GL_BLEND);
|
||||||
local2.glPixelZoom(1.0F, 1.0F);
|
local2.glPixelZoom(1.0F, 1.0F);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -86,8 +86,8 @@ public final class Static46 {
|
||||||
@Pc(12) float local12 = local5 + (float) (arg2 - 1);
|
@Pc(12) float local12 = local5 + (float) (arg2 - 1);
|
||||||
@Pc(20) float local20 = (float) Static239.anInt5329 - (float) arg1 - 0.3F;
|
@Pc(20) float local20 = (float) Static239.anInt5329 - (float) arg1 - 0.3F;
|
||||||
@Pc(27) float local27 = local20 - (float) (arg3 - 1);
|
@Pc(27) float local27 = local20 - (float) (arg3 - 1);
|
||||||
@Pc(29) GL local29 = Static239.aGL1;
|
@Pc(29) GL2 local29 = Static239.gl;
|
||||||
local29.glBegin(GL.GL_LINE_LOOP);
|
local29.glBegin(GL2.GL_LINE_LOOP);
|
||||||
local29.glColor3ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4);
|
local29.glColor3ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4);
|
||||||
local29.glVertex2f(local5, local20);
|
local29.glVertex2f(local5, local20);
|
||||||
local29.glVertex2f(local5, local27);
|
local29.glVertex2f(local5, local27);
|
||||||
|
|
@ -103,8 +103,8 @@ public final class Static46 {
|
||||||
@Pc(12) float local12 = local5 + (float) (arg2 - 1);
|
@Pc(12) float local12 = local5 + (float) (arg2 - 1);
|
||||||
@Pc(20) float local20 = (float) Static239.anInt5329 - (float) arg1 - 0.3F;
|
@Pc(20) float local20 = (float) Static239.anInt5329 - (float) arg1 - 0.3F;
|
||||||
@Pc(27) float local27 = local20 - (float) (arg3 - 1);
|
@Pc(27) float local27 = local20 - (float) (arg3 - 1);
|
||||||
@Pc(29) GL local29 = Static239.aGL1;
|
@Pc(29) GL2 local29 = Static239.gl;
|
||||||
local29.glBegin(GL.GL_LINE_LOOP);
|
local29.glBegin(GL2.GL_LINE_LOOP);
|
||||||
local29.glColor4ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4, arg5 > 255 ? -1 : (byte) arg5);
|
local29.glColor4ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4, arg5 > 255 ? -1 : (byte) arg5);
|
||||||
local29.glVertex2f(local5, local20);
|
local29.glVertex2f(local5, local20);
|
||||||
local29.glVertex2f(local5, local27);
|
local29.glVertex2f(local5, local27);
|
||||||
|
|
@ -146,9 +146,9 @@ public final class Static46 {
|
||||||
@Pc(115) int local115 = arg1 + local7 - local81;
|
@Pc(115) int local115 = arg1 + local7 - local81;
|
||||||
@Pc(121) int local121 = arg1 + local7 + local73;
|
@Pc(121) int local121 = arg1 + local7 + local73;
|
||||||
Static239.method4162();
|
Static239.method4162();
|
||||||
@Pc(124) GL local124 = Static239.aGL1;
|
@Pc(124) GL2 local124 = Static239.gl;
|
||||||
local124.glColor3ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4);
|
local124.glColor3ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4);
|
||||||
local124.glBegin(GL.GL_TRIANGLE_FAN);
|
local124.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
if (local43 <= local37) {
|
if (local43 <= local37) {
|
||||||
local124.glVertex2f((float) local101, (float) (Static239.anInt5329 - local121));
|
local124.glVertex2f((float) local101, (float) (Static239.anInt5329 - local121));
|
||||||
local124.glVertex2f((float) local95, (float) (Static239.anInt5329 - local115));
|
local124.glVertex2f((float) local95, (float) (Static239.anInt5329 - local115));
|
||||||
|
|
@ -170,8 +170,8 @@ public final class Static46 {
|
||||||
@Pc(8) float local8 = local3 + (float) arg2;
|
@Pc(8) float local8 = local3 + (float) arg2;
|
||||||
@Pc(13) float local13 = (float) (Static239.anInt5329 - arg1);
|
@Pc(13) float local13 = (float) (Static239.anInt5329 - arg1);
|
||||||
@Pc(18) float local18 = local13 - (float) arg3;
|
@Pc(18) float local18 = local13 - (float) arg3;
|
||||||
@Pc(20) GL local20 = Static239.aGL1;
|
@Pc(20) GL2 local20 = Static239.gl;
|
||||||
local20.glBegin(GL.GL_TRIANGLE_FAN);
|
local20.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local20.glColor4ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4, arg5 > 255 ? -1 : (byte) arg5);
|
local20.glColor4ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4, arg5 > 255 ? -1 : (byte) arg5);
|
||||||
local20.glVertex2f(local3, local13);
|
local20.glVertex2f(local3, local13);
|
||||||
local20.glVertex2f(local3, local18);
|
local20.glVertex2f(local3, local18);
|
||||||
|
|
@ -194,8 +194,8 @@ public final class Static46 {
|
||||||
if (anInt1441 > arg3) {
|
if (anInt1441 > arg3) {
|
||||||
anInt1441 = arg3;
|
anInt1441 = arg3;
|
||||||
}
|
}
|
||||||
@Pc(21) GL local21 = Static239.aGL1;
|
@Pc(21) GL2 local21 = Static239.gl;
|
||||||
local21.glEnable(GL.GL_SCISSOR_TEST);
|
local21.glEnable(GL2.GL_SCISSOR_TEST);
|
||||||
if (anInt1439 <= anInt1440 && anInt1438 <= anInt1441) {
|
if (anInt1439 <= anInt1440 && anInt1438 <= anInt1441) {
|
||||||
local21.glScissor(anInt1439, Static239.anInt5329 - anInt1441, anInt1440 - anInt1439, anInt1441 - anInt1438);
|
local21.glScissor(anInt1439, Static239.anInt5329 - anInt1441, anInt1440 - anInt1439, anInt1441 - anInt1438);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -206,7 +206,7 @@ public final class Static46 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!dj", name = "d", descriptor = "()V")
|
@OriginalMember(owner = "client!dj", name = "d", descriptor = "()V")
|
||||||
public static void method1184() {
|
public static void method1184() {
|
||||||
Static239.aGL1.glClear(GL.GL_DEPTH_BUFFER_BIT | GL.GL_COLOR_BUFFER_BIT);
|
Static239.gl.glClear(GL2.GL_DEPTH_BUFFER_BIT | GL2.GL_COLOR_BUFFER_BIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!dj", name = "b", descriptor = "(IIIII)V")
|
@OriginalMember(owner = "client!dj", name = "b", descriptor = "(IIIII)V")
|
||||||
|
|
@ -216,8 +216,8 @@ public final class Static46 {
|
||||||
@Pc(10) float local10 = (float) arg2 + 0.3F;
|
@Pc(10) float local10 = (float) arg2 + 0.3F;
|
||||||
@Pc(18) float local18 = (float) Static239.anInt5329 - (float) arg1 - 0.3F;
|
@Pc(18) float local18 = (float) Static239.anInt5329 - (float) arg1 - 0.3F;
|
||||||
@Pc(26) float local26 = (float) Static239.anInt5329 - (float) arg3 - 0.3F;
|
@Pc(26) float local26 = (float) Static239.anInt5329 - (float) arg3 - 0.3F;
|
||||||
@Pc(28) GL local28 = Static239.aGL1;
|
@Pc(28) GL2 local28 = Static239.gl;
|
||||||
local28.glBegin(GL.GL_LINE_LOOP);
|
local28.glBegin(GL2.GL_LINE_LOOP);
|
||||||
local28.glColor3ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4);
|
local28.glColor3ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4);
|
||||||
local28.glVertex2f(local5, local18);
|
local28.glVertex2f(local5, local18);
|
||||||
local28.glVertex2f(local10, local26);
|
local28.glVertex2f(local10, local26);
|
||||||
|
|
@ -231,8 +231,8 @@ public final class Static46 {
|
||||||
@Pc(8) float local8 = local3 + (float) arg2;
|
@Pc(8) float local8 = local3 + (float) arg2;
|
||||||
@Pc(13) float local13 = (float) (Static239.anInt5329 - arg1);
|
@Pc(13) float local13 = (float) (Static239.anInt5329 - arg1);
|
||||||
@Pc(18) float local18 = local13 - (float) arg3;
|
@Pc(18) float local18 = local13 - (float) arg3;
|
||||||
@Pc(20) GL local20 = Static239.aGL1;
|
@Pc(20) GL2 local20 = Static239.gl;
|
||||||
local20.glBegin(GL.GL_TRIANGLE_FAN);
|
local20.glBegin(GL2.GL_TRIANGLE_FAN);
|
||||||
local20.glColor3ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4);
|
local20.glColor3ub((byte) (arg4 >> 16), (byte) (arg4 >> 8), (byte) arg4);
|
||||||
local20.glVertex2f(local3, local13);
|
local20.glVertex2f(local3, local13);
|
||||||
local20.glVertex2f(local3, local18);
|
local20.glVertex2f(local3, local18);
|
||||||
|
|
@ -259,8 +259,8 @@ public final class Static46 {
|
||||||
anInt1438 = arg1;
|
anInt1438 = arg1;
|
||||||
anInt1440 = arg2;
|
anInt1440 = arg2;
|
||||||
anInt1441 = arg3;
|
anInt1441 = arg3;
|
||||||
@Pc(27) GL local27 = Static239.aGL1;
|
@Pc(27) GL2 local27 = Static239.gl;
|
||||||
local27.glEnable(GL.GL_SCISSOR_TEST);
|
local27.glEnable(GL2.GL_SCISSOR_TEST);
|
||||||
if (anInt1439 <= anInt1440 && anInt1438 <= anInt1441) {
|
if (anInt1439 <= anInt1440 && anInt1438 <= anInt1441) {
|
||||||
local27.glScissor(anInt1439, Static239.anInt5329 - anInt1441, anInt1440 - anInt1439, anInt1441 - anInt1438);
|
local27.glScissor(anInt1439, Static239.anInt5329 - anInt1441, anInt1440 - anInt1439, anInt1441 - anInt1438);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
import org.openrs2.deob.annotation.Pc;
|
import org.openrs2.deob.annotation.Pc;
|
||||||
|
|
@ -76,13 +76,13 @@ public final class Static63 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!fa", name = "c", descriptor = "()V")
|
@OriginalMember(owner = "client!fa", name = "c", descriptor = "()V")
|
||||||
public static synchronized void method1490() {
|
public static synchronized void method1490() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
@Pc(3) int local3 = 0;
|
@Pc(3) int local3 = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
@Pc(8) IntNode local8 = (IntNode) aClass69_48.method2287();
|
@Pc(8) IntNode local8 = (IntNode) aClass69_48.method2287();
|
||||||
if (local8 == null) {
|
if (local8 == null) {
|
||||||
if (local3 > 0) {
|
if (local3 > 0) {
|
||||||
local1.glDeleteBuffersARB(local3, anIntArray151, 0);
|
local1.glDeleteBuffers(local3, anIntArray151, 0);
|
||||||
local3 = 0;
|
local3 = 0;
|
||||||
}
|
}
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
@ -126,7 +126,7 @@ public final class Static63 {
|
||||||
anIntArray151[local3++] = (int) local8.aLong192;
|
anIntArray151[local3++] = (int) local8.aLong192;
|
||||||
anInt1945 -= local8.anInt3141;
|
anInt1945 -= local8.anInt3141;
|
||||||
if (local3 == 1000) {
|
if (local3 == 1000) {
|
||||||
local1.glDeleteBuffersARB(local3, anIntArray151, 0);
|
local1.glDeleteBuffers(local3, anIntArray151, 0);
|
||||||
local3 = 0;
|
local3 = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.FloatBuffer;
|
import java.nio.FloatBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
import org.openrs2.deob.annotation.Pc;
|
import org.openrs2.deob.annotation.Pc;
|
||||||
|
|
@ -11,18 +11,18 @@ public final class Static76 {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!ga", name = "a", descriptor = "()V")
|
@OriginalMember(owner = "client!ga", name = "a", descriptor = "()V")
|
||||||
public static void method1642() {
|
public static void method1642() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
if (local1.isExtensionAvailable("GL_ARB_point_parameters")) {
|
if (local1.isExtensionAvailable("GL_ARB_point_parameters")) {
|
||||||
@Pc(20) float[] local20 = new float[] { 1.0F, 0.0F, 5.0E-4F };
|
@Pc(20) float[] local20 = new float[] { 1.0F, 0.0F, 5.0E-4F };
|
||||||
local1.glPointParameterfvARB(GL.GL_POINT_DISTANCE_ATTENUATION, local20, 0);
|
local1.glPointParameterfv(GL2.GL_POINT_DISTANCE_ATTENUATION, local20, 0);
|
||||||
@Pc(28) FloatBuffer local28 = FloatBuffer.allocate(1);
|
@Pc(28) FloatBuffer local28 = FloatBuffer.allocate(1);
|
||||||
local1.glGetFloatv(GL.GL_POINT_SIZE_MAX, local28);
|
local1.glGetFloatv(GL2.GL_POINT_SIZE_MAX, local28);
|
||||||
@Pc(36) float local36 = local28.get(0);
|
@Pc(36) float local36 = local28.get(0);
|
||||||
if (local36 > 1024.0F) {
|
if (local36 > 1024.0F) {
|
||||||
local36 = 1024.0F;
|
local36 = 1024.0F;
|
||||||
}
|
}
|
||||||
local1.glPointParameterfARB(GL.GL_POINT_SIZE_MIN, 1.0F);
|
local1.glPointParameterf(GL2.GL_POINT_SIZE_MIN, 1.0F);
|
||||||
local1.glPointParameterfARB(GL.GL_POINT_SIZE_MAX, local36);
|
local1.glPointParameterf(GL2.GL_POINT_SIZE_MAX, local36);
|
||||||
}
|
}
|
||||||
if (local1.isExtensionAvailable("GL_ARB_point_sprite")) {
|
if (local1.isExtensionAvailable("GL_ARB_point_sprite")) {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -26,13 +26,13 @@ public final class UnderwaterMaterialRenderer implements MaterialRenderer {
|
||||||
while (local22 < 8) {
|
while (local22 < 8) {
|
||||||
local20[local22++] = (byte) (local22 * 159 / 8 + 96);
|
local20[local22++] = (byte) (local22 * 159 / 8 + 96);
|
||||||
}
|
}
|
||||||
@Pc(40) GL local40 = Static239.aGL1;
|
@Pc(40) GL2 local40 = Static239.gl;
|
||||||
local40.glGenTextures(1, local17, 0);
|
local40.glGenTextures(1, local17, 0);
|
||||||
local40.glBindTexture(GL.GL_TEXTURE_1D, local17[0]);
|
local40.glBindTexture(GL2.GL_TEXTURE_1D, local17[0]);
|
||||||
local40.glTexImage1D(GL.GL_TEXTURE_1D, 0, GL.GL_ALPHA, 8, 0, GL.GL_ALPHA, GL.GL_UNSIGNED_BYTE, ByteBuffer.wrap(local20));
|
local40.glTexImage1D(GL2.GL_TEXTURE_1D, 0, GL2.GL_ALPHA, 8, 0, GL2.GL_ALPHA, GL2.GL_UNSIGNED_BYTE, ByteBuffer.wrap(local20));
|
||||||
local40.glTexParameteri(GL.GL_TEXTURE_1D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local40.glTexParameteri(GL2.GL_TEXTURE_1D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local40.glTexParameteri(GL.GL_TEXTURE_1D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local40.glTexParameteri(GL2.GL_TEXTURE_1D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
local40.glTexParameteri(GL.GL_TEXTURE_1D, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE);
|
local40.glTexParameteri(GL2.GL_TEXTURE_1D, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);
|
||||||
this.anInt5805 = local17[0];
|
this.anInt5805 = local17[0];
|
||||||
Static275.aBoolean308 = Static239.anInt5322 > 2 && Static239.aBoolean267;
|
Static275.aBoolean308 = Static239.anInt5322 > 2 && Static239.aBoolean267;
|
||||||
this.method4606();
|
this.method4606();
|
||||||
|
|
@ -41,71 +41,71 @@ public final class UnderwaterMaterialRenderer implements MaterialRenderer {
|
||||||
|
|
||||||
@OriginalMember(owner = "client!wg", name = "d", descriptor = "()V")
|
@OriginalMember(owner = "client!wg", name = "d", descriptor = "()V")
|
||||||
private void method4606() {
|
private void method4606() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
this.anInt5806 = local1.glGenLists(2);
|
this.anInt5806 = local1.glGenLists(2);
|
||||||
local1.glNewList(this.anInt5806, GL.GL_COMPILE);
|
local1.glNewList(this.anInt5806, GL2.GL_COMPILE);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE1);
|
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
if (Static275.aBoolean308) {
|
if (Static275.aBoolean308) {
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_3D, Static151.anInt3587);
|
local1.glBindTexture(GL2.GL_TEXTURE_3D, Static151.anInt3587);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_ADD);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_ADD);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_OPERAND0_RGB, GL.GL_SRC_COLOR);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_COLOR);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_REPLACE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_REPLACE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_PREVIOUS);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_PREVIOUS);
|
||||||
local1.glTexGeni(GL.GL_S, GL.GL_TEXTURE_GEN_MODE, GL.GL_EYE_LINEAR);
|
local1.glTexGeni(GL2.GL_S, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_EYE_LINEAR);
|
||||||
local1.glTexGeni(GL.GL_R, GL.GL_TEXTURE_GEN_MODE, GL.GL_EYE_LINEAR);
|
local1.glTexGeni(GL2.GL_R, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_EYE_LINEAR);
|
||||||
local1.glTexGeni(GL.GL_T, GL.GL_TEXTURE_GEN_MODE, GL.GL_EYE_LINEAR);
|
local1.glTexGeni(GL2.GL_T, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_EYE_LINEAR);
|
||||||
local1.glTexGeni(GL.GL_Q, GL.GL_TEXTURE_GEN_MODE, GL.GL_OBJECT_LINEAR);
|
local1.glTexGeni(GL2.GL_Q, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_OBJECT_LINEAR);
|
||||||
local1.glTexGenfv(GL.GL_Q, GL.GL_OBJECT_PLANE, new float[] { 0.0F, 0.0F, 0.0F, 1.0F }, 0);
|
local1.glTexGenfv(GL2.GL_Q, GL2.GL_OBJECT_PLANE, new float[] { 0.0F, 0.0F, 0.0F, 1.0F }, 0);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_S);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_T);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_T);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_R);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_R);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_Q);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_Q);
|
||||||
local1.glEnable(GL.GL_TEXTURE_3D);
|
local1.glEnable(GL2.GL_TEXTURE_3D);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE2);
|
local1.glActiveTexture(GL2.GL_TEXTURE2);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_COMBINE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_MODE, GL2.GL_COMBINE);
|
||||||
}
|
}
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_1D, this.anInt5805);
|
local1.glBindTexture(GL2.GL_TEXTURE_1D, this.anInt5805);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_INTERPOLATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_INTERPOLATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_CONSTANT);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_CONSTANT);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC2_RGB, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC2_RGB, GL2.GL_TEXTURE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_REPLACE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_REPLACE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_PREVIOUS);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_PREVIOUS);
|
||||||
local1.glTexGeni(GL.GL_S, GL.GL_TEXTURE_GEN_MODE, GL.GL_EYE_LINEAR);
|
local1.glTexGeni(GL2.GL_S, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_EYE_LINEAR);
|
||||||
local1.glEnable(GL.GL_TEXTURE_1D);
|
local1.glEnable(GL2.GL_TEXTURE_1D);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_S);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE0);
|
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
local1.glEndList();
|
local1.glEndList();
|
||||||
local1.glNewList(this.anInt5806 + 1, GL.GL_COMPILE);
|
local1.glNewList(this.anInt5806 + 1, GL2.GL_COMPILE);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE1);
|
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
if (Static275.aBoolean308) {
|
if (Static275.aBoolean308) {
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_OPERAND0_RGB, GL.GL_SRC_COLOR);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_COLOR);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_TEXTURE);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_S);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_T);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_T);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_R);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_R);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_Q);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_Q);
|
||||||
local1.glDisable(GL.GL_TEXTURE_3D);
|
local1.glDisable(GL2.GL_TEXTURE_3D);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE2);
|
local1.glActiveTexture(GL2.GL_TEXTURE2);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_MODE, GL2.GL_MODULATE);
|
||||||
}
|
}
|
||||||
local1.glTexEnvfv(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_COLOR, new float[] { 0.0F, 1.0F, 0.0F, 1.0F }, 0);
|
local1.glTexEnvfv(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_COLOR, new float[] { 0.0F, 1.0F, 0.0F, 1.0F }, 0);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_TEXTURE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC2_RGB, GL.GL_CONSTANT);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC2_RGB, GL2.GL_CONSTANT);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_TEXTURE);
|
||||||
local1.glDisable(GL.GL_TEXTURE_1D);
|
local1.glDisable(GL2.GL_TEXTURE_1D);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_S);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE0);
|
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
local1.glEndList();
|
local1.glEndList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!wg", name = "b", descriptor = "()V")
|
@OriginalMember(owner = "client!wg", name = "b", descriptor = "()V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4603() {
|
public final void method4603() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glCallList(this.anInt5806);
|
local1.glCallList(this.anInt5806);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -118,15 +118,15 @@ public final class UnderwaterMaterialRenderer implements MaterialRenderer {
|
||||||
@OriginalMember(owner = "client!wg", name = "a", descriptor = "()V")
|
@OriginalMember(owner = "client!wg", name = "a", descriptor = "()V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4602() {
|
public final void method4602() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glCallList(this.anInt5806 + 1);
|
local1.glCallList(this.anInt5806 + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!wg", name = "a", descriptor = "(I)V")
|
@OriginalMember(owner = "client!wg", name = "a", descriptor = "(I)V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4604(@OriginalArg(0) int arg0) {
|
public final void method4604(@OriginalArg(0) int arg0) {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE1);
|
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
if (Static275.aBoolean308 || arg0 >= 0) {
|
if (Static275.aBoolean308 || arg0 >= 0) {
|
||||||
local1.glPushMatrix();
|
local1.glPushMatrix();
|
||||||
local1.glLoadIdentity();
|
local1.glLoadIdentity();
|
||||||
|
|
@ -139,34 +139,34 @@ public final class UnderwaterMaterialRenderer implements MaterialRenderer {
|
||||||
this.aFloatArray29[1] = 9.0E-4F;
|
this.aFloatArray29[1] = 9.0E-4F;
|
||||||
this.aFloatArray29[2] = 0.0F;
|
this.aFloatArray29[2] = 0.0F;
|
||||||
this.aFloatArray29[3] = 0.0F;
|
this.aFloatArray29[3] = 0.0F;
|
||||||
local1.glTexGenfv(GL.GL_S, GL.GL_EYE_PLANE, this.aFloatArray29, 0);
|
local1.glTexGenfv(GL2.GL_S, GL2.GL_EYE_PLANE, this.aFloatArray29, 0);
|
||||||
this.aFloatArray29[0] = 0.0F;
|
this.aFloatArray29[0] = 0.0F;
|
||||||
this.aFloatArray29[1] = 9.0E-4F;
|
this.aFloatArray29[1] = 9.0E-4F;
|
||||||
this.aFloatArray29[2] = 0.001F;
|
this.aFloatArray29[2] = 0.001F;
|
||||||
this.aFloatArray29[3] = 0.0F;
|
this.aFloatArray29[3] = 0.0F;
|
||||||
local1.glTexGenfv(GL.GL_T, GL.GL_EYE_PLANE, this.aFloatArray29, 0);
|
local1.glTexGenfv(GL2.GL_T, GL2.GL_EYE_PLANE, this.aFloatArray29, 0);
|
||||||
this.aFloatArray29[0] = 0.0F;
|
this.aFloatArray29[0] = 0.0F;
|
||||||
this.aFloatArray29[1] = 0.0F;
|
this.aFloatArray29[1] = 0.0F;
|
||||||
this.aFloatArray29[2] = 0.0F;
|
this.aFloatArray29[2] = 0.0F;
|
||||||
this.aFloatArray29[3] = (float) Static239.anInt5323 * 0.005F;
|
this.aFloatArray29[3] = (float) Static239.anInt5323 * 0.005F;
|
||||||
local1.glTexGenfv(GL.GL_R, GL.GL_EYE_PLANE, this.aFloatArray29, 0);
|
local1.glTexGenfv(GL2.GL_R, GL2.GL_EYE_PLANE, this.aFloatArray29, 0);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE2);
|
local1.glActiveTexture(GL2.GL_TEXTURE2);
|
||||||
}
|
}
|
||||||
local1.glTexEnvfv(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_COLOR, Static123.method2422(), 0);
|
local1.glTexEnvfv(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_COLOR, Static123.method2422(), 0);
|
||||||
if (arg0 >= 0) {
|
if (arg0 >= 0) {
|
||||||
this.aFloatArray29[0] = 0.0F;
|
this.aFloatArray29[0] = 0.0F;
|
||||||
this.aFloatArray29[1] = 1.0F / (float) Static170.anInt3241;
|
this.aFloatArray29[1] = 1.0F / (float) Static170.anInt3241;
|
||||||
this.aFloatArray29[2] = 0.0F;
|
this.aFloatArray29[2] = 0.0F;
|
||||||
this.aFloatArray29[3] = (float) arg0 * 1.0F / (float) Static170.anInt3241;
|
this.aFloatArray29[3] = (float) arg0 * 1.0F / (float) Static170.anInt3241;
|
||||||
local1.glTexGenfv(GL.GL_S, GL.GL_EYE_PLANE, this.aFloatArray29, 0);
|
local1.glTexGenfv(GL2.GL_S, GL2.GL_EYE_PLANE, this.aFloatArray29, 0);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_S);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_S);
|
||||||
} else {
|
} else {
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_S);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_S);
|
||||||
}
|
}
|
||||||
local1.glPopMatrix();
|
local1.glPopMatrix();
|
||||||
} else {
|
} else {
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_S);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_S);
|
||||||
}
|
}
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE0);
|
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -29,76 +29,76 @@ public final class WaterMaterialRenderer implements MaterialRenderer {
|
||||||
@OriginalMember(owner = "client!pd", name = "d", descriptor = "()V")
|
@OriginalMember(owner = "client!pd", name = "d", descriptor = "()V")
|
||||||
private void method3435() {
|
private void method3435() {
|
||||||
@Pc(2) byte[] local2 = new byte[] { 0, -1 };
|
@Pc(2) byte[] local2 = new byte[] { 0, -1 };
|
||||||
@Pc(12) GL local12 = Static239.aGL1;
|
@Pc(12) GL2 local12 = Static239.gl;
|
||||||
@Pc(15) int[] local15 = new int[1];
|
@Pc(15) int[] local15 = new int[1];
|
||||||
local12.glGenTextures(1, local15, 0);
|
local12.glGenTextures(1, local15, 0);
|
||||||
local12.glBindTexture(GL.GL_TEXTURE_1D, local15[0]);
|
local12.glBindTexture(GL2.GL_TEXTURE_1D, local15[0]);
|
||||||
local12.glTexImage1D(GL.GL_TEXTURE_1D, 0, GL.GL_ALPHA, 2, 0, GL.GL_ALPHA, GL.GL_UNSIGNED_BYTE, ByteBuffer.wrap(local2));
|
local12.glTexImage1D(GL2.GL_TEXTURE_1D, 0, GL2.GL_ALPHA, 2, 0, GL2.GL_ALPHA, GL2.GL_UNSIGNED_BYTE, ByteBuffer.wrap(local2));
|
||||||
local12.glTexParameteri(GL.GL_TEXTURE_1D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
|
local12.glTexParameteri(GL2.GL_TEXTURE_1D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
|
||||||
local12.glTexParameteri(GL.GL_TEXTURE_1D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
|
local12.glTexParameteri(GL2.GL_TEXTURE_1D, GL2.GL_TEXTURE_MAG_FILTER, GL2.GL_LINEAR);
|
||||||
local12.glTexParameteri(GL.GL_TEXTURE_1D, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE);
|
local12.glTexParameteri(GL2.GL_TEXTURE_1D, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);
|
||||||
this.anInt4441 = local15[0];
|
this.anInt4441 = local15[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!pd", name = "f", descriptor = "()V")
|
@OriginalMember(owner = "client!pd", name = "f", descriptor = "()V")
|
||||||
private void method3437() {
|
private void method3437() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
this.anInt4440 = local1.glGenLists(2);
|
this.anInt4440 = local1.glGenLists(2);
|
||||||
local1.glNewList(this.anInt4440, GL.GL_COMPILE);
|
local1.glNewList(this.anInt4440, GL2.GL_COMPILE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_OPERAND0_RGB, GL.GL_SRC_COLOR);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_COLOR);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC1_RGB, GL.GL_CONSTANT);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC1_RGB, GL2.GL_CONSTANT);
|
||||||
local1.glTexEnvf(GL.GL_TEXTURE_ENV, GL.GL_RGB_SCALE, 2.0F);
|
local1.glTexEnvf(GL2.GL_TEXTURE_ENV, GL2.GL_RGB_SCALE, 2.0F);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC1_ALPHA, GL.GL_CONSTANT);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2GL3.GL_SRC1_ALPHA, GL2.GL_CONSTANT);
|
||||||
local1.glTexGeni(GL.GL_S, GL.GL_TEXTURE_GEN_MODE, GL.GL_OBJECT_LINEAR);
|
local1.glTexGeni(GL2.GL_S, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_OBJECT_LINEAR);
|
||||||
local1.glTexGeni(GL.GL_T, GL.GL_TEXTURE_GEN_MODE, GL.GL_OBJECT_LINEAR);
|
local1.glTexGeni(GL2.GL_T, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_OBJECT_LINEAR);
|
||||||
local1.glTexGenfv(GL.GL_S, GL.GL_OBJECT_PLANE, new float[] { 9.765625E-4F, 0.0F, 0.0F, 0.0F }, 0);
|
local1.glTexGenfv(GL2.GL_S, GL2.GL_OBJECT_PLANE, new float[] { 9.765625E-4F, 0.0F, 0.0F, 0.0F }, 0);
|
||||||
local1.glTexGenfv(GL.GL_T, GL.GL_OBJECT_PLANE, new float[] { 0.0F, 0.0F, 9.765625E-4F, 0.0F }, 0);
|
local1.glTexGenfv(GL2.GL_T, GL2.GL_OBJECT_PLANE, new float[] { 0.0F, 0.0F, 9.765625E-4F, 0.0F }, 0);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_S);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_T);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_T);
|
||||||
if (Static151.aBoolean176) {
|
if (Static151.aBoolean176) {
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_3D, Static151.anInt3587);
|
local1.glBindTexture(GL2.GL_TEXTURE_3D, Static151.anInt3587);
|
||||||
local1.glTexGeni(GL.GL_R, GL.GL_TEXTURE_GEN_MODE, GL.GL_OBJECT_LINEAR);
|
local1.glTexGeni(GL2.GL_R, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_OBJECT_LINEAR);
|
||||||
local1.glTexGeni(GL.GL_Q, GL.GL_TEXTURE_GEN_MODE, GL.GL_OBJECT_LINEAR);
|
local1.glTexGeni(GL2.GL_Q, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_OBJECT_LINEAR);
|
||||||
local1.glTexGenfv(GL.GL_Q, GL.GL_OBJECT_PLANE, new float[] { 0.0F, 0.0F, 0.0F, 1.0F }, 0);
|
local1.glTexGenfv(GL2.GL_Q, GL2.GL_OBJECT_PLANE, new float[] { 0.0F, 0.0F, 0.0F, 1.0F }, 0);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_R);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_R);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_Q);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_Q);
|
||||||
local1.glEnable(GL.GL_TEXTURE_3D);
|
local1.glEnable(GL2.GL_TEXTURE_3D);
|
||||||
}
|
}
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE1);
|
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local1.glEnable(GL.GL_TEXTURE_1D);
|
local1.glEnable(GL2.GL_TEXTURE_1D);
|
||||||
local1.glBindTexture(GL.GL_TEXTURE_1D, this.anInt4441);
|
local1.glBindTexture(GL2.GL_TEXTURE_1D, this.anInt4441);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_INTERPOLATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_INTERPOLATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_CONSTANT);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_CONSTANT);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC2_RGB, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC2_RGB, GL2.GL_TEXTURE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_INTERPOLATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_INTERPOLATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_CONSTANT);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_CONSTANT);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC2_ALPHA, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC2_ALPHA, GL2.GL_TEXTURE);
|
||||||
local1.glEnable(GL.GL_TEXTURE_GEN_S);
|
local1.glEnable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local1.glTexGeni(GL.GL_S, GL.GL_TEXTURE_GEN_MODE, GL.GL_EYE_LINEAR);
|
local1.glTexGeni(GL2.GL_S, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_EYE_LINEAR);
|
||||||
local1.glPushMatrix();
|
local1.glPushMatrix();
|
||||||
local1.glLoadIdentity();
|
local1.glLoadIdentity();
|
||||||
local1.glEndList();
|
local1.glEndList();
|
||||||
local1.glNewList(this.anInt4440 + 1, GL.GL_COMPILE);
|
local1.glNewList(this.anInt4440 + 1, GL2.GL_COMPILE);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE1);
|
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local1.glDisable(GL.GL_TEXTURE_1D);
|
local1.glDisable(GL2.GL_TEXTURE_1D);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_S);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_RGB, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_RGB, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_RGB, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_RGB, GL2.GL_TEXTURE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC2_RGB, GL.GL_CONSTANT);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC2_RGB, GL2.GL_CONSTANT);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_COMBINE_ALPHA, GL.GL_MODULATE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_COMBINE_ALPHA, GL2.GL_MODULATE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC0_ALPHA, GL.GL_TEXTURE);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC0_ALPHA, GL2.GL_TEXTURE);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC2_ALPHA, GL.GL_CONSTANT);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC2_ALPHA, GL2.GL_CONSTANT);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE0);
|
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_OPERAND0_RGB, GL.GL_SRC_COLOR);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_OPERAND0_RGB, GL2.GL_SRC_COLOR);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC1_RGB, GL.GL_PREVIOUS);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_SRC1_RGB, GL2.GL_PREVIOUS);
|
||||||
local1.glTexEnvf(GL.GL_TEXTURE_ENV, GL.GL_RGB_SCALE, 1.0F);
|
local1.glTexEnvf(GL2.GL_TEXTURE_ENV, GL2.GL_RGB_SCALE, 1.0F);
|
||||||
local1.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_SRC1_ALPHA, GL.GL_PREVIOUS);
|
local1.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2GL3.GL_SRC1_ALPHA, GL2.GL_PREVIOUS);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_S);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_T);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_T);
|
||||||
if (Static151.aBoolean176) {
|
if (Static151.aBoolean176) {
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_R);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_R);
|
||||||
local1.glDisable(GL.GL_TEXTURE_GEN_Q);
|
local1.glDisable(GL2.GL_TEXTURE_GEN_Q);
|
||||||
local1.glDisable(GL.GL_TEXTURE_3D);
|
local1.glDisable(GL2.GL_TEXTURE_3D);
|
||||||
}
|
}
|
||||||
local1.glEndList();
|
local1.glEndList();
|
||||||
}
|
}
|
||||||
|
|
@ -106,16 +106,16 @@ public final class WaterMaterialRenderer implements MaterialRenderer {
|
||||||
@OriginalMember(owner = "client!pd", name = "a", descriptor = "()V")
|
@OriginalMember(owner = "client!pd", name = "a", descriptor = "()V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4602() {
|
public final void method4602() {
|
||||||
Static239.aGL1.glCallList(this.anInt4440 + 1);
|
Static239.gl.glCallList(this.anInt4440 + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!pd", name = "a", descriptor = "(I)V")
|
@OriginalMember(owner = "client!pd", name = "a", descriptor = "(I)V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4604(@OriginalArg(0) int arg0) {
|
public final void method4604(@OriginalArg(0) int arg0) {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE1);
|
local1.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local1.glTexEnvfv(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_COLOR, Static257.aFloatArray2, 0);
|
local1.glTexEnvfv(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_COLOR, Static257.aFloatArray2, 0);
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE0);
|
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
if ((arg0 & 0x1) == 1) {
|
if ((arg0 & 0x1) == 1) {
|
||||||
if (!Static151.aBoolean176) {
|
if (!Static151.aBoolean176) {
|
||||||
Static239.method4177(Static151.anIntArray341[Static239.anInt5323 * 64 / 100 % 64]);
|
Static239.method4177(Static151.anIntArray341[Static239.anInt5323 * 64 / 100 % 64]);
|
||||||
|
|
@ -124,7 +124,7 @@ public final class WaterMaterialRenderer implements MaterialRenderer {
|
||||||
this.aFloatArray23[1] = 0.0F;
|
this.aFloatArray23[1] = 0.0F;
|
||||||
this.aFloatArray23[2] = 0.0F;
|
this.aFloatArray23[2] = 0.0F;
|
||||||
this.aFloatArray23[3] = (float) Static239.anInt5323 * 0.005F;
|
this.aFloatArray23[3] = (float) Static239.anInt5323 * 0.005F;
|
||||||
local1.glTexGenfv(GL.GL_R, GL.GL_OBJECT_PLANE, this.aFloatArray23, 0);
|
local1.glTexGenfv(GL2.GL_R, GL2.GL_OBJECT_PLANE, this.aFloatArray23, 0);
|
||||||
this.anInt4442 = Static239.anInt5323;
|
this.anInt4442 = Static239.anInt5323;
|
||||||
}
|
}
|
||||||
} else if (Static151.aBoolean176) {
|
} else if (Static151.aBoolean176) {
|
||||||
|
|
@ -132,7 +132,7 @@ public final class WaterMaterialRenderer implements MaterialRenderer {
|
||||||
this.aFloatArray23[1] = 0.0F;
|
this.aFloatArray23[1] = 0.0F;
|
||||||
this.aFloatArray23[2] = 0.0F;
|
this.aFloatArray23[2] = 0.0F;
|
||||||
this.aFloatArray23[3] = 0.0F;
|
this.aFloatArray23[3] = 0.0F;
|
||||||
local1.glTexGenfv(GL.GL_R, GL.GL_OBJECT_PLANE, this.aFloatArray23, 0);
|
local1.glTexGenfv(GL2.GL_R, GL2.GL_OBJECT_PLANE, this.aFloatArray23, 0);
|
||||||
} else {
|
} else {
|
||||||
Static239.method4177(Static151.anIntArray341[0]);
|
Static239.method4177(Static151.anIntArray341[0]);
|
||||||
}
|
}
|
||||||
|
|
@ -141,7 +141,7 @@ public final class WaterMaterialRenderer implements MaterialRenderer {
|
||||||
@OriginalMember(owner = "client!pd", name = "b", descriptor = "()V")
|
@OriginalMember(owner = "client!pd", name = "b", descriptor = "()V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4603() {
|
public final void method4603() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
Static239.method4183(2);
|
Static239.method4183(2);
|
||||||
Static239.method4174(2);
|
Static239.method4174(2);
|
||||||
Static239.method4150();
|
Static239.method4150();
|
||||||
|
|
@ -155,10 +155,10 @@ public final class WaterMaterialRenderer implements MaterialRenderer {
|
||||||
this.aFloatArray23[1] = 0.0F;
|
this.aFloatArray23[1] = 0.0F;
|
||||||
this.aFloatArray23[2] = 1.0F / (local12 - 3328.0F);
|
this.aFloatArray23[2] = 1.0F / (local12 - 3328.0F);
|
||||||
this.aFloatArray23[3] = local12 / (local12 - 3328.0F);
|
this.aFloatArray23[3] = local12 / (local12 - 3328.0F);
|
||||||
local1.glTexGenfv(GL.GL_S, GL.GL_EYE_PLANE, this.aFloatArray23, 0);
|
local1.glTexGenfv(GL2.GL_S, GL2.GL_EYE_PLANE, this.aFloatArray23, 0);
|
||||||
local1.glPopMatrix();
|
local1.glPopMatrix();
|
||||||
local1.glActiveTexture(GL.GL_TEXTURE0);
|
local1.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
local1.glTexEnvfv(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_COLOR, Static188.aFloatArray22, 0);
|
local1.glTexEnvfv(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_COLOR, Static188.aFloatArray22, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!pd", name = "c", descriptor = "()I")
|
@OriginalMember(owner = "client!pd", name = "c", descriptor = "()I")
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import javax.media.opengl.GL;
|
import com.jogamp.opengl.*;
|
||||||
import org.openrs2.deob.annotation.OriginalArg;
|
import org.openrs2.deob.annotation.OriginalArg;
|
||||||
import org.openrs2.deob.annotation.OriginalClass;
|
import org.openrs2.deob.annotation.OriginalClass;
|
||||||
import org.openrs2.deob.annotation.OriginalMember;
|
import org.openrs2.deob.annotation.OriginalMember;
|
||||||
|
|
@ -27,7 +27,7 @@ public final class WaterfallMaterialRenderer implements MaterialRenderer {
|
||||||
@OriginalMember(owner = "client!ob", name = "a", descriptor = "(I)V")
|
@OriginalMember(owner = "client!ob", name = "a", descriptor = "(I)V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4604(@OriginalArg(0) int arg0) {
|
public final void method4604(@OriginalArg(0) int arg0) {
|
||||||
@Pc(7) GL local7 = Static239.aGL1;
|
@Pc(7) GL2 local7 = Static239.gl;
|
||||||
@Pc(18) float local18 = (float) ((arg0 >> 3 & 0x3) + 1) * 0.01F;
|
@Pc(18) float local18 = (float) ((arg0 >> 3 & 0x3) + 1) * 0.01F;
|
||||||
@Pc(27) float local27 = -0.01F * (float) ((arg0 & 0x3) + 1);
|
@Pc(27) float local27 = -0.01F * (float) ((arg0 & 0x3) + 1);
|
||||||
@Pc(36) float local36 = (arg0 & 0x40) == 0 ? 4.8828125E-4F : 9.765625E-4F;
|
@Pc(36) float local36 = (arg0 & 0x40) == 0 ? 4.8828125E-4F : 9.765625E-4F;
|
||||||
|
|
@ -43,79 +43,79 @@ public final class WaterfallMaterialRenderer implements MaterialRenderer {
|
||||||
this.aFloatArray21[3] = 0.0F;
|
this.aFloatArray21[3] = 0.0F;
|
||||||
this.aFloatArray21[0] = 0.0F;
|
this.aFloatArray21[0] = 0.0F;
|
||||||
}
|
}
|
||||||
local7.glActiveTexture(GL.GL_TEXTURE1);
|
local7.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
local7.glMatrixMode(GL.GL_MODELVIEW);
|
local7.glMatrixMode(GL2.GL_MODELVIEW);
|
||||||
local7.glPushMatrix();
|
local7.glPushMatrix();
|
||||||
local7.glLoadIdentity();
|
local7.glLoadIdentity();
|
||||||
local7.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
|
local7.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
|
||||||
local7.glRotatef((float) Static254.anInt5559 * 360.0F / 2048.0F, 1.0F, 0.0F, 0.0F);
|
local7.glRotatef((float) Static254.anInt5559 * 360.0F / 2048.0F, 1.0F, 0.0F, 0.0F);
|
||||||
local7.glRotatef((float) Static59.anInt1815 * 360.0F / 2048.0F, 0.0F, 1.0F, 0.0F);
|
local7.glRotatef((float) Static59.anInt1815 * 360.0F / 2048.0F, 0.0F, 1.0F, 0.0F);
|
||||||
local7.glTranslatef((float) -Static12.anInt406, (float) -Static199.anInt4675, (float) -Static230.anInt5158);
|
local7.glTranslatef((float) -Static12.anInt406, (float) -Static199.anInt4675, (float) -Static230.anInt5158);
|
||||||
local7.glTexGenfv(GL.GL_S, GL.GL_EYE_PLANE, this.aFloatArray21, 0);
|
local7.glTexGenfv(GL2.GL_S, GL2.GL_EYE_PLANE, this.aFloatArray21, 0);
|
||||||
this.aFloatArray21[3] = local27 * (float) Static239.anInt5323;
|
this.aFloatArray21[3] = local27 * (float) Static239.anInt5323;
|
||||||
this.aFloatArray21[0] = 0.0F;
|
this.aFloatArray21[0] = 0.0F;
|
||||||
this.aFloatArray21[2] = 0.0F;
|
this.aFloatArray21[2] = 0.0F;
|
||||||
this.aFloatArray21[1] = local36;
|
this.aFloatArray21[1] = local36;
|
||||||
local7.glTexGenfv(GL.GL_T, GL.GL_EYE_PLANE, this.aFloatArray21, 0);
|
local7.glTexGenfv(GL2.GL_T, GL2.GL_EYE_PLANE, this.aFloatArray21, 0);
|
||||||
local7.glPopMatrix();
|
local7.glPopMatrix();
|
||||||
if (Static151.aBoolean176) {
|
if (Static151.aBoolean176) {
|
||||||
this.aFloatArray21[3] = (float) Static239.anInt5323 * local18;
|
this.aFloatArray21[3] = (float) Static239.anInt5323 * local18;
|
||||||
this.aFloatArray21[1] = 0.0F;
|
this.aFloatArray21[1] = 0.0F;
|
||||||
this.aFloatArray21[0] = 0.0F;
|
this.aFloatArray21[0] = 0.0F;
|
||||||
this.aFloatArray21[2] = 0.0F;
|
this.aFloatArray21[2] = 0.0F;
|
||||||
local7.glTexGenfv(GL.GL_R, GL.GL_OBJECT_PLANE, this.aFloatArray21, 0);
|
local7.glTexGenfv(GL2.GL_R, GL2.GL_OBJECT_PLANE, this.aFloatArray21, 0);
|
||||||
} else {
|
} else {
|
||||||
@Pc(189) int local189 = (int) ((float) Static239.anInt5323 * local18 * 64.0F);
|
@Pc(189) int local189 = (int) ((float) Static239.anInt5323 * local18 * 64.0F);
|
||||||
local7.glBindTexture(GL.GL_TEXTURE_2D, Static151.anIntArray340[local189 % 64]);
|
local7.glBindTexture(GL2.GL_TEXTURE_2D, Static151.anIntArray340[local189 % 64]);
|
||||||
}
|
}
|
||||||
local7.glActiveTexture(GL.GL_TEXTURE0);
|
local7.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!ob", name = "a", descriptor = "()V")
|
@OriginalMember(owner = "client!ob", name = "a", descriptor = "()V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4602() {
|
public final void method4602() {
|
||||||
@Pc(1) GL local1 = Static239.aGL1;
|
@Pc(1) GL2 local1 = Static239.gl;
|
||||||
local1.glCallList(this.anInt4236 + 1);
|
local1.glCallList(this.anInt4236 + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!ob", name = "b", descriptor = "()V")
|
@OriginalMember(owner = "client!ob", name = "b", descriptor = "()V")
|
||||||
@Override
|
@Override
|
||||||
public final void method4603() {
|
public final void method4603() {
|
||||||
@Pc(5) GL local5 = Static239.aGL1;
|
@Pc(5) GL2 local5 = Static239.gl;
|
||||||
local5.glCallList(this.anInt4236);
|
local5.glCallList(this.anInt4236);
|
||||||
}
|
}
|
||||||
|
|
||||||
@OriginalMember(owner = "client!ob", name = "b", descriptor = "(I)V")
|
@OriginalMember(owner = "client!ob", name = "b", descriptor = "(I)V")
|
||||||
private void method3307() {
|
private void method3307() {
|
||||||
@Pc(3) GL local3 = Static239.aGL1;
|
@Pc(3) GL2 local3 = Static239.gl;
|
||||||
this.anInt4236 = local3.glGenLists(2);
|
this.anInt4236 = local3.glGenLists(2);
|
||||||
local3.glNewList(this.anInt4236, GL.GL_COMPILE);
|
local3.glNewList(this.anInt4236, GL2.GL_COMPILE);
|
||||||
local3.glActiveTexture(GL.GL_TEXTURE1);
|
local3.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
if (Static151.aBoolean176) {
|
if (Static151.aBoolean176) {
|
||||||
local3.glBindTexture(GL.GL_TEXTURE_3D, Static151.anInt3588);
|
local3.glBindTexture(GL2.GL_TEXTURE_3D, Static151.anInt3588);
|
||||||
local3.glTexGeni(GL.GL_R, GL.GL_TEXTURE_GEN_MODE, GL.GL_OBJECT_LINEAR);
|
local3.glTexGeni(GL2.GL_R, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_OBJECT_LINEAR);
|
||||||
local3.glEnable(GL.GL_TEXTURE_GEN_R);
|
local3.glEnable(GL2.GL_TEXTURE_GEN_R);
|
||||||
local3.glEnable(GL.GL_TEXTURE_3D);
|
local3.glEnable(GL2.GL_TEXTURE_3D);
|
||||||
} else {
|
} else {
|
||||||
local3.glEnable(GL.GL_TEXTURE_2D);
|
local3.glEnable(GL2.GL_TEXTURE_2D);
|
||||||
}
|
}
|
||||||
local3.glTexGeni(GL.GL_S, GL.GL_TEXTURE_GEN_MODE, GL.GL_EYE_LINEAR);
|
local3.glTexGeni(GL2.GL_S, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_EYE_LINEAR);
|
||||||
local3.glTexGeni(GL.GL_T, GL.GL_TEXTURE_GEN_MODE, GL.GL_EYE_LINEAR);
|
local3.glTexGeni(GL2.GL_T, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_EYE_LINEAR);
|
||||||
local3.glEnable(GL.GL_TEXTURE_GEN_S);
|
local3.glEnable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local3.glEnable(GL.GL_TEXTURE_GEN_T);
|
local3.glEnable(GL2.GL_TEXTURE_GEN_T);
|
||||||
local3.glActiveTexture(GL.GL_TEXTURE0);
|
local3.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
local3.glEndList();
|
local3.glEndList();
|
||||||
local3.glNewList(this.anInt4236 + 1, GL.GL_COMPILE);
|
local3.glNewList(this.anInt4236 + 1, GL2.GL_COMPILE);
|
||||||
local3.glActiveTexture(GL.GL_TEXTURE1);
|
local3.glActiveTexture(GL2.GL_TEXTURE1);
|
||||||
if (Static151.aBoolean176) {
|
if (Static151.aBoolean176) {
|
||||||
local3.glDisable(GL.GL_TEXTURE_3D);
|
local3.glDisable(GL2.GL_TEXTURE_3D);
|
||||||
local3.glDisable(GL.GL_TEXTURE_GEN_R);
|
local3.glDisable(GL2.GL_TEXTURE_GEN_R);
|
||||||
} else {
|
} else {
|
||||||
local3.glDisable(GL.GL_TEXTURE_2D);
|
local3.glDisable(GL2.GL_TEXTURE_2D);
|
||||||
}
|
}
|
||||||
local3.glDisable(GL.GL_TEXTURE_GEN_S);
|
local3.glDisable(GL2.GL_TEXTURE_GEN_S);
|
||||||
local3.glDisable(GL.GL_TEXTURE_GEN_T);
|
local3.glDisable(GL2.GL_TEXTURE_GEN_T);
|
||||||
local3.glActiveTexture(GL.GL_TEXTURE0);
|
local3.glActiveTexture(GL2.GL_TEXTURE0);
|
||||||
local3.glEndList();
|
local3.glEndList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
18
gl/pom.xml
18
gl/pom.xml
|
|
@ -1,18 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
|
||||||
http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>com.jagex</groupId>
|
|
||||||
<artifactId>rs2</artifactId>
|
|
||||||
<version>530</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<groupId>com.jagex</groupId>
|
|
||||||
<artifactId>gl</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
</project>
|
|
||||||
|
|
@ -1,148 +0,0 @@
|
||||||
package com.sun.gluegen.runtime;
|
|
||||||
|
|
||||||
import java.nio.Buffer;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
import java.nio.ByteOrder;
|
|
||||||
import java.nio.CharBuffer;
|
|
||||||
import java.nio.DoubleBuffer;
|
|
||||||
import java.nio.FloatBuffer;
|
|
||||||
import java.nio.IntBuffer;
|
|
||||||
import java.nio.LongBuffer;
|
|
||||||
import java.nio.ShortBuffer;
|
|
||||||
|
|
||||||
public class BufferFactory {
|
|
||||||
|
|
||||||
public static ByteBuffer newDirectByteBuffer(int arg0) {
|
|
||||||
ByteBuffer var1 = ByteBuffer.allocateDirect(arg0);
|
|
||||||
var1.order(ByteOrder.nativeOrder());
|
|
||||||
return var1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean isDirect(Buffer arg0) {
|
|
||||||
if (arg0 == null) {
|
|
||||||
return true;
|
|
||||||
} else if (arg0 instanceof ByteBuffer) {
|
|
||||||
return ((ByteBuffer) arg0).isDirect();
|
|
||||||
} else if (arg0 instanceof FloatBuffer) {
|
|
||||||
return ((FloatBuffer) arg0).isDirect();
|
|
||||||
} else if (arg0 instanceof DoubleBuffer) {
|
|
||||||
return ((DoubleBuffer) arg0).isDirect();
|
|
||||||
} else if (arg0 instanceof CharBuffer) {
|
|
||||||
return ((CharBuffer) arg0).isDirect();
|
|
||||||
} else if (arg0 instanceof ShortBuffer) {
|
|
||||||
return ((ShortBuffer) arg0).isDirect();
|
|
||||||
} else if (arg0 instanceof IntBuffer) {
|
|
||||||
return ((IntBuffer) arg0).isDirect();
|
|
||||||
} else if (arg0 instanceof LongBuffer) {
|
|
||||||
return ((LongBuffer) arg0).isDirect();
|
|
||||||
} else {
|
|
||||||
throw new RuntimeException("Unexpected buffer type " + arg0.getClass().getName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int getDirectBufferByteOffset(Buffer arg0) {
|
|
||||||
if (arg0 == null) {
|
|
||||||
return 0;
|
|
||||||
} else if (arg0 instanceof ByteBuffer) {
|
|
||||||
return arg0.position();
|
|
||||||
} else if (arg0 instanceof FloatBuffer) {
|
|
||||||
return arg0.position() * 4;
|
|
||||||
} else if (arg0 instanceof IntBuffer) {
|
|
||||||
return arg0.position() * 4;
|
|
||||||
} else if (arg0 instanceof ShortBuffer) {
|
|
||||||
return arg0.position() * 2;
|
|
||||||
} else if (arg0 instanceof DoubleBuffer) {
|
|
||||||
return arg0.position() * 8;
|
|
||||||
} else if (arg0 instanceof LongBuffer) {
|
|
||||||
return arg0.position() * 8;
|
|
||||||
} else if (arg0 instanceof CharBuffer) {
|
|
||||||
return arg0.position() * 2;
|
|
||||||
} else {
|
|
||||||
throw new RuntimeException("Disallowed array backing store type in buffer " + arg0.getClass().getName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Object getArray(Buffer arg0) {
|
|
||||||
if (arg0 == null) {
|
|
||||||
return null;
|
|
||||||
} else if (arg0 instanceof ByteBuffer) {
|
|
||||||
return ((ByteBuffer) arg0).array();
|
|
||||||
} else if (arg0 instanceof FloatBuffer) {
|
|
||||||
return ((FloatBuffer) arg0).array();
|
|
||||||
} else if (arg0 instanceof IntBuffer) {
|
|
||||||
return ((IntBuffer) arg0).array();
|
|
||||||
} else if (arg0 instanceof ShortBuffer) {
|
|
||||||
return ((ShortBuffer) arg0).array();
|
|
||||||
} else if (arg0 instanceof DoubleBuffer) {
|
|
||||||
return ((DoubleBuffer) arg0).array();
|
|
||||||
} else if (arg0 instanceof LongBuffer) {
|
|
||||||
return ((LongBuffer) arg0).array();
|
|
||||||
} else if (arg0 instanceof CharBuffer) {
|
|
||||||
return ((CharBuffer) arg0).array();
|
|
||||||
} else {
|
|
||||||
throw new RuntimeException("Disallowed array backing store type in buffer " + arg0.getClass().getName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int getIndirectBufferByteOffset(Buffer arg0) {
|
|
||||||
if (arg0 == null) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
int var1 = arg0.position();
|
|
||||||
if (arg0 instanceof ByteBuffer) {
|
|
||||||
return ((ByteBuffer) arg0).arrayOffset() + var1;
|
|
||||||
} else if (arg0 instanceof FloatBuffer) {
|
|
||||||
return (((FloatBuffer) arg0).arrayOffset() + var1) * 4;
|
|
||||||
} else if (arg0 instanceof IntBuffer) {
|
|
||||||
return (((IntBuffer) arg0).arrayOffset() + var1) * 4;
|
|
||||||
} else if (arg0 instanceof ShortBuffer) {
|
|
||||||
return (((ShortBuffer) arg0).arrayOffset() + var1) * 2;
|
|
||||||
} else if (arg0 instanceof DoubleBuffer) {
|
|
||||||
return (((DoubleBuffer) arg0).arrayOffset() + var1) * 8;
|
|
||||||
} else if (arg0 instanceof LongBuffer) {
|
|
||||||
return (((LongBuffer) arg0).arrayOffset() + var1) * 8;
|
|
||||||
} else if (arg0 instanceof CharBuffer) {
|
|
||||||
return (((CharBuffer) arg0).arrayOffset() + var1) * 2;
|
|
||||||
} else {
|
|
||||||
throw new RuntimeException("Unknown buffer type " + arg0.getClass().getName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void rangeCheck(int[] arg0, int arg1, int arg2) {
|
|
||||||
if (arg0 != null && arg0.length < arg1 + arg2) {
|
|
||||||
throw new ArrayIndexOutOfBoundsException("Required " + arg2 + " elements in array, only had " + (arg0.length - arg1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void rangeCheck(Buffer arg0, int arg1) {
|
|
||||||
if (arg0 != null && arg0.remaining() < arg1) {
|
|
||||||
throw new IndexOutOfBoundsException("Required " + arg1 + " remaining elements in buffer, only had " + arg0.remaining());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void rangeCheckBytes(Buffer arg0, int arg1) {
|
|
||||||
if (arg0 == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int var2 = arg0.remaining();
|
|
||||||
int var3 = 0;
|
|
||||||
if (arg0 instanceof ByteBuffer) {
|
|
||||||
var3 = var2;
|
|
||||||
} else if (arg0 instanceof FloatBuffer) {
|
|
||||||
var3 = var2 * 4;
|
|
||||||
} else if (arg0 instanceof IntBuffer) {
|
|
||||||
var3 = var2 * 4;
|
|
||||||
} else if (arg0 instanceof ShortBuffer) {
|
|
||||||
var3 = var2 * 2;
|
|
||||||
} else if (arg0 instanceof DoubleBuffer) {
|
|
||||||
var3 = var2 * 8;
|
|
||||||
} else if (arg0 instanceof LongBuffer) {
|
|
||||||
var3 = var2 * 8;
|
|
||||||
} else if (arg0 instanceof CharBuffer) {
|
|
||||||
var3 = var2 * 2;
|
|
||||||
}
|
|
||||||
if (var3 < arg1) {
|
|
||||||
throw new IndexOutOfBoundsException("Required " + arg1 + " remaining bytes in buffer, only had " + var3);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
package com.sun.gluegen.runtime;
|
|
||||||
|
|
||||||
public class CPU {
|
|
||||||
|
|
||||||
private static boolean is32Bit;
|
|
||||||
|
|
||||||
public static boolean is32Bit() {
|
|
||||||
return is32Bit;
|
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
String var0 = System.getProperty("os.name").toLowerCase();
|
|
||||||
String var1 = System.getProperty("os.arch").toLowerCase();
|
|
||||||
if (var0.startsWith("windows") && var1.equals("x86") || !(!var0.startsWith("linux") || !var1.equals("i386")) || var0.startsWith("linux") && var1.equals("x86") || var0.startsWith("mac os") && var1.equals("ppc") || var0.startsWith("mac os") && var1.equals("i386") || var0.startsWith("sunos") && var1.equals("sparc") || var0.startsWith("sunos") && var1.equals("x86") || var0.startsWith("freebsd") && var1.equals("i386") || var0.startsWith("hp-ux") && var1.equals("pa_risc2.0")) {
|
|
||||||
is32Bit = true;
|
|
||||||
} else if ((!var0.startsWith("windows") || !var1.equals("amd64")) && (!var0.startsWith("linux") || !var1.equals("amd64")) && (!var0.startsWith("linux") || !var1.equals("x86_64")) && (!var0.startsWith("linux") || !var1.equals("ia64")) && (!var0.startsWith("mac os") || !var1.equals("x86_64")) && (!var0.startsWith("sunos") || !var1.equals("sparcv9")) && (!var0.startsWith("sunos") || !var1.equals("amd64"))) {
|
|
||||||
throw new RuntimeException("Please port CPU detection (32/64 bit) to your platform (" + var0 + "/" + var1 + ")");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
package com.sun.gluegen.runtime;
|
|
||||||
|
|
||||||
interface DynamicLinker {
|
|
||||||
|
|
||||||
long openLibrary(String arg0);
|
|
||||||
|
|
||||||
void closeLibrary(long arg0);
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
package com.sun.gluegen.runtime;
|
|
||||||
|
|
||||||
public interface DynamicLookupHelper {
|
|
||||||
|
|
||||||
long dynamicLookupFunction(String arg0);
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
package com.sun.gluegen.runtime;
|
|
||||||
|
|
||||||
public class MacOSXDynamicLinkerImpl implements DynamicLinker {
|
|
||||||
|
|
||||||
private static native int dlclose(long arg0);
|
|
||||||
|
|
||||||
private static native long dlopen(String arg0, int arg1);
|
|
||||||
|
|
||||||
public long openLibrary(String arg0) {
|
|
||||||
return dlopen(arg0, 9);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void closeLibrary(long arg0) {
|
|
||||||
dlclose(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,256 +0,0 @@
|
||||||
package com.sun.gluegen.runtime;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.lang.reflect.Method;
|
|
||||||
import java.security.AccessController;
|
|
||||||
import java.security.PrivilegedAction;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.StringTokenizer;
|
|
||||||
|
|
||||||
public class NativeLibrary {
|
|
||||||
|
|
||||||
private static boolean DEBUG;
|
|
||||||
|
|
||||||
private static int platform;
|
|
||||||
|
|
||||||
private static DynamicLinker dynLink;
|
|
||||||
|
|
||||||
private static String[] prefixes;
|
|
||||||
|
|
||||||
private static String[] suffixes;
|
|
||||||
|
|
||||||
private long libraryHandle;
|
|
||||||
|
|
||||||
private String libraryPath;
|
|
||||||
|
|
||||||
private static boolean initializedFindLibraryMethod;
|
|
||||||
|
|
||||||
private static Method findLibraryMethod;
|
|
||||||
|
|
||||||
private NativeLibrary(long arg0, String arg1) {
|
|
||||||
this.libraryHandle = arg0;
|
|
||||||
this.libraryPath = arg1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static NativeLibrary open(String arg0, ClassLoader arg1) {
|
|
||||||
return open(arg0, arg0, arg0, true, arg1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static NativeLibrary open(String arg0, String arg1, String arg2, boolean arg3, ClassLoader arg4) {
|
|
||||||
List var5 = enumerateLibraryPaths(arg0, arg1, arg2, arg3, arg4);
|
|
||||||
Iterator var6 = var5.iterator();
|
|
||||||
String var7;
|
|
||||||
long var8;
|
|
||||||
do {
|
|
||||||
if (!var6.hasNext()) {
|
|
||||||
if (DEBUG) {
|
|
||||||
System.out.println("Did not succeed in loading (" + arg0 + ", " + arg1 + ", " + arg2 + ")");
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
var7 = (String) var6.next();
|
|
||||||
if (DEBUG) {
|
|
||||||
System.out.println("Trying to load " + var7);
|
|
||||||
}
|
|
||||||
var8 = dynLink.openLibrary(var7);
|
|
||||||
} while (var8 == 0L);
|
|
||||||
if (DEBUG) {
|
|
||||||
System.out.println("Successfully loaded " + var7 + ": res = 0x" + Long.toHexString(var8));
|
|
||||||
}
|
|
||||||
return new NativeLibrary(var8, var7);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void close() {
|
|
||||||
if (this.libraryHandle == 0L) {
|
|
||||||
throw new RuntimeException("Library already closed");
|
|
||||||
}
|
|
||||||
long var1 = this.libraryHandle;
|
|
||||||
this.libraryHandle = 0L;
|
|
||||||
dynLink.closeLibrary(var1);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static List enumerateLibraryPaths(String arg0, String arg1, String arg2, boolean arg3, ClassLoader arg4) {
|
|
||||||
ArrayList var5 = new ArrayList();
|
|
||||||
String var6 = selectName(arg0, arg1, arg2);
|
|
||||||
if (var6 == null) {
|
|
||||||
return var5;
|
|
||||||
}
|
|
||||||
File var7 = new File(var6);
|
|
||||||
if (var7.isAbsolute()) {
|
|
||||||
var5.add(var6);
|
|
||||||
return var5;
|
|
||||||
}
|
|
||||||
String[] var8 = buildNames(var6);
|
|
||||||
if (arg3) {
|
|
||||||
for (int var9 = 0; var9 < var8.length; var9++) {
|
|
||||||
var5.add(var8[var9]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
String var13 = getPathFromClassLoader(var6, arg4);
|
|
||||||
if (DEBUG) {
|
|
||||||
System.out.println("Class loader path to " + var6 + ": " + var13);
|
|
||||||
}
|
|
||||||
if (var13 != null) {
|
|
||||||
var5.add(var13);
|
|
||||||
}
|
|
||||||
String var10 = (String) AccessController.doPrivileged(new PrivilegedAction() {
|
|
||||||
|
|
||||||
public Object run() {
|
|
||||||
return System.getProperty("java.library.path");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if (var10 != null) {
|
|
||||||
StringTokenizer var11 = new StringTokenizer(var10, File.pathSeparator);
|
|
||||||
while (var11.hasMoreTokens()) {
|
|
||||||
addPaths(var11.nextToken(), var8, var5);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
String var14 = (String) AccessController.doPrivileged(new PrivilegedAction() {
|
|
||||||
|
|
||||||
public Object run() {
|
|
||||||
return System.getProperty("user.dir");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
addPaths(var14, var8, var5);
|
|
||||||
if (platform == 3) {
|
|
||||||
addPaths("/Library/Frameworks/" + var6 + ".Framework", var8, var5);
|
|
||||||
addPaths("/System/Library/Frameworks/" + var6 + ".Framework", var8, var5);
|
|
||||||
}
|
|
||||||
if (!arg3) {
|
|
||||||
for (int var12 = 0; var12 < var8.length; var12++) {
|
|
||||||
var5.add(var8[var12]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return var5;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String selectName(String arg0, String arg1, String arg2) {
|
|
||||||
switch(platform) {
|
|
||||||
case 1:
|
|
||||||
return arg0;
|
|
||||||
case 2:
|
|
||||||
return arg1;
|
|
||||||
case 3:
|
|
||||||
return arg2;
|
|
||||||
default:
|
|
||||||
throw new InternalError();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String[] buildNames(String arg0) {
|
|
||||||
int var3;
|
|
||||||
if (arg0.startsWith(prefixes[0])) {
|
|
||||||
if (arg0.endsWith(suffixes[0])) {
|
|
||||||
return new String[] { arg0 };
|
|
||||||
}
|
|
||||||
int var1 = arg0.indexOf(suffixes[0]);
|
|
||||||
boolean var2 = true;
|
|
||||||
if (var1 >= 0) {
|
|
||||||
for (var3 = var1 + suffixes[0].length(); var3 < arg0.length(); var3++) {
|
|
||||||
char var4 = arg0.charAt(var3);
|
|
||||||
if (var4 != '.' && (var4 < '0' || var4 > '9')) {
|
|
||||||
var2 = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (var2) {
|
|
||||||
return new String[] { arg0 };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
String[] var5 = new String[prefixes.length * suffixes.length];
|
|
||||||
int var6 = 0;
|
|
||||||
for (var3 = 0; var3 < prefixes.length; var3++) {
|
|
||||||
for (int var7 = 0; var7 < suffixes.length; var7++) {
|
|
||||||
var5[var6++] = prefixes[var3] + arg0 + suffixes[var7];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return var5;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void addPaths(String arg0, String[] arg1, List arg2) {
|
|
||||||
for (int var3 = 0; var3 < arg1.length; var3++) {
|
|
||||||
arg2.add(arg0 + File.separator + arg1[var3]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String getPathFromClassLoader(final String arg0, final ClassLoader arg1) {
|
|
||||||
if (arg1 == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
if (!initializedFindLibraryMethod) {
|
|
||||||
AccessController.doPrivileged(new PrivilegedAction() {
|
|
||||||
|
|
||||||
public Object run() {
|
|
||||||
try {
|
|
||||||
NativeLibrary.findLibraryMethod = ClassLoader.class.getDeclaredMethod("findLibrary", String.class);
|
|
||||||
NativeLibrary.findLibraryMethod.setAccessible(true);
|
|
||||||
} catch (Exception var2) {
|
|
||||||
}
|
|
||||||
NativeLibrary.initializedFindLibraryMethod = true;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (findLibraryMethod != null) {
|
|
||||||
try {
|
|
||||||
return (String) AccessController.doPrivileged(new PrivilegedAction() {
|
|
||||||
|
|
||||||
public Object run() {
|
|
||||||
try {
|
|
||||||
return NativeLibrary.findLibraryMethod.invoke(arg1, arg0);
|
|
||||||
} catch (Exception var2) {
|
|
||||||
throw new RuntimeException(var2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} catch (Exception var3) {
|
|
||||||
if (DEBUG) {
|
|
||||||
var3.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
AccessController.doPrivileged(new PrivilegedAction() {
|
|
||||||
|
|
||||||
public Object run() {
|
|
||||||
String var1 = System.getProperty("os.name").toLowerCase();
|
|
||||||
if (var1.startsWith("wind")) {
|
|
||||||
NativeLibrary.platform = 1;
|
|
||||||
} else if (var1.startsWith("mac os x")) {
|
|
||||||
NativeLibrary.platform = 3;
|
|
||||||
} else {
|
|
||||||
NativeLibrary.platform = 2;
|
|
||||||
}
|
|
||||||
NativeLibrary.DEBUG = System.getProperty("gluegen.debug.NativeLibrary") != null;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
switch(platform) {
|
|
||||||
case 1:
|
|
||||||
dynLink = new WindowsDynamicLinkerImpl();
|
|
||||||
prefixes = new String[] { "" };
|
|
||||||
suffixes = new String[] { ".dll" };
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
dynLink = new UnixDynamicLinkerImpl();
|
|
||||||
prefixes = new String[] { "lib" };
|
|
||||||
suffixes = new String[] { ".so" };
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
dynLink = new MacOSXDynamicLinkerImpl();
|
|
||||||
prefixes = new String[] { "lib", "" };
|
|
||||||
suffixes = new String[] { ".dylib", ".jnilib", "" };
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
throw new InternalError("Platform not initialized properly");
|
|
||||||
}
|
|
||||||
initializedFindLibraryMethod = false;
|
|
||||||
findLibraryMethod = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
package com.sun.gluegen.runtime;
|
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
|
||||||
|
|
||||||
public class ProcAddressHelper {
|
|
||||||
|
|
||||||
public static void resetProcAddressTable(Object arg0, DynamicLookupHelper arg1) throws RuntimeException {
|
|
||||||
Class var2 = arg0.getClass();
|
|
||||||
Field[] var3 = var2.getFields();
|
|
||||||
for (int var4 = 0; var4 < var3.length; var4++) {
|
|
||||||
String var5 = var3[var4].getName();
|
|
||||||
if (var5.startsWith("_addressof_")) {
|
|
||||||
int var6 = "_addressof_".length();
|
|
||||||
String var7 = var5.substring(var6);
|
|
||||||
try {
|
|
||||||
Field var8 = var3[var4];
|
|
||||||
assert var8.getType() == Long.TYPE;
|
|
||||||
long var9 = arg1.dynamicLookupFunction(var7);
|
|
||||||
var8.setLong(arg0, var9);
|
|
||||||
} catch (Exception var11) {
|
|
||||||
throw new RuntimeException("Can not get proc address for method \"" + var7 + "\": Couldn't set value of field \"" + var5 + "\" in class " + var2.getName(), var11);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,75 +0,0 @@
|
||||||
package com.sun.gluegen.runtime;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
import java.nio.ByteOrder;
|
|
||||||
import java.nio.IntBuffer;
|
|
||||||
import java.nio.LongBuffer;
|
|
||||||
import java.nio.ShortBuffer;
|
|
||||||
|
|
||||||
public class StructAccessor {
|
|
||||||
|
|
||||||
private ByteBuffer bb;
|
|
||||||
|
|
||||||
private IntBuffer ib;
|
|
||||||
|
|
||||||
private LongBuffer lb;
|
|
||||||
|
|
||||||
private ShortBuffer sb;
|
|
||||||
|
|
||||||
public StructAccessor(ByteBuffer arg0) {
|
|
||||||
this.bb = arg0.order(ByteOrder.nativeOrder());
|
|
||||||
}
|
|
||||||
|
|
||||||
public ByteBuffer getBuffer() {
|
|
||||||
return this.bb;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte getByteAt(int arg0) {
|
|
||||||
return this.bb.get(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setByteAt(int arg0, byte arg1) {
|
|
||||||
this.bb.put(arg0, arg1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getIntAt(int arg0) {
|
|
||||||
return this.intBuffer().get(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIntAt(int arg0, int arg1) {
|
|
||||||
this.intBuffer().put(arg0, arg1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public long getLongAt(int arg0) {
|
|
||||||
return this.longBuffer().get(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLongAt(int arg0, long arg1) {
|
|
||||||
this.longBuffer().put(arg0, arg1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setShortAt(int arg0, short arg1) {
|
|
||||||
this.shortBuffer().put(arg0, arg1);
|
|
||||||
}
|
|
||||||
|
|
||||||
private IntBuffer intBuffer() {
|
|
||||||
if (this.ib == null) {
|
|
||||||
this.ib = this.bb.asIntBuffer();
|
|
||||||
}
|
|
||||||
return this.ib;
|
|
||||||
}
|
|
||||||
|
|
||||||
private LongBuffer longBuffer() {
|
|
||||||
if (this.lb == null) {
|
|
||||||
this.lb = this.bb.asLongBuffer();
|
|
||||||
}
|
|
||||||
return this.lb;
|
|
||||||
}
|
|
||||||
|
|
||||||
private ShortBuffer shortBuffer() {
|
|
||||||
if (this.sb == null) {
|
|
||||||
this.sb = this.bb.asShortBuffer();
|
|
||||||
}
|
|
||||||
return this.sb;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
package com.sun.gluegen.runtime;
|
|
||||||
|
|
||||||
public class UnixDynamicLinkerImpl implements DynamicLinker {
|
|
||||||
|
|
||||||
private static native int dlclose(long arg0);
|
|
||||||
|
|
||||||
private static native long dlopen(String arg0, int arg1);
|
|
||||||
|
|
||||||
public long openLibrary(String arg0) {
|
|
||||||
return dlopen(arg0, 257);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void closeLibrary(long arg0) {
|
|
||||||
dlclose(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
package com.sun.gluegen.runtime;
|
|
||||||
|
|
||||||
public class WindowsDynamicLinkerImpl implements DynamicLinker {
|
|
||||||
|
|
||||||
private static native int FreeLibrary(long arg0);
|
|
||||||
|
|
||||||
private static native long LoadLibraryA(String arg0);
|
|
||||||
|
|
||||||
public long openLibrary(String arg0) {
|
|
||||||
return LoadLibraryA(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void closeLibrary(long arg0) {
|
|
||||||
FreeLibrary(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,150 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.StringTokenizer;
|
|
||||||
import java.util.regex.Matcher;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
import javax.media.opengl.GL;
|
|
||||||
|
|
||||||
public final class FunctionAvailabilityCache {
|
|
||||||
|
|
||||||
private HashMap availabilityCache = new HashMap(50);
|
|
||||||
|
|
||||||
private HashSet availableExtensionCache = new HashSet(50);
|
|
||||||
|
|
||||||
private GLContextImpl context;
|
|
||||||
|
|
||||||
FunctionAvailabilityCache(GLContextImpl arg0) {
|
|
||||||
this.context = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void flush() {
|
|
||||||
this.availabilityCache.clear();
|
|
||||||
this.availableExtensionCache.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isExtensionAvailable(String arg0) {
|
|
||||||
this.initAvailableExtensions();
|
|
||||||
return this.availableExtensionCache.contains(mapGLExtensionName(arg0));
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void initAvailableExtensions() {
|
|
||||||
if (!this.availableExtensionCache.isEmpty()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
GL var1 = this.context.getGL();
|
|
||||||
String var2 = var1.glGetString(GL.GL_EXTENSIONS) + " " + this.context.getPlatformExtensionsString();
|
|
||||||
StringTokenizer var3 = new StringTokenizer(var2);
|
|
||||||
while (var3.hasMoreTokens()) {
|
|
||||||
String var4 = var3.nextToken().trim();
|
|
||||||
String var7 = var4.intern();
|
|
||||||
this.availableExtensionCache.add(var7);
|
|
||||||
}
|
|
||||||
FunctionAvailabilityCache.Version var8 = new FunctionAvailabilityCache.Version(var1.glGetString(GL.GL_VERSION));
|
|
||||||
int var5 = var8.getMajor();
|
|
||||||
int var6 = var8.getMinor();
|
|
||||||
while (var5 > 0) {
|
|
||||||
while (var6 >= 0) {
|
|
||||||
this.availableExtensionCache.add("GL_VERSION_" + var5 + "_" + var6);
|
|
||||||
var6--;
|
|
||||||
}
|
|
||||||
switch(var5) {
|
|
||||||
case 2:
|
|
||||||
var6 = 5;
|
|
||||||
case 1:
|
|
||||||
default:
|
|
||||||
var5--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.availableExtensionCache.add("<INTERNAL_DUMMY_PLACEHOLDER>");
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String mapGLExtensionName(String arg0) {
|
|
||||||
return arg0 != null && (arg0.equals("WGL_NV_vertex_array_range") || arg0.equals("GLX_NV_vertex_array_range")) ? "GL_NV_vertex_array_range" : arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static class Version implements Comparable {
|
|
||||||
|
|
||||||
private int major;
|
|
||||||
|
|
||||||
private int minor;
|
|
||||||
|
|
||||||
private int sub;
|
|
||||||
|
|
||||||
public Version(String arg0) {
|
|
||||||
try {
|
|
||||||
StringTokenizer var2;
|
|
||||||
if (arg0.startsWith("GL_VERSION_")) {
|
|
||||||
var2 = new StringTokenizer(arg0, "_");
|
|
||||||
var2.nextToken();
|
|
||||||
var2.nextToken();
|
|
||||||
if (!var2.hasMoreTokens()) {
|
|
||||||
this.major = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.major = Integer.valueOf(var2.nextToken());
|
|
||||||
if (!var2.hasMoreTokens()) {
|
|
||||||
this.minor = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.minor = Integer.valueOf(var2.nextToken());
|
|
||||||
if (!var2.hasMoreTokens()) {
|
|
||||||
this.sub = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.sub = Integer.valueOf(var2.nextToken());
|
|
||||||
} else {
|
|
||||||
var2 = new StringTokenizer(arg0, ". ");
|
|
||||||
this.major = Integer.valueOf(var2.nextToken());
|
|
||||||
this.minor = Integer.valueOf(var2.nextToken());
|
|
||||||
var2 = new StringTokenizer(arg0, " ");
|
|
||||||
if (var2.hasMoreTokens()) {
|
|
||||||
var2.nextToken();
|
|
||||||
if (var2.hasMoreTokens()) {
|
|
||||||
Pattern var3 = Pattern.compile("\\D*(\\d+)\\.(\\d+)\\.?(\\d*).*");
|
|
||||||
Matcher var4 = var3.matcher(var2.nextToken());
|
|
||||||
if (var4.matches()) {
|
|
||||||
int var5 = Integer.valueOf(var4.group(1));
|
|
||||||
int var6 = Integer.valueOf(var4.group(2));
|
|
||||||
if (var5 == this.major && var6 > this.minor || var5 == this.major + 1) {
|
|
||||||
this.major = var5;
|
|
||||||
this.minor = var6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (Exception var7) {
|
|
||||||
throw (IllegalArgumentException) (new IllegalArgumentException("Illegally formatted version identifier: \"" + arg0 + "\"")).initCause(var7);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int compareTo(Object arg0) {
|
|
||||||
FunctionAvailabilityCache.Version var2 = (FunctionAvailabilityCache.Version) arg0;
|
|
||||||
if (this.major > var2.major) {
|
|
||||||
return 1;
|
|
||||||
} else if (this.major < var2.major) {
|
|
||||||
return -1;
|
|
||||||
} else if (this.minor > var2.minor) {
|
|
||||||
return 1;
|
|
||||||
} else if (this.minor < var2.minor) {
|
|
||||||
return -1;
|
|
||||||
} else if (this.sub > var2.sub) {
|
|
||||||
return 1;
|
|
||||||
} else if (this.sub < var2.sub) {
|
|
||||||
return -1;
|
|
||||||
} else {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getMajor() {
|
|
||||||
return this.major;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getMinor() {
|
|
||||||
return this.minor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,96 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import com.sun.gluegen.runtime.ProcAddressHelper;
|
|
||||||
import javax.media.opengl.GL;
|
|
||||||
import javax.media.opengl.GLContext;
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public abstract class GLContextImpl extends GLContext {
|
|
||||||
|
|
||||||
protected FunctionAvailabilityCache functionAvailability = new FunctionAvailabilityCache(this);
|
|
||||||
|
|
||||||
private GLProcAddressTable glProcAddressTable;
|
|
||||||
|
|
||||||
protected GL gl;
|
|
||||||
|
|
||||||
public GLContextImpl() {
|
|
||||||
this.setGL(this.createGL());
|
|
||||||
}
|
|
||||||
|
|
||||||
public int makeCurrent() throws GLException {
|
|
||||||
GLContext var1 = getCurrent();
|
|
||||||
if (var1 == this) {
|
|
||||||
this.update();
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
if (var1 != null) {
|
|
||||||
var1.release();
|
|
||||||
}
|
|
||||||
int var2 = this.makeCurrentImpl();
|
|
||||||
if (var2 != 0) {
|
|
||||||
setCurrent(this);
|
|
||||||
}
|
|
||||||
return var2;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected abstract int makeCurrentImpl() throws GLException;
|
|
||||||
|
|
||||||
public void release() throws GLException {
|
|
||||||
setCurrent(null);
|
|
||||||
this.releaseImpl();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected abstract void releaseImpl() throws GLException;
|
|
||||||
|
|
||||||
public void destroy() {
|
|
||||||
this.destroyImpl();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected abstract void destroyImpl() throws GLException;
|
|
||||||
|
|
||||||
protected void update() throws GLException {
|
|
||||||
}
|
|
||||||
|
|
||||||
public GL getGL() {
|
|
||||||
return this.gl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGL(GL arg0) {
|
|
||||||
this.gl = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected GL createGL() {
|
|
||||||
return new GLImpl(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public GLProcAddressTable getGLProcAddressTable() {
|
|
||||||
if (this.glProcAddressTable == null) {
|
|
||||||
this.glProcAddressTable = new GLProcAddressTable();
|
|
||||||
}
|
|
||||||
return this.glProcAddressTable;
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract void setSwapInterval(int arg0);
|
|
||||||
|
|
||||||
protected abstract String mapToRealGLExtensionName(String arg0);
|
|
||||||
|
|
||||||
public abstract String getPlatformExtensionsString();
|
|
||||||
|
|
||||||
protected void resetProcAddressTable(Object arg0) {
|
|
||||||
ProcAddressHelper.resetProcAddressTable(arg0, GLDrawableFactoryImpl.getFactoryImpl());
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void resetGLFunctionAvailability() {
|
|
||||||
this.setGL(this.createGL());
|
|
||||||
this.functionAvailability.flush();
|
|
||||||
this.resetProcAddressTable(this.getGLProcAddressTable());
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isExtensionAvailable(String arg0) {
|
|
||||||
return this.functionAvailability.isExtensionAvailable(this.mapToRealGLExtensionName(arg0));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String toHexString(long arg0) {
|
|
||||||
return "0x" + Long.toHexString(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import com.sun.gluegen.runtime.DynamicLookupHelper;
|
|
||||||
import javax.media.opengl.GLDrawableFactory;
|
|
||||||
|
|
||||||
public abstract class GLDrawableFactoryImpl extends GLDrawableFactory implements DynamicLookupHelper {
|
|
||||||
|
|
||||||
public abstract long dynamicLookupFunction(String arg0);
|
|
||||||
|
|
||||||
public static GLDrawableFactoryImpl getFactoryImpl() {
|
|
||||||
return (GLDrawableFactoryImpl) getFactory();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import javax.media.opengl.GLCapabilities;
|
|
||||||
import javax.media.opengl.GLDrawable;
|
|
||||||
|
|
||||||
public abstract class GLDrawableImpl implements GLDrawable {
|
|
||||||
|
|
||||||
private GLCapabilities chosenCapabilities;
|
|
||||||
|
|
||||||
public static String toHexString(long arg0) {
|
|
||||||
return GLContextImpl.toHexString(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public GLCapabilities getChosenGLCapabilities() {
|
|
||||||
return this.chosenCapabilities == null ? null : (GLCapabilities) this.chosenCapabilities.clone();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setChosenGLCapabilities(GLCapabilities arg0) {
|
|
||||||
this.chosenCapabilities = arg0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,814 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import com.sun.gluegen.runtime.BufferFactory;
|
|
||||||
import java.nio.Buffer;
|
|
||||||
import java.nio.FloatBuffer;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import javax.media.opengl.GL;
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public class GLImpl implements GL {
|
|
||||||
|
|
||||||
private boolean inBeginEndPair;
|
|
||||||
|
|
||||||
private GLContextImpl _context;
|
|
||||||
|
|
||||||
private boolean bufferObjectExtensionsInitialized = false;
|
|
||||||
|
|
||||||
private boolean haveARBPixelBufferObject;
|
|
||||||
|
|
||||||
private boolean haveEXTPixelBufferObject;
|
|
||||||
|
|
||||||
private boolean haveGL15;
|
|
||||||
|
|
||||||
private boolean haveGL21;
|
|
||||||
|
|
||||||
private boolean haveARBVertexBufferObject;
|
|
||||||
|
|
||||||
private Map arbVBOCache = new HashMap();
|
|
||||||
|
|
||||||
public void glActiveTexture(int arg0) {
|
|
||||||
long var2 = this._context.getGLProcAddressTable()._addressof_glActiveTexture;
|
|
||||||
if (var2 == 0L) {
|
|
||||||
var2 = this._context.getGLProcAddressTable()._addressof_glActiveTextureARB;
|
|
||||||
if (var2 == 0L) {
|
|
||||||
throw new GLException("Method \"glActiveTexture\" not available");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.dispatch_glActiveTexture0(arg0, var2);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void dispatch_glActiveTexture0(int arg0, long arg1);
|
|
||||||
|
|
||||||
public native void glAlphaFunc(int arg0, float arg1);
|
|
||||||
|
|
||||||
public void glBegin(int arg0) {
|
|
||||||
this.inBeginEndPair = true;
|
|
||||||
this.glBegin0(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glBegin0(int arg0);
|
|
||||||
|
|
||||||
public void glBindBufferARB(int arg0, int arg1) {
|
|
||||||
long var3 = this._context.getGLProcAddressTable()._addressof_glBindBufferARB;
|
|
||||||
if (var3 == 0L) {
|
|
||||||
throw new GLException("Method \"glBindBufferARB\" not available");
|
|
||||||
}
|
|
||||||
this.dispatch_glBindBufferARB0(arg0, arg1, var3);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void dispatch_glBindBufferARB0(int arg0, int arg1, long arg2);
|
|
||||||
|
|
||||||
public void glBindProgramARB(int arg0, int arg1) {
|
|
||||||
long var3 = this._context.getGLProcAddressTable()._addressof_glBindProgramARB;
|
|
||||||
if (var3 == 0L) {
|
|
||||||
throw new GLException("Method \"glBindProgramARB\" not available");
|
|
||||||
}
|
|
||||||
this.dispatch_glBindProgramARB0(arg0, arg1, var3);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void dispatch_glBindProgramARB0(int arg0, int arg1, long arg2);
|
|
||||||
|
|
||||||
public native void glBindTexture(int arg0, int arg1);
|
|
||||||
|
|
||||||
public native void glBlendFunc(int arg0, int arg1);
|
|
||||||
|
|
||||||
public void glBufferDataARB(int arg0, int arg1, Buffer arg2, int arg3) {
|
|
||||||
boolean var5 = BufferFactory.isDirect(arg2);
|
|
||||||
long var6 = this._context.getGLProcAddressTable()._addressof_glBufferDataARB;
|
|
||||||
if (var6 == 0L) {
|
|
||||||
throw new GLException("Method \"glBufferDataARB\" not available");
|
|
||||||
} else if (var5) {
|
|
||||||
this.dispatch_glBufferDataARB0(arg0, arg1, arg2, BufferFactory.getDirectBufferByteOffset(arg2), arg3, var6);
|
|
||||||
} else {
|
|
||||||
this.dispatch_glBufferDataARB1(arg0, arg1, BufferFactory.getArray(arg2), BufferFactory.getIndirectBufferByteOffset(arg2), arg3, var6);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void dispatch_glBufferDataARB0(int arg0, int arg1, Object arg2, int arg3, int arg4, long arg5);
|
|
||||||
|
|
||||||
private native void dispatch_glBufferDataARB1(int arg0, int arg1, Object arg2, int arg3, int arg4, long arg5);
|
|
||||||
|
|
||||||
public void glBufferSubDataARB(int arg0, int arg1, int arg2, Buffer arg3) {
|
|
||||||
boolean var5 = BufferFactory.isDirect(arg3);
|
|
||||||
long var6 = this._context.getGLProcAddressTable()._addressof_glBufferSubDataARB;
|
|
||||||
if (var6 == 0L) {
|
|
||||||
throw new GLException("Method \"glBufferSubDataARB\" not available");
|
|
||||||
} else if (var5) {
|
|
||||||
this.dispatch_glBufferSubDataARB0(arg0, arg1, arg2, arg3, BufferFactory.getDirectBufferByteOffset(arg3), var6);
|
|
||||||
} else {
|
|
||||||
this.dispatch_glBufferSubDataARB1(arg0, arg1, arg2, BufferFactory.getArray(arg3), BufferFactory.getIndirectBufferByteOffset(arg3), var6);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void dispatch_glBufferSubDataARB0(int arg0, int arg1, int arg2, Object arg3, int arg4, long arg5);
|
|
||||||
|
|
||||||
private native void dispatch_glBufferSubDataARB1(int arg0, int arg1, int arg2, Object arg3, int arg4, long arg5);
|
|
||||||
|
|
||||||
public native void glCallList(int arg0);
|
|
||||||
|
|
||||||
public native void glClear(int arg0);
|
|
||||||
|
|
||||||
public native void glClearColor(float arg0, float arg1, float arg2, float arg3);
|
|
||||||
|
|
||||||
public native void glClearDepth(double arg0);
|
|
||||||
|
|
||||||
public void glClientActiveTexture(int arg0) {
|
|
||||||
long var2 = this._context.getGLProcAddressTable()._addressof_glClientActiveTexture;
|
|
||||||
if (var2 == 0L) {
|
|
||||||
var2 = this._context.getGLProcAddressTable()._addressof_glClientActiveTextureARB;
|
|
||||||
if (var2 == 0L) {
|
|
||||||
throw new GLException("Method \"glClientActiveTexture\" not available");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.dispatch_glClientActiveTexture0(arg0, var2);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void dispatch_glClientActiveTexture0(int arg0, long arg1);
|
|
||||||
|
|
||||||
public native void glColor3ub(byte arg0, byte arg1, byte arg2);
|
|
||||||
|
|
||||||
public native void glColor4f(float arg0, float arg1, float arg2, float arg3);
|
|
||||||
|
|
||||||
private native void glColor4fv1(Object arg0, int arg1);
|
|
||||||
|
|
||||||
public void glColor4fv(float[] arg0, int arg1) {
|
|
||||||
if (arg0 != null && arg0.length <= arg1) {
|
|
||||||
throw new GLException("array offset argument \"v_offset\" (" + arg1 + ") equals or exceeds array length (" + arg0.length + ")");
|
|
||||||
}
|
|
||||||
this.glColor4fv1(arg0, arg1 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void glColor4ub(byte arg0, byte arg1, byte arg2, byte arg3);
|
|
||||||
|
|
||||||
public native void glColorMaterial(int arg0, int arg1);
|
|
||||||
|
|
||||||
public void glColorPointer(int arg0, int arg1, int arg2, Buffer arg3) {
|
|
||||||
this.checkArrayVBODisabled();
|
|
||||||
BufferFactory.rangeCheck(arg3, 1);
|
|
||||||
if (!BufferFactory.isDirect(arg3)) {
|
|
||||||
throw new GLException("Argument \"ptr\" was not a direct buffer");
|
|
||||||
}
|
|
||||||
this.glColorPointer0(arg0, arg1, arg2, arg3, BufferFactory.getDirectBufferByteOffset(arg3));
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glColorPointer0(int arg0, int arg1, int arg2, Object arg3, int arg4);
|
|
||||||
|
|
||||||
public void glColorPointer(int arg0, int arg1, int arg2, long arg3) {
|
|
||||||
this.checkArrayVBOEnabled();
|
|
||||||
this.glColorPointer0(arg0, arg1, arg2, arg3);
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glColorPointer0(int arg0, int arg1, int arg2, long arg3);
|
|
||||||
|
|
||||||
public native void glCopyPixels(int arg0, int arg1, int arg2, int arg3, int arg4);
|
|
||||||
|
|
||||||
public native void glCullFace(int arg0);
|
|
||||||
|
|
||||||
private native void dispatch_glDeleteBuffersARB1(int arg0, Object arg1, int arg2, long arg3);
|
|
||||||
|
|
||||||
public void glDeleteBuffersARB(int arg0, int[] arg1, int arg2) {
|
|
||||||
BufferFactory.rangeCheck(arg1, arg2, arg0);
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"ids_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
}
|
|
||||||
long var4 = this._context.getGLProcAddressTable()._addressof_glDeleteBuffersARB;
|
|
||||||
if (var4 == 0L) {
|
|
||||||
throw new GLException("Method \"glDeleteBuffersARB\" not available");
|
|
||||||
}
|
|
||||||
this.dispatch_glDeleteBuffersARB1(arg0, arg1, arg2 * 4, var4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void glDeleteLists(int arg0, int arg1) {
|
|
||||||
this.glDeleteLists0(arg0, arg1);
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glDeleteLists0(int arg0, int arg1);
|
|
||||||
|
|
||||||
private native void glDeleteTextures1(int arg0, Object arg1, int arg2);
|
|
||||||
|
|
||||||
public void glDeleteTextures(int arg0, int[] arg1, int arg2) {
|
|
||||||
BufferFactory.rangeCheck(arg1, arg2, arg0);
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"textures_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
}
|
|
||||||
this.glDeleteTextures1(arg0, arg1, arg2 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void glDepthFunc(int arg0);
|
|
||||||
|
|
||||||
public native void glDepthMask(boolean arg0);
|
|
||||||
|
|
||||||
public native void glDisable(int arg0);
|
|
||||||
|
|
||||||
public native void glDisableClientState(int arg0);
|
|
||||||
|
|
||||||
public native void glDrawBuffer(int arg0);
|
|
||||||
|
|
||||||
public void glDrawElements(int arg0, int arg1, int arg2, Buffer arg3) {
|
|
||||||
this.checkElementVBODisabled();
|
|
||||||
BufferFactory.rangeCheck(arg3, arg1);
|
|
||||||
boolean var5 = BufferFactory.isDirect(arg3);
|
|
||||||
if (var5) {
|
|
||||||
this.glDrawElements0(arg0, arg1, arg2, arg3, BufferFactory.getDirectBufferByteOffset(arg3));
|
|
||||||
} else {
|
|
||||||
this.glDrawElements1(arg0, arg1, arg2, BufferFactory.getArray(arg3), BufferFactory.getIndirectBufferByteOffset(arg3));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glDrawElements0(int arg0, int arg1, int arg2, Object arg3, int arg4);
|
|
||||||
|
|
||||||
private native void glDrawElements1(int arg0, int arg1, int arg2, Object arg3, int arg4);
|
|
||||||
|
|
||||||
public void glDrawElements(int arg0, int arg1, int arg2, long arg3) {
|
|
||||||
this.checkElementVBOEnabled();
|
|
||||||
this.glDrawElements0(arg0, arg1, arg2, arg3);
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glDrawElements0(int arg0, int arg1, int arg2, long arg3);
|
|
||||||
|
|
||||||
public void glDrawPixels(int arg0, int arg1, int arg2, int arg3, Buffer arg4) {
|
|
||||||
this.checkUnpackPBODisabled();
|
|
||||||
BufferFactory.rangeCheckBytes(arg4, this.imageSizeInBytes(arg2, arg3, arg0, arg1, 1));
|
|
||||||
boolean var6 = BufferFactory.isDirect(arg4);
|
|
||||||
if (var6) {
|
|
||||||
this.glDrawPixels0(arg0, arg1, arg2, arg3, arg4, BufferFactory.getDirectBufferByteOffset(arg4));
|
|
||||||
} else {
|
|
||||||
this.glDrawPixels1(arg0, arg1, arg2, arg3, BufferFactory.getArray(arg4), BufferFactory.getIndirectBufferByteOffset(arg4));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glDrawPixels0(int arg0, int arg1, int arg2, int arg3, Object arg4, int arg5);
|
|
||||||
|
|
||||||
private native void glDrawPixels1(int arg0, int arg1, int arg2, int arg3, Object arg4, int arg5);
|
|
||||||
|
|
||||||
public native void glEnable(int arg0);
|
|
||||||
|
|
||||||
public native void glEnableClientState(int arg0);
|
|
||||||
|
|
||||||
public void glEnd() {
|
|
||||||
this.glEnd0();
|
|
||||||
this.inBeginEndPair = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glEnd0();
|
|
||||||
|
|
||||||
public native void glEndList();
|
|
||||||
|
|
||||||
public native void glFogf(int arg0, float arg1);
|
|
||||||
|
|
||||||
private native void glFogfv1(int arg0, Object arg1, int arg2);
|
|
||||||
|
|
||||||
public void glFogfv(int arg0, float[] arg1, int arg2) {
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"params_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
}
|
|
||||||
this.glFogfv1(arg0, arg1, arg2 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void glFogi(int arg0, int arg1);
|
|
||||||
|
|
||||||
private native void dispatch_glGenBuffersARB1(int arg0, Object arg1, int arg2, long arg3);
|
|
||||||
|
|
||||||
public void glGenBuffersARB(int arg0, int[] arg1, int arg2) {
|
|
||||||
BufferFactory.rangeCheck(arg1, arg2, arg0);
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"ids_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
}
|
|
||||||
long var4 = this._context.getGLProcAddressTable()._addressof_glGenBuffersARB;
|
|
||||||
if (var4 == 0L) {
|
|
||||||
throw new GLException("Method \"glGenBuffersARB\" not available");
|
|
||||||
}
|
|
||||||
this.dispatch_glGenBuffersARB1(arg0, arg1, arg2 * 4, var4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int glGenLists(int arg0) {
|
|
||||||
return this.glGenLists0(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
private native int glGenLists0(int arg0);
|
|
||||||
|
|
||||||
private native void dispatch_glGenProgramsARB1(int arg0, Object arg1, int arg2, long arg3);
|
|
||||||
|
|
||||||
public void glGenProgramsARB(int arg0, int[] arg1, int arg2) {
|
|
||||||
BufferFactory.rangeCheck(arg1, arg2, arg0);
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"ids_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
}
|
|
||||||
long var4 = this._context.getGLProcAddressTable()._addressof_glGenProgramsARB;
|
|
||||||
if (var4 == 0L) {
|
|
||||||
throw new GLException("Method \"glGenProgramsARB\" not available");
|
|
||||||
}
|
|
||||||
this.dispatch_glGenProgramsARB1(arg0, arg1, arg2 * 4, var4);
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glGenTextures1(int arg0, Object arg1, int arg2);
|
|
||||||
|
|
||||||
public void glGenTextures(int arg0, int[] arg1, int arg2) {
|
|
||||||
BufferFactory.rangeCheck(arg1, arg2, arg0);
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"textures_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
}
|
|
||||||
this.glGenTextures1(arg0, arg1, arg2 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void glGetFloatv(int arg0, FloatBuffer arg1) {
|
|
||||||
boolean var3 = BufferFactory.isDirect(arg1);
|
|
||||||
if (var3) {
|
|
||||||
this.glGetFloatv0(arg0, arg1, BufferFactory.getDirectBufferByteOffset(arg1));
|
|
||||||
} else {
|
|
||||||
this.glGetFloatv1(arg0, BufferFactory.getArray(arg1), BufferFactory.getIndirectBufferByteOffset(arg1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glGetFloatv0(int arg0, Object arg1, int arg2);
|
|
||||||
|
|
||||||
private native void glGetFloatv1(int arg0, Object arg1, int arg2);
|
|
||||||
|
|
||||||
public void glGetFloatv(int arg0, float[] arg1, int arg2) {
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"params_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
}
|
|
||||||
this.glGetFloatv1(arg0, arg1, arg2 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glGetIntegerv1(int arg0, Object arg1, int arg2);
|
|
||||||
|
|
||||||
public void glGetIntegerv(int arg0, int[] arg1, int arg2) {
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"params_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
}
|
|
||||||
this.glGetIntegerv1(arg0, arg1, arg2 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native String glGetString(int arg0);
|
|
||||||
|
|
||||||
private native void glGetTexLevelParameteriv1(int arg0, int arg1, int arg2, Object arg3, int arg4);
|
|
||||||
|
|
||||||
public void glGetTexLevelParameteriv(int arg0, int arg1, int arg2, int[] arg3, int arg4) {
|
|
||||||
if (arg3 != null && arg3.length <= arg4) {
|
|
||||||
throw new GLException("array offset argument \"params_offset\" (" + arg4 + ") equals or exceeds array length (" + arg3.length + ")");
|
|
||||||
}
|
|
||||||
this.glGetTexLevelParameteriv1(arg0, arg1, arg2, arg3, arg4 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void glHint(int arg0, int arg1);
|
|
||||||
|
|
||||||
public void glInterleavedArrays(int arg0, int arg1, Buffer arg2) {
|
|
||||||
this.checkArrayVBODisabled();
|
|
||||||
BufferFactory.rangeCheck(arg2, 1);
|
|
||||||
boolean var4 = BufferFactory.isDirect(arg2);
|
|
||||||
if (var4) {
|
|
||||||
this.glInterleavedArrays0(arg0, arg1, arg2, BufferFactory.getDirectBufferByteOffset(arg2));
|
|
||||||
} else {
|
|
||||||
this.glInterleavedArrays1(arg0, arg1, BufferFactory.getArray(arg2), BufferFactory.getIndirectBufferByteOffset(arg2));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glInterleavedArrays0(int arg0, int arg1, Object arg2, int arg3);
|
|
||||||
|
|
||||||
private native void glInterleavedArrays1(int arg0, int arg1, Object arg2, int arg3);
|
|
||||||
|
|
||||||
public void glInterleavedArrays(int arg0, int arg1, long arg2) {
|
|
||||||
this.checkArrayVBOEnabled();
|
|
||||||
this.glInterleavedArrays0(arg0, arg1, arg2);
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glInterleavedArrays0(int arg0, int arg1, long arg2);
|
|
||||||
|
|
||||||
private native void glLightModelfv1(int arg0, Object arg1, int arg2);
|
|
||||||
|
|
||||||
public void glLightModelfv(int arg0, float[] arg1, int arg2) {
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"params_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
}
|
|
||||||
this.glLightModelfv1(arg0, arg1, arg2 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void glLightf(int arg0, int arg1, float arg2);
|
|
||||||
|
|
||||||
private native void glLightfv1(int arg0, int arg1, Object arg2, int arg3);
|
|
||||||
|
|
||||||
public void glLightfv(int arg0, int arg1, float[] arg2, int arg3) {
|
|
||||||
if (arg2 != null && arg2.length <= arg3) {
|
|
||||||
throw new GLException("array offset argument \"params_offset\" (" + arg3 + ") equals or exceeds array length (" + arg2.length + ")");
|
|
||||||
}
|
|
||||||
this.glLightfv1(arg0, arg1, arg2, arg3 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void glLoadIdentity();
|
|
||||||
|
|
||||||
private native void glLoadMatrixf1(Object arg0, int arg1);
|
|
||||||
|
|
||||||
public void glLoadMatrixf(float[] arg0, int arg1) {
|
|
||||||
if (arg0 != null && arg0.length <= arg1) {
|
|
||||||
throw new GLException("array offset argument \"m_offset\" (" + arg1 + ") equals or exceeds array length (" + arg0.length + ")");
|
|
||||||
}
|
|
||||||
this.glLoadMatrixf1(arg0, arg1 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void glMatrixMode(int arg0);
|
|
||||||
|
|
||||||
public void glMultiTexCoord2f(int arg0, float arg1, float arg2) {
|
|
||||||
long var4 = this._context.getGLProcAddressTable()._addressof_glMultiTexCoord2f;
|
|
||||||
if (var4 == 0L) {
|
|
||||||
var4 = this._context.getGLProcAddressTable()._addressof_glMultiTexCoord2fARB;
|
|
||||||
if (var4 == 0L) {
|
|
||||||
throw new GLException("Method \"glMultiTexCoord2f\" not available");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.dispatch_glMultiTexCoord2f0(arg0, arg1, arg2, var4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void dispatch_glMultiTexCoord2f0(int arg0, float arg1, float arg2, long arg3);
|
|
||||||
|
|
||||||
public native void glNewList(int arg0, int arg1);
|
|
||||||
|
|
||||||
public void glNormalPointer(int arg0, int arg1, Buffer arg2) {
|
|
||||||
this.checkArrayVBODisabled();
|
|
||||||
BufferFactory.rangeCheck(arg2, 1);
|
|
||||||
if (!BufferFactory.isDirect(arg2)) {
|
|
||||||
throw new GLException("Argument \"ptr\" was not a direct buffer");
|
|
||||||
}
|
|
||||||
this.glNormalPointer0(arg0, arg1, arg2, BufferFactory.getDirectBufferByteOffset(arg2));
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glNormalPointer0(int arg0, int arg1, Object arg2, int arg3);
|
|
||||||
|
|
||||||
public void glNormalPointer(int arg0, int arg1, long arg2) {
|
|
||||||
this.checkArrayVBOEnabled();
|
|
||||||
this.glNormalPointer0(arg0, arg1, arg2);
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glNormalPointer0(int arg0, int arg1, long arg2);
|
|
||||||
|
|
||||||
public native void glOrtho(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5);
|
|
||||||
|
|
||||||
public native void glPixelStorei(int arg0, int arg1);
|
|
||||||
|
|
||||||
public native void glPixelZoom(float arg0, float arg1);
|
|
||||||
|
|
||||||
public void glPointParameterfARB(int arg0, float arg1) {
|
|
||||||
long var3 = this._context.getGLProcAddressTable()._addressof_glPointParameterfARB;
|
|
||||||
if (var3 == 0L) {
|
|
||||||
throw new GLException("Method \"glPointParameterfARB\" not available");
|
|
||||||
}
|
|
||||||
this.dispatch_glPointParameterfARB0(arg0, arg1, var3);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void dispatch_glPointParameterfARB0(int arg0, float arg1, long arg2);
|
|
||||||
|
|
||||||
private native void dispatch_glPointParameterfvARB1(int arg0, Object arg1, int arg2, long arg3);
|
|
||||||
|
|
||||||
public void glPointParameterfvARB(int arg0, float[] arg1, int arg2) {
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"v_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
}
|
|
||||||
long var4 = this._context.getGLProcAddressTable()._addressof_glPointParameterfvARB;
|
|
||||||
if (var4 == 0L) {
|
|
||||||
throw new GLException("Method \"glPointParameterfvARB\" not available");
|
|
||||||
}
|
|
||||||
this.dispatch_glPointParameterfvARB1(arg0, arg1, arg2 * 4, var4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void glPolygonMode(int arg0, int arg1);
|
|
||||||
|
|
||||||
public native void glPopAttrib();
|
|
||||||
|
|
||||||
public native void glPopMatrix();
|
|
||||||
|
|
||||||
public void glProgramLocalParameter4fARB(int arg0, int arg1, float arg2, float arg3, float arg4, float arg5) {
|
|
||||||
long var7 = this._context.getGLProcAddressTable()._addressof_glProgramLocalParameter4fARB;
|
|
||||||
if (var7 == 0L) {
|
|
||||||
throw new GLException("Method \"glProgramLocalParameter4fARB\" not available");
|
|
||||||
}
|
|
||||||
this.dispatch_glProgramLocalParameter4fARB0(arg0, arg1, arg2, arg3, arg4, arg5, var7);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void dispatch_glProgramLocalParameter4fARB0(int arg0, int arg1, float arg2, float arg3, float arg4, float arg5, long arg6);
|
|
||||||
|
|
||||||
public void glProgramLocalParameter4fvARB(int arg0, int arg1, FloatBuffer arg2) {
|
|
||||||
boolean var4 = BufferFactory.isDirect(arg2);
|
|
||||||
long var5 = this._context.getGLProcAddressTable()._addressof_glProgramLocalParameter4fvARB;
|
|
||||||
if (var5 == 0L) {
|
|
||||||
throw new GLException("Method \"glProgramLocalParameter4fvARB\" not available");
|
|
||||||
} else if (var4) {
|
|
||||||
this.dispatch_glProgramLocalParameter4fvARB0(arg0, arg1, arg2, BufferFactory.getDirectBufferByteOffset(arg2), var5);
|
|
||||||
} else {
|
|
||||||
this.dispatch_glProgramLocalParameter4fvARB1(arg0, arg1, BufferFactory.getArray(arg2), BufferFactory.getIndirectBufferByteOffset(arg2), var5);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void dispatch_glProgramLocalParameter4fvARB0(int arg0, int arg1, Object arg2, int arg3, long arg4);
|
|
||||||
|
|
||||||
private native void dispatch_glProgramLocalParameter4fvARB1(int arg0, int arg1, Object arg2, int arg3, long arg4);
|
|
||||||
|
|
||||||
public void glProgramLocalParameter4fvARB(int arg0, int arg1, float[] arg2, int arg3) {
|
|
||||||
if (arg2 != null && arg2.length <= arg3) {
|
|
||||||
throw new GLException("array offset argument \"params_offset\" (" + arg3 + ") equals or exceeds array length (" + arg2.length + ")");
|
|
||||||
}
|
|
||||||
long var5 = this._context.getGLProcAddressTable()._addressof_glProgramLocalParameter4fvARB;
|
|
||||||
if (var5 == 0L) {
|
|
||||||
throw new GLException("Method \"glProgramLocalParameter4fvARB\" not available");
|
|
||||||
}
|
|
||||||
this.dispatch_glProgramLocalParameter4fvARB1(arg0, arg1, arg2, arg3 * 4, var5);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void glProgramStringARB(int arg0, int arg1, int arg2, String arg3) {
|
|
||||||
long var5 = this._context.getGLProcAddressTable()._addressof_glProgramStringARB;
|
|
||||||
if (var5 == 0L) {
|
|
||||||
throw new GLException("Method \"glProgramStringARB\" not available");
|
|
||||||
}
|
|
||||||
this.dispatch_glProgramStringARB0(arg0, arg1, arg2, arg3, var5);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void dispatch_glProgramStringARB0(int arg0, int arg1, int arg2, String arg3, long arg4);
|
|
||||||
|
|
||||||
public native void glPushAttrib(int arg0);
|
|
||||||
|
|
||||||
public native void glPushMatrix();
|
|
||||||
|
|
||||||
public native void glRasterPos2i(int arg0, int arg1);
|
|
||||||
|
|
||||||
public native void glReadBuffer(int arg0);
|
|
||||||
|
|
||||||
public native void glRotatef(float arg0, float arg1, float arg2, float arg3);
|
|
||||||
|
|
||||||
public native void glScalef(float arg0, float arg1, float arg2);
|
|
||||||
|
|
||||||
public native void glScissor(int arg0, int arg1, int arg2, int arg3);
|
|
||||||
|
|
||||||
public native void glShadeModel(int arg0);
|
|
||||||
|
|
||||||
public native void glTexCoord2f(float arg0, float arg1);
|
|
||||||
|
|
||||||
public void glTexCoordPointer(int arg0, int arg1, int arg2, Buffer arg3) {
|
|
||||||
this.checkArrayVBODisabled();
|
|
||||||
BufferFactory.rangeCheck(arg3, 1);
|
|
||||||
if (!BufferFactory.isDirect(arg3)) {
|
|
||||||
throw new GLException("Argument \"ptr\" was not a direct buffer");
|
|
||||||
}
|
|
||||||
this.glTexCoordPointer0(arg0, arg1, arg2, arg3, BufferFactory.getDirectBufferByteOffset(arg3));
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glTexCoordPointer0(int arg0, int arg1, int arg2, Object arg3, int arg4);
|
|
||||||
|
|
||||||
public void glTexCoordPointer(int arg0, int arg1, int arg2, long arg3) {
|
|
||||||
this.checkArrayVBOEnabled();
|
|
||||||
this.glTexCoordPointer0(arg0, arg1, arg2, arg3);
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glTexCoordPointer0(int arg0, int arg1, int arg2, long arg3);
|
|
||||||
|
|
||||||
public native void glTexEnvf(int arg0, int arg1, float arg2);
|
|
||||||
|
|
||||||
private native void glTexEnvfv1(int arg0, int arg1, Object arg2, int arg3);
|
|
||||||
|
|
||||||
public void glTexEnvfv(int arg0, int arg1, float[] arg2, int arg3) {
|
|
||||||
if (arg2 != null && arg2.length <= arg3) {
|
|
||||||
throw new GLException("array offset argument \"params_offset\" (" + arg3 + ") equals or exceeds array length (" + arg2.length + ")");
|
|
||||||
}
|
|
||||||
this.glTexEnvfv1(arg0, arg1, arg2, arg3 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void glTexEnvi(int arg0, int arg1, int arg2);
|
|
||||||
|
|
||||||
private native void glTexGenfv1(int arg0, int arg1, Object arg2, int arg3);
|
|
||||||
|
|
||||||
public void glTexGenfv(int arg0, int arg1, float[] arg2, int arg3) {
|
|
||||||
if (arg2 != null && arg2.length <= arg3) {
|
|
||||||
throw new GLException("array offset argument \"params_offset\" (" + arg3 + ") equals or exceeds array length (" + arg2.length + ")");
|
|
||||||
}
|
|
||||||
this.glTexGenfv1(arg0, arg1, arg2, arg3 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native void glTexGeni(int arg0, int arg1, int arg2);
|
|
||||||
|
|
||||||
public void glTexImage1D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, Buffer arg7) {
|
|
||||||
this.checkUnpackPBODisabled();
|
|
||||||
BufferFactory.rangeCheckBytes(arg7, this.imageSizeInBytes(arg5, arg6, arg3, 1, 1));
|
|
||||||
boolean var9 = BufferFactory.isDirect(arg7);
|
|
||||||
if (var9) {
|
|
||||||
this.glTexImage1D0(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, BufferFactory.getDirectBufferByteOffset(arg7));
|
|
||||||
} else {
|
|
||||||
this.glTexImage1D1(arg0, arg1, arg2, arg3, arg4, arg5, arg6, BufferFactory.getArray(arg7), BufferFactory.getIndirectBufferByteOffset(arg7));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glTexImage1D0(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, Object arg7, int arg8);
|
|
||||||
|
|
||||||
private native void glTexImage1D1(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, Object arg7, int arg8);
|
|
||||||
|
|
||||||
public void glTexImage2D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, Buffer arg8) {
|
|
||||||
this.checkUnpackPBODisabled();
|
|
||||||
BufferFactory.rangeCheckBytes(arg8, this.imageSizeInBytes(arg6, arg7, arg3, arg4, 1));
|
|
||||||
boolean var10 = BufferFactory.isDirect(arg8);
|
|
||||||
if (var10) {
|
|
||||||
this.glTexImage2D0(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, BufferFactory.getDirectBufferByteOffset(arg8));
|
|
||||||
} else {
|
|
||||||
this.glTexImage2D1(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, BufferFactory.getArray(arg8), BufferFactory.getIndirectBufferByteOffset(arg8));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glTexImage2D0(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, Object arg8, int arg9);
|
|
||||||
|
|
||||||
private native void glTexImage2D1(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, Object arg8, int arg9);
|
|
||||||
|
|
||||||
public void glTexImage3D(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, Buffer arg9) {
|
|
||||||
this.checkUnpackPBODisabled();
|
|
||||||
BufferFactory.rangeCheckBytes(arg9, this.imageSizeInBytes(arg7, arg8, arg3, arg4, arg5));
|
|
||||||
boolean var11 = BufferFactory.isDirect(arg9);
|
|
||||||
long var12 = this._context.getGLProcAddressTable()._addressof_glTexImage3D;
|
|
||||||
if (var12 == 0L) {
|
|
||||||
var12 = this._context.getGLProcAddressTable()._addressof_glTexImage3DEXT;
|
|
||||||
if (var12 == 0L) {
|
|
||||||
throw new GLException("Method \"glTexImage3D\" not available");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (var11) {
|
|
||||||
this.dispatch_glTexImage3D0(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, BufferFactory.getDirectBufferByteOffset(arg9), var12);
|
|
||||||
} else {
|
|
||||||
this.dispatch_glTexImage3D1(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, BufferFactory.getArray(arg9), BufferFactory.getIndirectBufferByteOffset(arg9), var12);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void dispatch_glTexImage3D0(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, Object arg9, int arg10, long arg11);
|
|
||||||
|
|
||||||
private native void dispatch_glTexImage3D1(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, Object arg9, int arg10, long arg11);
|
|
||||||
|
|
||||||
public native void glTexParameteri(int arg0, int arg1, int arg2);
|
|
||||||
|
|
||||||
public native void glTranslatef(float arg0, float arg1, float arg2);
|
|
||||||
|
|
||||||
public native void glVertex2f(float arg0, float arg1);
|
|
||||||
|
|
||||||
public void glVertexPointer(int arg0, int arg1, int arg2, Buffer arg3) {
|
|
||||||
this.checkArrayVBODisabled();
|
|
||||||
BufferFactory.rangeCheck(arg3, 1);
|
|
||||||
if (!BufferFactory.isDirect(arg3)) {
|
|
||||||
throw new GLException("Argument \"ptr\" was not a direct buffer");
|
|
||||||
}
|
|
||||||
this.glVertexPointer0(arg0, arg1, arg2, arg3, BufferFactory.getDirectBufferByteOffset(arg3));
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glVertexPointer0(int arg0, int arg1, int arg2, Object arg3, int arg4);
|
|
||||||
|
|
||||||
public void glVertexPointer(int arg0, int arg1, int arg2, long arg3) {
|
|
||||||
this.checkArrayVBOEnabled();
|
|
||||||
this.glVertexPointer0(arg0, arg1, arg2, arg3);
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void glVertexPointer0(int arg0, int arg1, int arg2, long arg3);
|
|
||||||
|
|
||||||
public native void glViewport(int arg0, int arg1, int arg2, int arg3);
|
|
||||||
|
|
||||||
public GLImpl(GLContextImpl arg0) {
|
|
||||||
this._context = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isExtensionAvailable(String arg0) {
|
|
||||||
return this._context.isExtensionAvailable(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSwapInterval(int arg0) {
|
|
||||||
this._context.setSwapInterval(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
private int imageSizeInBytes(int arg0, int arg1, int arg2, int arg3, int arg4) {
|
|
||||||
boolean var6 = false;
|
|
||||||
boolean var7 = false;
|
|
||||||
if (arg2 < 0) {
|
|
||||||
return 0;
|
|
||||||
} else if (arg3 < 0) {
|
|
||||||
return 0;
|
|
||||||
} else if (arg4 < 0) {
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
byte var8;
|
|
||||||
switch(arg0) {
|
|
||||||
case 6400:
|
|
||||||
case 6401:
|
|
||||||
var8 = 1;
|
|
||||||
break;
|
|
||||||
case 6402:
|
|
||||||
case 6403:
|
|
||||||
case 6404:
|
|
||||||
case 6405:
|
|
||||||
case 6406:
|
|
||||||
case 6409:
|
|
||||||
var8 = 1;
|
|
||||||
break;
|
|
||||||
case 6407:
|
|
||||||
case 32992:
|
|
||||||
var8 = 3;
|
|
||||||
break;
|
|
||||||
case 6408:
|
|
||||||
case 32768:
|
|
||||||
case 32993:
|
|
||||||
var8 = 4;
|
|
||||||
break;
|
|
||||||
case 6410:
|
|
||||||
var8 = 2;
|
|
||||||
break;
|
|
||||||
case 34548:
|
|
||||||
var8 = 2;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
byte var9;
|
|
||||||
switch(arg1) {
|
|
||||||
case 5120:
|
|
||||||
case 5121:
|
|
||||||
var9 = 1;
|
|
||||||
break;
|
|
||||||
case 5122:
|
|
||||||
case 5123:
|
|
||||||
var9 = 2;
|
|
||||||
break;
|
|
||||||
case 5124:
|
|
||||||
case 5125:
|
|
||||||
case 5126:
|
|
||||||
var9 = 4;
|
|
||||||
break;
|
|
||||||
case 6656:
|
|
||||||
if (arg0 == 6400) {
|
|
||||||
return arg4 * arg3 * ((arg2 + 7) / 8);
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
case 32818:
|
|
||||||
case 33634:
|
|
||||||
var9 = 1;
|
|
||||||
var8 = 1;
|
|
||||||
break;
|
|
||||||
case 32819:
|
|
||||||
case 32820:
|
|
||||||
case 33635:
|
|
||||||
case 33636:
|
|
||||||
case 33637:
|
|
||||||
case 33638:
|
|
||||||
var9 = 2;
|
|
||||||
var8 = 1;
|
|
||||||
break;
|
|
||||||
case 32821:
|
|
||||||
case 32822:
|
|
||||||
case 33639:
|
|
||||||
case 33640:
|
|
||||||
var9 = 4;
|
|
||||||
var8 = 1;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return var8 * var9 * arg2 * arg3 * arg4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void initBufferObjectExtensionChecks() {
|
|
||||||
if (this.bufferObjectExtensionsInitialized) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.bufferObjectExtensionsInitialized = true;
|
|
||||||
this.haveARBPixelBufferObject = this.isExtensionAvailable("GL_ARB_pixel_buffer_object");
|
|
||||||
this.haveEXTPixelBufferObject = this.isExtensionAvailable("GL_EXT_pixel_buffer_object");
|
|
||||||
this.haveGL15 = this.isExtensionAvailable("GL_VERSION_1_5");
|
|
||||||
this.haveGL21 = this.isExtensionAvailable("GL_VERSION_2_1");
|
|
||||||
this.haveARBVertexBufferObject = this.isExtensionAvailable("GL_ARB_vertex_buffer_object");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkBufferObject(boolean arg0, boolean arg1, boolean arg2, boolean arg3, int arg4, String arg5) {
|
|
||||||
if (this.inBeginEndPair) {
|
|
||||||
throw new GLException("May not call this between glBegin and glEnd");
|
|
||||||
}
|
|
||||||
boolean var7 = arg0 || arg1 || arg2;
|
|
||||||
if (!var7 && arg3) {
|
|
||||||
throw new GLException("Required extensions not available to call this function");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkUnpackPBODisabled() {
|
|
||||||
this.initBufferObjectExtensionChecks();
|
|
||||||
this.checkBufferObject(this.haveARBPixelBufferObject, this.haveEXTPixelBufferObject, this.haveGL21, false, 35052, "unpack pixel_buffer_object");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkArrayVBODisabled() {
|
|
||||||
this.initBufferObjectExtensionChecks();
|
|
||||||
this.checkBufferObject(this.haveGL15, this.haveARBVertexBufferObject, false, false, 34962, "array vertex_buffer_object");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkArrayVBOEnabled() {
|
|
||||||
this.initBufferObjectExtensionChecks();
|
|
||||||
this.checkBufferObject(this.haveGL15, this.haveARBVertexBufferObject, false, true, 34962, "array vertex_buffer_object");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkElementVBODisabled() {
|
|
||||||
this.initBufferObjectExtensionChecks();
|
|
||||||
this.checkBufferObject(this.haveGL15, this.haveARBVertexBufferObject, false, false, 34963, "element vertex_buffer_object");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkElementVBOEnabled() {
|
|
||||||
this.initBufferObjectExtensionChecks();
|
|
||||||
this.checkBufferObject(this.haveGL15, this.haveARBVertexBufferObject, false, true, 34963, "element vertex_buffer_object");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,85 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import com.sun.gluegen.runtime.BufferFactory;
|
|
||||||
import com.sun.gluegen.runtime.CPU;
|
|
||||||
import com.sun.gluegen.runtime.StructAccessor;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
import java.nio.ByteOrder;
|
|
||||||
import java.security.AccessController;
|
|
||||||
import java.security.PrivilegedAction;
|
|
||||||
|
|
||||||
public abstract class JAWT {
|
|
||||||
|
|
||||||
StructAccessor accessor;
|
|
||||||
|
|
||||||
private static volatile JAWT jawt;
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return CPU.is32Bit() ? JAWT32.size() : JAWT64.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static JAWT create() {
|
|
||||||
return create(BufferFactory.newDirectByteBuffer(size()));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static JAWT create(ByteBuffer arg0) {
|
|
||||||
return CPU.is32Bit() ? new JAWT32(arg0) : new JAWT64(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
JAWT(ByteBuffer arg0) {
|
|
||||||
this.accessor = new StructAccessor(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ByteBuffer getBuffer() {
|
|
||||||
return this.accessor.getBuffer();
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract JAWT version(int arg0);
|
|
||||||
|
|
||||||
public JAWT_DrawingSurface GetDrawingSurface(Object arg0) {
|
|
||||||
ByteBuffer var2 = this.GetDrawingSurface0(this.getBuffer(), arg0);
|
|
||||||
return var2 == null ? null : JAWT_DrawingSurface.create(var2.order(ByteOrder.nativeOrder()));
|
|
||||||
}
|
|
||||||
|
|
||||||
private native ByteBuffer GetDrawingSurface0(ByteBuffer arg0, Object arg1);
|
|
||||||
|
|
||||||
public void FreeDrawingSurface(JAWT_DrawingSurface arg0) {
|
|
||||||
this.FreeDrawingSurface0(this.getBuffer(), arg0 == null ? null : arg0.getBuffer());
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void FreeDrawingSurface0(ByteBuffer arg0, ByteBuffer arg1);
|
|
||||||
|
|
||||||
public void Lock() {
|
|
||||||
this.Lock0(this.getBuffer());
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void Lock0(ByteBuffer arg0);
|
|
||||||
|
|
||||||
public void Unlock() {
|
|
||||||
this.Unlock0(this.getBuffer());
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void Unlock0(ByteBuffer arg0);
|
|
||||||
|
|
||||||
public static JAWT getJAWT() {
|
|
||||||
if (jawt == null) {
|
|
||||||
synchronized (JAWT.class) {
|
|
||||||
if (jawt == null) {
|
|
||||||
AccessController.doPrivileged(new PrivilegedAction() {
|
|
||||||
|
|
||||||
public Object run() {
|
|
||||||
JAWT var1 = JAWT.create();
|
|
||||||
var1.version(65540);
|
|
||||||
if (!JAWTFactory.JAWT_GetAWT(var1)) {
|
|
||||||
throw new RuntimeException("Unable to initialize JAWT");
|
|
||||||
}
|
|
||||||
JAWT.jawt = var1;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return jawt;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class JAWT32 extends JAWT {
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return 24;
|
|
||||||
}
|
|
||||||
|
|
||||||
JAWT32(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public JAWT version(int arg0) {
|
|
||||||
this.accessor.setIntAt(0, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class JAWT64 extends JAWT {
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return 48;
|
|
||||||
}
|
|
||||||
|
|
||||||
JAWT64(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public JAWT version(int arg0) {
|
|
||||||
this.accessor.setIntAt(0, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class JAWTFactory {
|
|
||||||
|
|
||||||
public static boolean JAWT_GetAWT(JAWT arg0) {
|
|
||||||
return JAWT_GetAWT0(arg0 == null ? null : arg0.getBuffer());
|
|
||||||
}
|
|
||||||
|
|
||||||
private static native boolean JAWT_GetAWT0(ByteBuffer arg0);
|
|
||||||
}
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import com.sun.gluegen.runtime.CPU;
|
|
||||||
import com.sun.gluegen.runtime.StructAccessor;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
import java.nio.ByteOrder;
|
|
||||||
|
|
||||||
public abstract class JAWT_DrawingSurface {
|
|
||||||
|
|
||||||
StructAccessor accessor;
|
|
||||||
|
|
||||||
public static JAWT_DrawingSurface create(ByteBuffer arg0) {
|
|
||||||
return CPU.is32Bit() ? new JAWT_DrawingSurface32(arg0) : new JAWT_DrawingSurface64(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
JAWT_DrawingSurface(ByteBuffer arg0) {
|
|
||||||
this.accessor = new StructAccessor(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ByteBuffer getBuffer() {
|
|
||||||
return this.accessor.getBuffer();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Lock() {
|
|
||||||
return this.Lock0(this.getBuffer());
|
|
||||||
}
|
|
||||||
|
|
||||||
private native int Lock0(ByteBuffer arg0);
|
|
||||||
|
|
||||||
public JAWT_DrawingSurfaceInfo GetDrawingSurfaceInfo() {
|
|
||||||
ByteBuffer var1 = this.GetDrawingSurfaceInfo0(this.getBuffer());
|
|
||||||
return var1 == null ? null : JAWT_DrawingSurfaceInfo.create(var1.order(ByteOrder.nativeOrder()));
|
|
||||||
}
|
|
||||||
|
|
||||||
private native ByteBuffer GetDrawingSurfaceInfo0(ByteBuffer arg0);
|
|
||||||
|
|
||||||
public void FreeDrawingSurfaceInfo(JAWT_DrawingSurfaceInfo arg0) {
|
|
||||||
this.FreeDrawingSurfaceInfo0(this.getBuffer(), arg0 == null ? null : arg0.getBuffer());
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void FreeDrawingSurfaceInfo0(ByteBuffer arg0, ByteBuffer arg1);
|
|
||||||
|
|
||||||
public void Unlock() {
|
|
||||||
this.Unlock0(this.getBuffer());
|
|
||||||
}
|
|
||||||
|
|
||||||
private native void Unlock0(ByteBuffer arg0);
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class JAWT_DrawingSurface32 extends JAWT_DrawingSurface {
|
|
||||||
|
|
||||||
JAWT_DrawingSurface32(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class JAWT_DrawingSurface64 extends JAWT_DrawingSurface {
|
|
||||||
|
|
||||||
JAWT_DrawingSurface64(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,63 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import com.sun.gluegen.runtime.CPU;
|
|
||||||
import com.sun.gluegen.runtime.StructAccessor;
|
|
||||||
import java.lang.reflect.Method;
|
|
||||||
import java.nio.Buffer;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
import java.security.AccessController;
|
|
||||||
import java.security.PrivilegedAction;
|
|
||||||
|
|
||||||
public abstract class JAWT_DrawingSurfaceInfo {
|
|
||||||
|
|
||||||
StructAccessor accessor;
|
|
||||||
|
|
||||||
private static Method platformInfoFactoryMethod;
|
|
||||||
|
|
||||||
public static JAWT_DrawingSurfaceInfo create(ByteBuffer arg0) {
|
|
||||||
return CPU.is32Bit() ? new JAWT_DrawingSurfaceInfo32(arg0) : new JAWT_DrawingSurfaceInfo64(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
JAWT_DrawingSurfaceInfo(ByteBuffer arg0) {
|
|
||||||
this.accessor = new StructAccessor(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ByteBuffer getBuffer() {
|
|
||||||
return this.accessor.getBuffer();
|
|
||||||
}
|
|
||||||
|
|
||||||
public JAWT_PlatformInfo platformInfo() {
|
|
||||||
return newPlatformInfo(this.platformInfo0(this.getBuffer()));
|
|
||||||
}
|
|
||||||
|
|
||||||
private native ByteBuffer platformInfo0(Buffer arg0);
|
|
||||||
|
|
||||||
private static JAWT_PlatformInfo newPlatformInfo(ByteBuffer arg0) {
|
|
||||||
if (platformInfoFactoryMethod == null) {
|
|
||||||
String var1 = (String) AccessController.doPrivileged(new PrivilegedAction() {
|
|
||||||
|
|
||||||
public Object run() {
|
|
||||||
return System.getProperty("os.name").toLowerCase();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
try {
|
|
||||||
Class var2;
|
|
||||||
if (var1.startsWith("wind")) {
|
|
||||||
var2 = Class.forName("com.sun.opengl.impl.windows.JAWT_Win32DrawingSurfaceInfo");
|
|
||||||
} else if (var1.startsWith("mac os x")) {
|
|
||||||
var2 = Class.forName("com.sun.opengl.impl.macosx.JAWT_MacOSXDrawingSurfaceInfo");
|
|
||||||
} else {
|
|
||||||
var2 = Class.forName("com.sun.opengl.impl.x11.JAWT_X11DrawingSurfaceInfo");
|
|
||||||
}
|
|
||||||
platformInfoFactoryMethod = var2.getMethod("create", ByteBuffer.class);
|
|
||||||
} catch (Exception var4) {
|
|
||||||
throw new RuntimeException(var4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
return (JAWT_PlatformInfo) platformInfoFactoryMethod.invoke(null, arg0);
|
|
||||||
} catch (Exception var3) {
|
|
||||||
throw new RuntimeException(var3);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class JAWT_DrawingSurfaceInfo32 extends JAWT_DrawingSurfaceInfo {
|
|
||||||
|
|
||||||
JAWT_DrawingSurfaceInfo32(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class JAWT_DrawingSurfaceInfo64 extends JAWT_DrawingSurfaceInfo {
|
|
||||||
|
|
||||||
JAWT_DrawingSurfaceInfo64(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
package com.sun.opengl.impl;
|
|
||||||
|
|
||||||
public interface JAWT_PlatformInfo {
|
|
||||||
}
|
|
||||||
|
|
@ -1,55 +0,0 @@
|
||||||
package com.sun.opengl.impl.macosx;
|
|
||||||
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public class CGL {
|
|
||||||
|
|
||||||
public static native boolean clearCurrentContext(long arg0);
|
|
||||||
|
|
||||||
private static native long createContext1(long arg0, long arg1, long arg2, Object arg3, int arg4);
|
|
||||||
|
|
||||||
public static long createContext(long arg0, long arg1, long arg2, int[] arg3, int arg4) {
|
|
||||||
if (arg3 != null && arg3.length <= arg4) {
|
|
||||||
throw new GLException("array offset argument \"viewNotReady_offset\" (" + arg4 + ") equals or exceeds array length (" + arg3.length + ")");
|
|
||||||
}
|
|
||||||
return createContext1(arg0, arg1, arg2, arg3, arg4 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static native long createPixelFormat1(Object arg0, int arg1, int arg2, Object arg3, int arg4);
|
|
||||||
|
|
||||||
public static long createPixelFormat(int[] arg0, int arg1, int arg2, int[] arg3, int arg4) {
|
|
||||||
if (arg0 != null && arg0.length <= arg1) {
|
|
||||||
throw new GLException("array offset argument \"iattrs_offset\" (" + arg1 + ") equals or exceeds array length (" + arg0.length + ")");
|
|
||||||
} else if (arg3 == null || arg3.length > arg4) {
|
|
||||||
return createPixelFormat1(arg0, arg1 * 4, arg2, arg3, arg4 * 4);
|
|
||||||
} else {
|
|
||||||
throw new GLException("array offset argument \"ivalues_offset\" (" + arg4 + ") equals or exceeds array length (" + arg3.length + ")");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static native boolean deleteContext(long arg0);
|
|
||||||
|
|
||||||
public static native void deletePixelFormat(long arg0);
|
|
||||||
|
|
||||||
public static native boolean flushBuffer(long arg0);
|
|
||||||
|
|
||||||
public static native long getProcAddress(String arg0);
|
|
||||||
|
|
||||||
public static native boolean makeCurrentContext(long arg0);
|
|
||||||
|
|
||||||
private static native void queryPixelFormat1(long arg0, Object arg1, int arg2, int arg3, Object arg4, int arg5);
|
|
||||||
|
|
||||||
public static void queryPixelFormat(long arg0, int[] arg1, int arg2, int arg3, int[] arg4, int arg5) {
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"iattrs_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
} else if (arg4 == null || arg4.length > arg5) {
|
|
||||||
queryPixelFormat1(arg0, arg1, arg2 * 4, arg3, arg4, arg5 * 4);
|
|
||||||
} else {
|
|
||||||
throw new GLException("array offset argument \"ivalues_offset\" (" + arg5 + ") equals or exceeds array length (" + arg4.length + ")");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static native void setSwapInterval(long arg0, int arg1);
|
|
||||||
|
|
||||||
public static native void updateContext(long arg0);
|
|
||||||
}
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
package com.sun.opengl.impl.macosx;
|
|
||||||
|
|
||||||
import com.sun.gluegen.runtime.BufferFactory;
|
|
||||||
import com.sun.gluegen.runtime.CPU;
|
|
||||||
import com.sun.gluegen.runtime.StructAccessor;
|
|
||||||
import com.sun.opengl.impl.JAWT_PlatformInfo;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public abstract class JAWT_MacOSXDrawingSurfaceInfo implements JAWT_PlatformInfo {
|
|
||||||
|
|
||||||
StructAccessor accessor;
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return CPU.is32Bit() ? JAWT_MacOSXDrawingSurfaceInfo32.size() : JAWT_MacOSXDrawingSurfaceInfo64.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static JAWT_MacOSXDrawingSurfaceInfo create() {
|
|
||||||
return create(BufferFactory.newDirectByteBuffer(size()));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static JAWT_MacOSXDrawingSurfaceInfo create(ByteBuffer arg0) {
|
|
||||||
return CPU.is32Bit() ? new JAWT_MacOSXDrawingSurfaceInfo32(arg0) : new JAWT_MacOSXDrawingSurfaceInfo64(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
JAWT_MacOSXDrawingSurfaceInfo(ByteBuffer arg0) {
|
|
||||||
this.accessor = new StructAccessor(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract long cocoaViewRef();
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
package com.sun.opengl.impl.macosx;
|
|
||||||
|
|
||||||
import com.sun.opengl.impl.JAWT_PlatformInfo;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class JAWT_MacOSXDrawingSurfaceInfo32 extends JAWT_MacOSXDrawingSurfaceInfo implements JAWT_PlatformInfo {
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
JAWT_MacOSXDrawingSurfaceInfo32(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public long cocoaViewRef() {
|
|
||||||
return (long) this.accessor.getIntAt(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
package com.sun.opengl.impl.macosx;
|
|
||||||
|
|
||||||
import com.sun.opengl.impl.JAWT_PlatformInfo;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class JAWT_MacOSXDrawingSurfaceInfo64 extends JAWT_MacOSXDrawingSurfaceInfo implements JAWT_PlatformInfo {
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return 8;
|
|
||||||
}
|
|
||||||
|
|
||||||
JAWT_MacOSXDrawingSurfaceInfo64(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public long cocoaViewRef() {
|
|
||||||
return this.accessor.getLongAt(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,186 +0,0 @@
|
||||||
package com.sun.opengl.impl.macosx;
|
|
||||||
|
|
||||||
import com.sun.opengl.impl.GLContextImpl;
|
|
||||||
import javax.media.opengl.GLCapabilities;
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public abstract class MacOSXGLContext extends GLContextImpl {
|
|
||||||
|
|
||||||
protected MacOSXGLDrawable drawable;
|
|
||||||
|
|
||||||
protected long nsContext;
|
|
||||||
|
|
||||||
public MacOSXGLContext(MacOSXGLDrawable arg0) {
|
|
||||||
this.drawable = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected String mapToRealGLExtensionName(String arg0) {
|
|
||||||
return arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected abstract boolean create();
|
|
||||||
|
|
||||||
protected boolean create(boolean arg0, boolean arg1) {
|
|
||||||
long var3 = 0L;
|
|
||||||
int[] var5 = new int[1];
|
|
||||||
GLCapabilities var6 = this.drawable.getCapabilities();
|
|
||||||
int[] var7 = new int[128];
|
|
||||||
int[] var8 = new int[128];
|
|
||||||
int var9 = 0;
|
|
||||||
if (arg0) {
|
|
||||||
var7[var9] = 90;
|
|
||||||
var8[var9] = 1;
|
|
||||||
var9++;
|
|
||||||
}
|
|
||||||
if (arg1) {
|
|
||||||
var7[var9] = 58;
|
|
||||||
var8[var9] = 1;
|
|
||||||
var9++;
|
|
||||||
}
|
|
||||||
var7[var9] = 5;
|
|
||||||
var8[var9] = var6.getDoubleBuffered() ? 1 : 0;
|
|
||||||
var9++;
|
|
||||||
var7[var9] = 6;
|
|
||||||
var8[var9] = var6.getStereo() ? 1 : 0;
|
|
||||||
var9++;
|
|
||||||
var7[var9] = 8;
|
|
||||||
var8[var9] = var6.getRedBits() + var6.getGreenBits() + var6.getBlueBits();
|
|
||||||
var9++;
|
|
||||||
var7[var9] = 11;
|
|
||||||
var8[var9] = var6.getAlphaBits();
|
|
||||||
var9++;
|
|
||||||
var7[var9] = 12;
|
|
||||||
var8[var9] = var6.getDepthBits();
|
|
||||||
var9++;
|
|
||||||
var7[var9] = 14;
|
|
||||||
var8[var9] = var6.getAccumRedBits() + var6.getAccumGreenBits() + var6.getAccumBlueBits() + var6.getAccumAlphaBits();
|
|
||||||
var9++;
|
|
||||||
var7[var9] = 13;
|
|
||||||
var8[var9] = var6.getStencilBits();
|
|
||||||
var9++;
|
|
||||||
if (var6.getSampleBuffers()) {
|
|
||||||
var7[var9] = 55;
|
|
||||||
var8[var9] = 1;
|
|
||||||
var9++;
|
|
||||||
var7[var9] = 56;
|
|
||||||
var8[var9] = var6.getNumSamples();
|
|
||||||
var9++;
|
|
||||||
}
|
|
||||||
long var10 = CGL.createPixelFormat(var7, 0, var9, var8, 0);
|
|
||||||
if (var10 == 0L) {
|
|
||||||
throw new GLException("Unable to allocate pixel format with requested GLCapabilities");
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
this.nsContext = CGL.createContext(var3, this.drawable.getView(), var10, var5, 0);
|
|
||||||
if (this.nsContext == 0L) {
|
|
||||||
if (var5[0] == 1) {
|
|
||||||
boolean var19 = false;
|
|
||||||
return var19;
|
|
||||||
}
|
|
||||||
throw new GLException("Error creating NSOpenGLContext with requested pixel format");
|
|
||||||
}
|
|
||||||
if (this.drawable.getChosenGLCapabilities() == null) {
|
|
||||||
GLCapabilities var12 = new GLCapabilities();
|
|
||||||
CGL.queryPixelFormat(var10, var7, 0, var9, var8, 0);
|
|
||||||
for (int var13 = 0; var13 < var9; var13++) {
|
|
||||||
int var14 = var7[var13];
|
|
||||||
int var15;
|
|
||||||
switch(var14) {
|
|
||||||
case 5:
|
|
||||||
var12.setDoubleBuffered(var8[var13] != 0);
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
var12.setStereo(var8[var13] != 0);
|
|
||||||
break;
|
|
||||||
case 8:
|
|
||||||
var15 = var8[var13];
|
|
||||||
if (var15 == 32) {
|
|
||||||
var15 = 24;
|
|
||||||
}
|
|
||||||
var15 /= 3;
|
|
||||||
var12.setRedBits(var15);
|
|
||||||
var12.setGreenBits(var15);
|
|
||||||
var12.setBlueBits(var15);
|
|
||||||
break;
|
|
||||||
case 11:
|
|
||||||
var12.setAlphaBits(var8[var13]);
|
|
||||||
break;
|
|
||||||
case 12:
|
|
||||||
var12.setDepthBits(var8[var13]);
|
|
||||||
break;
|
|
||||||
case 13:
|
|
||||||
var12.setStencilBits(var8[var13]);
|
|
||||||
break;
|
|
||||||
case 14:
|
|
||||||
var15 = var8[var13] / 4;
|
|
||||||
var12.setAccumRedBits(var15);
|
|
||||||
var12.setAccumGreenBits(var15);
|
|
||||||
var12.setAccumBlueBits(var15);
|
|
||||||
var12.setAccumAlphaBits(var15);
|
|
||||||
break;
|
|
||||||
case 55:
|
|
||||||
var12.setSampleBuffers(var8[var13] != 0);
|
|
||||||
break;
|
|
||||||
case 56:
|
|
||||||
var12.setNumSamples(var8[var13]);
|
|
||||||
break;
|
|
||||||
case 58:
|
|
||||||
var12.setPbufferFloatingPointBuffers(var8[var13] != 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.drawable.setChosenGLCapabilities(var12);
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
CGL.deletePixelFormat(var10);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected int makeCurrentImpl() throws GLException {
|
|
||||||
boolean var1 = false;
|
|
||||||
if (this.nsContext == 0L) {
|
|
||||||
if (!this.create()) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
var1 = true;
|
|
||||||
}
|
|
||||||
if (!CGL.makeCurrentContext(this.nsContext)) {
|
|
||||||
throw new GLException("Error making nsContext current");
|
|
||||||
} else if (var1) {
|
|
||||||
this.resetGLFunctionAvailability();
|
|
||||||
return 2;
|
|
||||||
} else {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void releaseImpl() throws GLException {
|
|
||||||
if (!CGL.clearCurrentContext(this.nsContext)) {
|
|
||||||
throw new GLException("Error freeing OpenGL nsContext");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void destroyImpl() throws GLException {
|
|
||||||
if (this.nsContext != 0L) {
|
|
||||||
if (!CGL.deleteContext(this.nsContext)) {
|
|
||||||
throw new GLException("Unable to delete OpenGL context");
|
|
||||||
}
|
|
||||||
this.nsContext = 0L;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPlatformExtensionsString() {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSwapInterval(int arg0) {
|
|
||||||
if (this.nsContext == 0L) {
|
|
||||||
throw new GLException("OpenGL context not current");
|
|
||||||
}
|
|
||||||
CGL.setSwapInterval(this.nsContext, arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isExtensionAvailable(String arg0) {
|
|
||||||
return arg0.equals("GL_ARB_pbuffer") || arg0.equals("GL_ARB_pixel_format") ? true : super.isExtensionAvailable(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
package com.sun.opengl.impl.macosx;
|
|
||||||
|
|
||||||
import com.sun.opengl.impl.GLDrawableImpl;
|
|
||||||
import javax.media.opengl.GLCapabilities;
|
|
||||||
import javax.media.opengl.GLCapabilitiesChooser;
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public abstract class MacOSXGLDrawable extends GLDrawableImpl {
|
|
||||||
|
|
||||||
protected GLCapabilities capabilities;
|
|
||||||
|
|
||||||
protected GLCapabilitiesChooser chooser;
|
|
||||||
|
|
||||||
public MacOSXGLDrawable(GLCapabilities arg0, GLCapabilitiesChooser arg1) {
|
|
||||||
this.capabilities = (GLCapabilities) arg0.clone();
|
|
||||||
this.chooser = arg1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract void setRealized(boolean arg0);
|
|
||||||
|
|
||||||
public abstract void swapBuffers();
|
|
||||||
|
|
||||||
public abstract long getView();
|
|
||||||
|
|
||||||
public GLCapabilities getCapabilities() {
|
|
||||||
byte var1 = 1;
|
|
||||||
GLCapabilities[] var2 = new GLCapabilities[var1];
|
|
||||||
var2[0] = this.capabilities;
|
|
||||||
int var3 = this.chooser.chooseCapabilities(this.capabilities, var2, 0);
|
|
||||||
if (var3 < 0 || var3 >= var1) {
|
|
||||||
throw new GLException("Invalid result " + var3 + " from GLCapabilitiesChooser (should be between 0 and " + (var1 - 1) + ")");
|
|
||||||
}
|
|
||||||
return var2[var3];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
package com.sun.opengl.impl.macosx;
|
|
||||||
|
|
||||||
import com.sun.opengl.impl.GLDrawableFactoryImpl;
|
|
||||||
import java.awt.Component;
|
|
||||||
import javax.media.opengl.DefaultGLCapabilitiesChooser;
|
|
||||||
import javax.media.opengl.GLCapabilities;
|
|
||||||
import javax.media.opengl.GLCapabilitiesChooser;
|
|
||||||
import javax.media.opengl.GLDrawable;
|
|
||||||
|
|
||||||
public class MacOSXGLDrawableFactory extends GLDrawableFactoryImpl {
|
|
||||||
|
|
||||||
public GLDrawable getGLDrawable(Object arg0, GLCapabilities arg1, GLCapabilitiesChooser arg2) {
|
|
||||||
if (arg0 == null) {
|
|
||||||
throw new IllegalArgumentException("Null target");
|
|
||||||
} else if (arg0 instanceof Component) {
|
|
||||||
if (arg1 == null) {
|
|
||||||
arg1 = new GLCapabilities();
|
|
||||||
}
|
|
||||||
if (arg2 == null) {
|
|
||||||
arg2 = new DefaultGLCapabilitiesChooser();
|
|
||||||
}
|
|
||||||
return new MacOSXOnscreenGLDrawable((Component) arg0, arg1, arg2);
|
|
||||||
} else {
|
|
||||||
throw new IllegalArgumentException("GLDrawables not supported for objects of type " + arg0.getClass().getName() + " (only Components are supported in this implementation)");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public long dynamicLookupFunction(String arg0) {
|
|
||||||
return CGL.getProcAddress(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,51 +0,0 @@
|
||||||
package com.sun.opengl.impl.macosx;
|
|
||||||
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public class MacOSXOnscreenGLContext extends MacOSXGLContext {
|
|
||||||
|
|
||||||
protected MacOSXOnscreenGLDrawable drawable;
|
|
||||||
|
|
||||||
public MacOSXOnscreenGLContext(MacOSXOnscreenGLDrawable arg0) {
|
|
||||||
super(arg0);
|
|
||||||
this.drawable = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected int makeCurrentImpl() throws GLException {
|
|
||||||
int var1 = this.drawable.lockSurface();
|
|
||||||
if (var1 == 1) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
int var3;
|
|
||||||
try {
|
|
||||||
if (var1 == 2) {
|
|
||||||
super.destroyImpl();
|
|
||||||
}
|
|
||||||
int var2 = super.makeCurrentImpl();
|
|
||||||
if (var2 == 1 || var2 == 2) {
|
|
||||||
CGL.updateContext(this.nsContext);
|
|
||||||
}
|
|
||||||
var3 = var2;
|
|
||||||
} finally {
|
|
||||||
this.drawable.unlockSurface();
|
|
||||||
}
|
|
||||||
return var3;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void swapBuffers() throws GLException {
|
|
||||||
if (!CGL.flushBuffer(this.nsContext)) {
|
|
||||||
throw new GLException("Error swapping buffers");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void update() throws GLException {
|
|
||||||
if (this.nsContext == 0L) {
|
|
||||||
throw new GLException("Context not created");
|
|
||||||
}
|
|
||||||
CGL.updateContext(this.nsContext);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean create() {
|
|
||||||
return this.create(false, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,114 +0,0 @@
|
||||||
package com.sun.opengl.impl.macosx;
|
|
||||||
|
|
||||||
import com.sun.opengl.impl.JAWT;
|
|
||||||
import com.sun.opengl.impl.JAWT_DrawingSurface;
|
|
||||||
import com.sun.opengl.impl.JAWT_DrawingSurfaceInfo;
|
|
||||||
import java.awt.Component;
|
|
||||||
import java.security.AccessController;
|
|
||||||
import java.security.PrivilegedAction;
|
|
||||||
import javax.media.opengl.GLCapabilities;
|
|
||||||
import javax.media.opengl.GLCapabilitiesChooser;
|
|
||||||
import javax.media.opengl.GLContext;
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public class MacOSXOnscreenGLDrawable extends MacOSXGLDrawable {
|
|
||||||
|
|
||||||
private Component component;
|
|
||||||
|
|
||||||
protected long nsView;
|
|
||||||
|
|
||||||
JAWT_DrawingSurface ds;
|
|
||||||
|
|
||||||
JAWT_DrawingSurfaceInfo dsi;
|
|
||||||
|
|
||||||
protected boolean realized;
|
|
||||||
|
|
||||||
private boolean firstLock = true;
|
|
||||||
|
|
||||||
public MacOSXOnscreenGLDrawable(Component arg0, GLCapabilities arg1, GLCapabilitiesChooser arg2) {
|
|
||||||
super(arg1, arg2);
|
|
||||||
this.component = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public GLContext createContext(GLContext arg0) {
|
|
||||||
return new MacOSXOnscreenGLContext(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRealized(boolean arg0) {
|
|
||||||
this.realized = arg0;
|
|
||||||
this.setChosenGLCapabilities(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void swapBuffers() throws GLException {
|
|
||||||
((MacOSXOnscreenGLContext) GLContext.getCurrent()).swapBuffers();
|
|
||||||
}
|
|
||||||
|
|
||||||
public long getView() {
|
|
||||||
return this.nsView;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int lockSurface() throws GLException {
|
|
||||||
if (this.nsView != 0L) {
|
|
||||||
return 3;
|
|
||||||
} else if (this.realized) {
|
|
||||||
this.ds = JAWT.getJAWT().GetDrawingSurface(this.component);
|
|
||||||
if (this.ds == null) {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
int var1 = this.ds.Lock();
|
|
||||||
if ((var1 & 0x1) != 0) {
|
|
||||||
JAWT.getJAWT().FreeDrawingSurface(this.ds);
|
|
||||||
this.ds = null;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
if (this.firstLock) {
|
|
||||||
AccessController.doPrivileged(new PrivilegedAction() {
|
|
||||||
|
|
||||||
public Object run() {
|
|
||||||
MacOSXOnscreenGLDrawable.this.dsi = MacOSXOnscreenGLDrawable.this.ds.GetDrawingSurfaceInfo();
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.firstLock = false;
|
|
||||||
} else {
|
|
||||||
this.dsi = this.ds.GetDrawingSurfaceInfo();
|
|
||||||
}
|
|
||||||
if (this.dsi == null) {
|
|
||||||
this.ds.Unlock();
|
|
||||||
JAWT.getJAWT().FreeDrawingSurface(this.ds);
|
|
||||||
this.ds = null;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
JAWT_MacOSXDrawingSurfaceInfo var2 = (JAWT_MacOSXDrawingSurfaceInfo) this.dsi.platformInfo();
|
|
||||||
if (var2 != null) {
|
|
||||||
this.nsView = var2.cocoaViewRef();
|
|
||||||
}
|
|
||||||
if (this.nsView == 0L) {
|
|
||||||
this.ds.FreeDrawingSurfaceInfo(this.dsi);
|
|
||||||
this.ds.Unlock();
|
|
||||||
JAWT.getJAWT().FreeDrawingSurface(this.ds);
|
|
||||||
this.ds = null;
|
|
||||||
this.dsi = null;
|
|
||||||
return 1;
|
|
||||||
} else if ((var1 & 0x8) == 0) {
|
|
||||||
return 3;
|
|
||||||
} else {
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void unlockSurface() throws GLException {
|
|
||||||
if (this.nsView == 0L) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.ds.FreeDrawingSurfaceInfo(this.dsi);
|
|
||||||
this.ds.Unlock();
|
|
||||||
JAWT.getJAWT().FreeDrawingSurface(this.ds);
|
|
||||||
this.ds = null;
|
|
||||||
this.dsi = null;
|
|
||||||
this.nsView = 0L;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,569 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
import java.nio.ByteOrder;
|
|
||||||
import java.nio.ShortBuffer;
|
|
||||||
import javax.media.opengl.GL;
|
|
||||||
|
|
||||||
public class BuildMipmap {
|
|
||||||
|
|
||||||
public static int bitmapBuild2DMipmaps(GL arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, ByteBuffer arg7) {
|
|
||||||
int[] var8 = new int[1];
|
|
||||||
int[] var9 = new int[1];
|
|
||||||
ShortBuffer var12 = null;
|
|
||||||
ShortBuffer var15 = null;
|
|
||||||
ShortBuffer var16 = null;
|
|
||||||
PixelStorageModes var20 = new PixelStorageModes();
|
|
||||||
Mipmap.retrieveStoreModes(arg0, var20);
|
|
||||||
Mipmap.closestFit(arg0, arg1, arg3, arg4, arg2, arg5, arg6, var8, var9);
|
|
||||||
int var11 = Mipmap.computeLog(var8[0]);
|
|
||||||
int var10 = Mipmap.computeLog(var9[0]);
|
|
||||||
if (var10 > var11) {
|
|
||||||
var11 = var10;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
var12 = ByteBuffer.allocateDirect(Mipmap.image_size(arg3, arg4, arg5, 5123)).order(ByteOrder.nativeOrder()).asShortBuffer();
|
|
||||||
} catch (OutOfMemoryError var22) {
|
|
||||||
return 100902;
|
|
||||||
}
|
|
||||||
int var13 = arg3;
|
|
||||||
int var14 = arg4;
|
|
||||||
Image.fill_image(var20, arg3, arg4, arg5, arg6, Mipmap.is_index(arg5), arg7, var12);
|
|
||||||
int var19 = Mipmap.elements_per_group(arg5, arg6);
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, GL.GL_LINE_LOOP);
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, GL.GL_POINTS);
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_PIXELS, GL.GL_POINTS);
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, GL.GL_POINTS);
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SWAP_BYTES, GL.GL_POINTS);
|
|
||||||
for (var10 = 0; var10 < var11; var10++) {
|
|
||||||
if (var13 == var8[0] && var14 == var9[0]) {
|
|
||||||
var12.rewind();
|
|
||||||
arg0.glTexImage2D(arg1, var10, arg2, var13, var14, 0, arg5, GL.GL_UNSIGNED_SHORT, var12);
|
|
||||||
} else {
|
|
||||||
if (var15 == null) {
|
|
||||||
int var17 = Mipmap.image_size(var8[0], var9[0], arg5, 5123);
|
|
||||||
try {
|
|
||||||
var15 = ByteBuffer.allocateDirect(var17).order(ByteOrder.nativeOrder()).asShortBuffer();
|
|
||||||
} catch (OutOfMemoryError var23) {
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, var20.getUnpackAlignment());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, var20.getUnpackSkipRows());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_PIXELS, var20.getUnpackSkipPixels());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, var20.getUnpackRowLength());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SWAP_BYTES, var20.getUnpackSwapBytes() ? GL.GL_LINES : GL.GL_POINTS);
|
|
||||||
return 100902;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ScaleInternal.scale_internal(var19, var13, var14, var12, var8[0], var9[0], var15);
|
|
||||||
var16 = var15;
|
|
||||||
var15 = var12;
|
|
||||||
var12 = var16;
|
|
||||||
var13 = var8[0];
|
|
||||||
var14 = var9[0];
|
|
||||||
var16.rewind();
|
|
||||||
arg0.glTexImage2D(arg1, var10, arg2, var13, var14, 0, arg5, GL.GL_UNSIGNED_SHORT, var16);
|
|
||||||
}
|
|
||||||
if (var9[0] > 1) {
|
|
||||||
var8[0] /= 2;
|
|
||||||
}
|
|
||||||
if (var9[0] > 1) {
|
|
||||||
var9[0] /= 2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, var20.getUnpackAlignment());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, var20.getUnpackSkipRows());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_PIXELS, var20.getUnpackSkipPixels());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, var20.getUnpackRowLength());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SWAP_BYTES, var20.getUnpackSwapBytes() ? GL.GL_LINES : GL.GL_POINTS);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int gluBuild2DMipmapLevelsCore(GL arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10, int arg11, ByteBuffer arg12) {
|
|
||||||
ByteBuffer var18 = null;
|
|
||||||
ByteBuffer var19 = null;
|
|
||||||
ByteBuffer var20 = null;
|
|
||||||
Object var23 = null;
|
|
||||||
PixelStorageModes var33 = new PixelStorageModes();
|
|
||||||
assert Mipmap.checkMipmapArgs(arg2, arg7, arg8) == 0;
|
|
||||||
assert arg3 >= 1 && arg4 >= 1;
|
|
||||||
if (arg8 == 6656) {
|
|
||||||
return bitmapBuild2DMipmaps(arg0, arg1, arg2, arg3, arg4, arg7, arg8, arg12);
|
|
||||||
}
|
|
||||||
int var13 = arg5;
|
|
||||||
int var14 = arg6;
|
|
||||||
int var16 = Mipmap.computeLog(arg5);
|
|
||||||
int var15 = Mipmap.computeLog(arg6);
|
|
||||||
if (var15 > var16) {
|
|
||||||
var16 = var15;
|
|
||||||
}
|
|
||||||
var16 += arg9;
|
|
||||||
Mipmap.retrieveStoreModes(arg0, var33);
|
|
||||||
boolean var27 = var33.getUnpackSwapBytes();
|
|
||||||
int var26 = Mipmap.elements_per_group(arg7, arg8);
|
|
||||||
int var28;
|
|
||||||
if (var33.getUnpackRowLength() > 0) {
|
|
||||||
var28 = var33.getUnpackRowLength();
|
|
||||||
} else {
|
|
||||||
var28 = arg3;
|
|
||||||
}
|
|
||||||
int var29 = Mipmap.bytes_per_element(arg8);
|
|
||||||
int var30 = var29 * var26;
|
|
||||||
if (var29 == 1) {
|
|
||||||
var27 = false;
|
|
||||||
}
|
|
||||||
int var31 = var28 * var30;
|
|
||||||
int var32 = var31 % var33.getUnpackAlignment();
|
|
||||||
if (var32 != 0) {
|
|
||||||
var31 += var33.getUnpackAlignment() - var32;
|
|
||||||
}
|
|
||||||
arg12.position(var33.getUnpackSkipRows() * var31 + var33.getUnpackSkipPixels() * var30);
|
|
||||||
arg12.mark();
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, GL.GL_POINTS);
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_PIXELS, GL.GL_POINTS);
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, GL.GL_POINTS);
|
|
||||||
int var24;
|
|
||||||
int var34;
|
|
||||||
int var35;
|
|
||||||
if (arg3 == arg5 && arg4 == arg6) {
|
|
||||||
if (arg10 <= arg9 && arg9 <= arg11) {
|
|
||||||
arg12.rewind();
|
|
||||||
arg0.glTexImage2D(arg1, arg9, arg2, arg3, arg4, 0, arg7, arg8, arg12);
|
|
||||||
}
|
|
||||||
if (var16 == 0) {
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, var33.getUnpackAlignment());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, var33.getUnpackSkipRows());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_PIXELS, var33.getUnpackSkipPixels());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, var33.getUnpackRowLength());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SWAP_BYTES, var33.getUnpackSwapBytes() ? GL.GL_LINES : GL.GL_POINTS);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
var34 = arg5 / 2;
|
|
||||||
var35 = arg6 / 2;
|
|
||||||
if (var34 < 1) {
|
|
||||||
var34 = 1;
|
|
||||||
}
|
|
||||||
if (var35 < 1) {
|
|
||||||
var35 = 1;
|
|
||||||
}
|
|
||||||
var24 = Mipmap.image_size(var34, var35, arg7, arg8);
|
|
||||||
try {
|
|
||||||
switch(arg8) {
|
|
||||||
case 5120:
|
|
||||||
case 5121:
|
|
||||||
case 5122:
|
|
||||||
case 5123:
|
|
||||||
case 5124:
|
|
||||||
case 5125:
|
|
||||||
case 5126:
|
|
||||||
case 32818:
|
|
||||||
case 32819:
|
|
||||||
case 32820:
|
|
||||||
case 32821:
|
|
||||||
case 32822:
|
|
||||||
case 33634:
|
|
||||||
case 33635:
|
|
||||||
case 33636:
|
|
||||||
case 33637:
|
|
||||||
case 33638:
|
|
||||||
case 33639:
|
|
||||||
case 33640:
|
|
||||||
var19 = ByteBuffer.allocateDirect(var24).order(ByteOrder.nativeOrder());
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return 100900;
|
|
||||||
}
|
|
||||||
} catch (OutOfMemoryError var45) {
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, var33.getUnpackAlignment());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, var33.getUnpackSkipRows());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_PIXELS, var33.getUnpackSkipPixels());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, var33.getUnpackRowLength());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SWAP_BYTES, var33.getUnpackSwapBytes() ? GL.GL_LINES : GL.GL_POINTS);
|
|
||||||
return 100902;
|
|
||||||
}
|
|
||||||
if (var19 != null) {
|
|
||||||
switch(arg8) {
|
|
||||||
case 5120:
|
|
||||||
HalveImage.halveImage_byte(var26, arg3, arg4, arg12, var19, var29, var31, var30);
|
|
||||||
break;
|
|
||||||
case 5121:
|
|
||||||
HalveImage.halveImage_ubyte(var26, arg3, arg4, arg12, var19, var29, var31, var30);
|
|
||||||
break;
|
|
||||||
case 5122:
|
|
||||||
HalveImage.halveImage_short(var26, arg3, arg4, arg12, var19.asShortBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5123:
|
|
||||||
HalveImage.halveImage_ushort(var26, arg3, arg4, arg12, var19.asShortBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5124:
|
|
||||||
HalveImage.halveImage_int(var26, arg3, arg4, arg12, var19.asIntBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5125:
|
|
||||||
HalveImage.halveImage_uint(var26, arg3, arg4, arg12, var19.asIntBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5126:
|
|
||||||
HalveImage.halveImage_float(var26, arg3, arg4, arg12, var19.asFloatBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 32818:
|
|
||||||
assert arg7 == 6407;
|
|
||||||
HalveImage.halveImagePackedPixel(3, new Extract332(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32819:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract4444(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32820:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract5551(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32821:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract8888(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32822:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract1010102(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33634:
|
|
||||||
assert arg7 == 6407;
|
|
||||||
HalveImage.halveImagePackedPixel(3, new Extract233rev(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33635:
|
|
||||||
HalveImage.halveImagePackedPixel(3, new Extract565(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33636:
|
|
||||||
HalveImage.halveImagePackedPixel(3, new Extract565rev(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33637:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract4444rev(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33638:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract1555rev(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33639:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract8888rev(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33640:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract2101010rev(), arg3, arg4, arg12, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
assert false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var13 = arg3 / 2;
|
|
||||||
var14 = arg4 / 2;
|
|
||||||
if (var13 < 1) {
|
|
||||||
var13 = 1;
|
|
||||||
}
|
|
||||||
if (var14 < 1) {
|
|
||||||
var14 = 1;
|
|
||||||
}
|
|
||||||
var27 = false;
|
|
||||||
var31 = var13 * var30;
|
|
||||||
var24 = Mipmap.image_size(var13, var14, arg7, arg8);
|
|
||||||
var18 = var19;
|
|
||||||
try {
|
|
||||||
switch(arg8) {
|
|
||||||
case 5120:
|
|
||||||
case 5121:
|
|
||||||
case 5122:
|
|
||||||
case 5123:
|
|
||||||
case 5124:
|
|
||||||
case 5125:
|
|
||||||
case 5126:
|
|
||||||
case 32818:
|
|
||||||
case 32819:
|
|
||||||
case 32820:
|
|
||||||
case 32821:
|
|
||||||
case 32822:
|
|
||||||
case 33634:
|
|
||||||
case 33635:
|
|
||||||
case 33636:
|
|
||||||
case 33637:
|
|
||||||
case 33638:
|
|
||||||
case 33639:
|
|
||||||
case 33640:
|
|
||||||
var19 = ByteBuffer.allocateDirect(var24).order(ByteOrder.nativeOrder());
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return 100900;
|
|
||||||
}
|
|
||||||
} catch (OutOfMemoryError var44) {
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, var33.getUnpackAlignment());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, var33.getUnpackSkipRows());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_PIXELS, var33.getUnpackSkipPixels());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, var33.getUnpackRowLength());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SWAP_BYTES, var33.getUnpackSwapBytes() ? GL.GL_LINES : GL.GL_POINTS);
|
|
||||||
return 100902;
|
|
||||||
}
|
|
||||||
var15 = arg9 + 1;
|
|
||||||
} else {
|
|
||||||
var24 = Mipmap.image_size(arg5, arg6, arg7, arg8);
|
|
||||||
try {
|
|
||||||
switch(arg8) {
|
|
||||||
case 5120:
|
|
||||||
case 5121:
|
|
||||||
case 5122:
|
|
||||||
case 5123:
|
|
||||||
case 5124:
|
|
||||||
case 5125:
|
|
||||||
case 5126:
|
|
||||||
case 32818:
|
|
||||||
case 32819:
|
|
||||||
case 32820:
|
|
||||||
case 32821:
|
|
||||||
case 32822:
|
|
||||||
case 33634:
|
|
||||||
case 33635:
|
|
||||||
case 33636:
|
|
||||||
case 33637:
|
|
||||||
case 33638:
|
|
||||||
case 33639:
|
|
||||||
case 33640:
|
|
||||||
var19 = ByteBuffer.allocateDirect(var24).order(ByteOrder.nativeOrder());
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return 100900;
|
|
||||||
}
|
|
||||||
} catch (OutOfMemoryError var46) {
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, var33.getUnpackAlignment());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, var33.getUnpackSkipRows());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_PIXELS, var33.getUnpackSkipPixels());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, var33.getUnpackRowLength());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SWAP_BYTES, var33.getUnpackSwapBytes() ? GL.GL_LINES : GL.GL_POINTS);
|
|
||||||
return 100902;
|
|
||||||
}
|
|
||||||
arg12.reset();
|
|
||||||
switch(arg8) {
|
|
||||||
case 5120:
|
|
||||||
ScaleInternal.scale_internal_byte(var26, arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var30);
|
|
||||||
break;
|
|
||||||
case 5121:
|
|
||||||
ScaleInternal.scale_internal_ubyte(var26, arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var30);
|
|
||||||
break;
|
|
||||||
case 5122:
|
|
||||||
ScaleInternal.scale_internal_ushort(var26, arg3, arg4, arg12, arg5, arg6, var19.asShortBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5123:
|
|
||||||
ScaleInternal.scale_internal_ushort(var26, arg3, arg4, arg12, arg5, arg6, var19.asShortBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5124:
|
|
||||||
ScaleInternal.scale_internal_int(var26, arg3, arg4, arg12, arg5, arg6, var19.asIntBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5125:
|
|
||||||
ScaleInternal.scale_internal_uint(var26, arg3, arg4, arg12, arg5, arg6, var19.asIntBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5126:
|
|
||||||
ScaleInternal.scale_internal_float(var26, arg3, arg4, arg12, arg5, arg6, var19.asFloatBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 32818:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(3, new Extract332(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32819:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(4, new Extract4444(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32820:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(4, new Extract5551(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32821:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(4, new Extract8888(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32822:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(4, new Extract1010102(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33634:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(3, new Extract233rev(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33635:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(3, new Extract565(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33636:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(3, new Extract565rev(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33637:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(4, new Extract4444rev(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33638:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(4, new Extract1555rev(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33639:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(4, new Extract8888rev(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33640:
|
|
||||||
ScaleInternal.scaleInternalPackedPixel(4, new Extract2101010rev(), arg3, arg4, arg12, arg5, arg6, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
assert false;
|
|
||||||
}
|
|
||||||
var27 = false;
|
|
||||||
var31 = arg5 * var30;
|
|
||||||
var20 = var18;
|
|
||||||
var18 = var19;
|
|
||||||
var19 = var20;
|
|
||||||
if (var16 != 0) {
|
|
||||||
var34 = arg5 / 2;
|
|
||||||
var35 = arg6 / 2;
|
|
||||||
if (var34 < 1) {
|
|
||||||
var34 = 1;
|
|
||||||
}
|
|
||||||
if (var35 < 1) {
|
|
||||||
var35 = 1;
|
|
||||||
}
|
|
||||||
var24 = Mipmap.image_size(var34, var35, arg7, arg8);
|
|
||||||
try {
|
|
||||||
switch(arg8) {
|
|
||||||
case 5120:
|
|
||||||
case 5121:
|
|
||||||
case 5122:
|
|
||||||
case 5123:
|
|
||||||
case 5124:
|
|
||||||
case 5125:
|
|
||||||
case 5126:
|
|
||||||
case 32818:
|
|
||||||
case 32819:
|
|
||||||
case 32820:
|
|
||||||
case 32821:
|
|
||||||
case 32822:
|
|
||||||
case 33634:
|
|
||||||
case 33635:
|
|
||||||
case 33636:
|
|
||||||
case 33637:
|
|
||||||
case 33638:
|
|
||||||
case 33639:
|
|
||||||
case 33640:
|
|
||||||
var19 = ByteBuffer.allocateDirect(var24).order(ByteOrder.nativeOrder());
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return 100900;
|
|
||||||
}
|
|
||||||
} catch (OutOfMemoryError var42) {
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, var33.getUnpackAlignment());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, var33.getUnpackSkipRows());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_PIXELS, var33.getUnpackSkipPixels());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, var33.getUnpackRowLength());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SWAP_BYTES, var33.getUnpackSwapBytes() ? GL.GL_LINES : GL.GL_POINTS);
|
|
||||||
return 100902;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var15 = arg9;
|
|
||||||
}
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SWAP_BYTES, GL.GL_POINTS);
|
|
||||||
if (arg10 <= var15 && var15 <= arg11) {
|
|
||||||
var18.rewind();
|
|
||||||
arg0.glTexImage2D(arg1, var15, arg2, var13, var14, 0, arg7, arg8, var18);
|
|
||||||
}
|
|
||||||
var15++;
|
|
||||||
while (var15 <= var16) {
|
|
||||||
var18.rewind();
|
|
||||||
var19.rewind();
|
|
||||||
switch(arg8) {
|
|
||||||
case 5120:
|
|
||||||
HalveImage.halveImage_byte(var26, var13, var14, var18, var19, var29, var31, var30);
|
|
||||||
break;
|
|
||||||
case 5121:
|
|
||||||
HalveImage.halveImage_ubyte(var26, var13, var14, var18, var19, var29, var31, var30);
|
|
||||||
break;
|
|
||||||
case 5122:
|
|
||||||
HalveImage.halveImage_short(var26, var13, var14, var18, var19.asShortBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5123:
|
|
||||||
HalveImage.halveImage_ushort(var26, var13, var14, var18, var19.asShortBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5124:
|
|
||||||
HalveImage.halveImage_int(var26, var13, var14, var18, var19.asIntBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5125:
|
|
||||||
HalveImage.halveImage_uint(var26, var13, var14, var18, var19.asIntBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 5126:
|
|
||||||
HalveImage.halveImage_float(var26, var13, var14, var18, var19.asFloatBuffer(), var29, var31, var30, var27);
|
|
||||||
break;
|
|
||||||
case 32818:
|
|
||||||
assert arg7 == 6407;
|
|
||||||
HalveImage.halveImagePackedPixel(3, new Extract332(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32819:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract4444(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32820:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract5551(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32821:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract8888(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 32822:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract1010102(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33634:
|
|
||||||
assert arg7 == 6407;
|
|
||||||
HalveImage.halveImagePackedPixel(3, new Extract233rev(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33635:
|
|
||||||
HalveImage.halveImagePackedPixel(3, new Extract565(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33636:
|
|
||||||
HalveImage.halveImagePackedPixel(3, new Extract565rev(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33637:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract4444rev(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33638:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract1555rev(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33639:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract8888rev(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
case 33640:
|
|
||||||
HalveImage.halveImagePackedPixel(4, new Extract2101010rev(), var13, var14, var18, var19, var29, var31, var27);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
assert false;
|
|
||||||
}
|
|
||||||
var20 = var18;
|
|
||||||
var18 = var19;
|
|
||||||
var19 = var20;
|
|
||||||
if (var13 > 1) {
|
|
||||||
var13 /= 2;
|
|
||||||
var31 /= 2;
|
|
||||||
}
|
|
||||||
if (var14 > 1) {
|
|
||||||
var14 /= 2;
|
|
||||||
}
|
|
||||||
var34 = var31 % var33.getUnpackAlignment();
|
|
||||||
if (var34 != 0) {
|
|
||||||
var35 = var31 + var33.getUnpackAlignment() - var34;
|
|
||||||
ByteBuffer var40 = null;
|
|
||||||
try {
|
|
||||||
var40 = ByteBuffer.allocateDirect(var35 * var14);
|
|
||||||
} catch (OutOfMemoryError var43) {
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, var33.getUnpackAlignment());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, var33.getUnpackSkipRows());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_PIXELS, var33.getUnpackSkipPixels());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, var33.getUnpackRowLength());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SWAP_BYTES, var33.getUnpackSwapBytes() ? GL.GL_LINES : GL.GL_POINTS);
|
|
||||||
return 100902;
|
|
||||||
}
|
|
||||||
var18.rewind();
|
|
||||||
int var36 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var36 >= var14) {
|
|
||||||
if (arg10 <= var15 && var15 <= arg11) {
|
|
||||||
var40.rewind();
|
|
||||||
arg0.glTexImage2D(arg1, var15, arg2, var13, var14, 0, arg7, arg8, var40);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
var40.position(var35 * var36);
|
|
||||||
for (int var37 = 0; var37 < var31; var37++) {
|
|
||||||
var40.put(var18.get());
|
|
||||||
}
|
|
||||||
var36++;
|
|
||||||
}
|
|
||||||
} else if (arg10 <= var15 && var15 <= arg11) {
|
|
||||||
var18.rewind();
|
|
||||||
arg0.glTexImage2D(arg1, var15, arg2, var13, var14, 0, arg7, arg8, var18);
|
|
||||||
}
|
|
||||||
var15++;
|
|
||||||
}
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, var33.getUnpackAlignment());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, var33.getUnpackSkipRows());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SKIP_PIXELS, var33.getUnpackSkipPixels());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, var33.getUnpackRowLength());
|
|
||||||
arg0.glPixelStorei(GL.GL_UNPACK_SWAP_BYTES, var33.getUnpackSwapBytes() ? GL.GL_LINES : GL.GL_POINTS);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public interface Extract {
|
|
||||||
|
|
||||||
void extract(boolean arg0, ByteBuffer arg1, float[] arg2);
|
|
||||||
|
|
||||||
void shove(float[] arg0, int arg1, ByteBuffer arg2);
|
|
||||||
}
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract1010102 implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
long var4 = 0L;
|
|
||||||
if (arg0) {
|
|
||||||
var4 = Mipmap.GLU_SWAP_4_BYTES(arg1.getInt()) & 0xFFFFFFFF;
|
|
||||||
} else {
|
|
||||||
var4 = arg1.getInt() & 0xFFFFFFFF;
|
|
||||||
}
|
|
||||||
arg2[0] = (float) (var4 >> 22 & 0xFFFFFFFFFFFFFFFFL) / 1023.0F;
|
|
||||||
arg2[1] = (float) (var4 >> 12 & 0x3FFL) / 1023.0F;
|
|
||||||
arg2[2] = (float) (var4 >> 2 & 0x3FFL) / 1023.0F;
|
|
||||||
arg2[3] = (float) (var4 & 0x3L) / 3.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
assert arg0[3] >= 0.0F && arg0[3] <= 1.0F;
|
|
||||||
long var4 = (long) (((int) (arg0[0] * 1023.0F + 0.5F) & 0x3FF) << 22);
|
|
||||||
long var6 = var4 | (long) (((int) (arg0[1] * 1023.0F + 0.5F) & 0x3FF) << 12);
|
|
||||||
long var7 = var6 | (long) (((int) (arg0[2] * 1023.0F + 0.5F) & 0x3FF) << 2);
|
|
||||||
long var8 = var7 | (long) ((int) (arg0[3] * 3.0F + 0.5F) & 0x3);
|
|
||||||
arg2.asIntBuffer().put(arg1, (int) var8);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract1555rev implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
boolean var4 = false;
|
|
||||||
int var5;
|
|
||||||
if (arg0) {
|
|
||||||
var5 = Mipmap.GLU_SWAP_2_BYTES(arg1.getShort()) & 0xFFFF;
|
|
||||||
} else {
|
|
||||||
var5 = arg1.getShort() & 0xFFFF;
|
|
||||||
}
|
|
||||||
arg2[0] = (float) (var5 & 0x1F) / 31.0F;
|
|
||||||
arg2[1] = (float) (var5 >> 5 & 0x1) / 31.0F;
|
|
||||||
arg2[2] = (float) (var5 >> 10 & 0x1F) / 31.0F;
|
|
||||||
arg2[3] = var5 >> 15 & 0x1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
assert arg0[3] >= 0.0F && arg0[3] <= 1.0F;
|
|
||||||
int var4 = (int) (arg0[0] * 31.0F + 0.5F) & 0x1F;
|
|
||||||
int var5 = var4 | ((int) (arg0[1] * 31.0F + 0.5F) & 0x1F) << 5;
|
|
||||||
int var6 = var5 | ((int) (arg0[2] * 31.0F + 0.5F) & 0x1F) << 10;
|
|
||||||
int var7 = var6 | ((int) (arg0[3] + 0.5F) & 0x1) << 15;
|
|
||||||
arg2.asShortBuffer().put(arg1, (short) var7);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract2101010rev implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
long var4 = 0L;
|
|
||||||
if (arg0) {
|
|
||||||
var4 = Mipmap.GLU_SWAP_4_BYTES(arg1.getInt()) & 0xFFFFFFFF;
|
|
||||||
} else {
|
|
||||||
var4 = arg1.getInt() & 0xFFFFFFFF;
|
|
||||||
}
|
|
||||||
arg2[0] = (float) (var4 & 0x3FFL) / 1023.0F;
|
|
||||||
arg2[1] = (float) (var4 >> 10 & 0x3FFL) / 1023.0F;
|
|
||||||
arg2[2] = (float) (var4 >> 20 & 0x3FFL) / 1023.0F;
|
|
||||||
arg2[3] = (float) (var4 >> 30 & 0xFFFFFFFFFFFFFFFFL) / 3.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
assert arg0[3] >= 0.0F && arg0[3] <= 1.0F;
|
|
||||||
long var4 = (long) ((int) (arg0[0] * 1023.0F + 0.5F) & 0x3FF);
|
|
||||||
long var6 = var4 | (long) (((int) (arg0[1] * 1023.0F + 0.5F) & 0x3FF) << 10);
|
|
||||||
long var7 = var6 | (long) (((int) (arg0[2] * 1023.0F + 0.5F) & 0x3FF) << 20);
|
|
||||||
long var8 = var7 | (long) (((int) (arg0[3] * 3.0F + 0.5F) & 0x3) << 30);
|
|
||||||
arg2.asIntBuffer().put(arg1, (int) var8);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract233rev implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
byte var4 = arg1.get();
|
|
||||||
arg2[0] = (float) (var4 & 0x7) / 7.0F;
|
|
||||||
arg2[1] = (float) (var4 >> 3 & 0x7) / 7.0F;
|
|
||||||
arg2[2] = (float) (var4 >> 6 & 0x3) / 3.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
byte var4 = (byte) ((int) (arg0[0] * 7.0F + 0.5F) & 0x7);
|
|
||||||
byte var5 = (byte) (var4 | (byte) (((int) (arg0[1] * 7.0F + 0.5F) & 0x7) << 3));
|
|
||||||
byte var6 = (byte) (var5 | (byte) (((int) (arg0[2] * 3.0F + 0.5F) & 0x3) << 6));
|
|
||||||
arg2.position(arg1);
|
|
||||||
arg2.put(var6);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract332 implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
byte var4 = arg1.get();
|
|
||||||
arg2[0] = (float) (var4 >> 5 & 0x7) / 7.0F;
|
|
||||||
arg2[1] = (float) (var4 >> 2 & 0x7) / 7.0F;
|
|
||||||
arg2[2] = (float) (var4 & 0x3) / 3.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
byte var4 = (byte) (((int) (arg0[0] * 7.0F + 0.5F) & 0x7) << 5);
|
|
||||||
byte var5 = (byte) (var4 | (byte) (((int) (arg0[1] * 7.0F + 0.5F) & 0x7) << 2));
|
|
||||||
byte var6 = (byte) (var5 | (byte) ((int) (arg0[2] * 3.0F + 0.5F) & 0x3));
|
|
||||||
arg2.put(arg1, var6);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract4444 implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
boolean var4 = false;
|
|
||||||
int var5;
|
|
||||||
if (arg0) {
|
|
||||||
var5 = Mipmap.GLU_SWAP_2_BYTES(arg1.getShort()) & 0xFFFF;
|
|
||||||
} else {
|
|
||||||
var5 = arg1.getShort() & 0xFFFF;
|
|
||||||
}
|
|
||||||
arg2[0] = (float) (var5 >> 12 & 0xF) / 15.0F;
|
|
||||||
arg2[1] = (float) (var5 >> 8 & 0xF) / 15.0F;
|
|
||||||
arg2[2] = (float) (var5 >> 4 & 0xF) / 15.0F;
|
|
||||||
arg2[3] = (float) (var5 & 0xF) / 15.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
int var4 = ((int) (arg0[0] * 15.0F + 0.5F) & 0xF) << 12;
|
|
||||||
int var5 = var4 | ((int) (arg0[1] * 15.0F + 0.5F) & 0xF) << 8;
|
|
||||||
int var6 = var5 | ((int) (arg0[2] * 15.0F + 0.5F) & 0xF) << 4;
|
|
||||||
int var7 = var6 | (int) (arg0[3] * 15.0F + 0.5F) & 0xF;
|
|
||||||
arg2.asShortBuffer().put(arg1, (short) var7);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract4444rev implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
boolean var4 = false;
|
|
||||||
int var5;
|
|
||||||
if (arg0) {
|
|
||||||
var5 = Mipmap.GLU_SWAP_2_BYTES(arg1.getShort()) & 0xFFFF;
|
|
||||||
} else {
|
|
||||||
var5 = arg1.getShort() & 0xFFFF;
|
|
||||||
}
|
|
||||||
arg2[0] = (float) (var5 & 0xF) / 15.0F;
|
|
||||||
arg2[1] = (float) (var5 >> 4 & 0xF) / 15.0F;
|
|
||||||
arg2[2] = (float) (var5 >> 8 & 0xF) / 15.0F;
|
|
||||||
arg2[3] = (float) (var5 >> 12 & 0xF) / 15.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
assert arg0[3] >= 0.0F && arg0[3] <= 1.0F;
|
|
||||||
int var4 = (int) (arg0[0] * 15.0F + 0.5F) & 0xF;
|
|
||||||
int var5 = var4 | ((int) (arg0[1] * 15.0F + 0.5F) & 0xF) << 4;
|
|
||||||
int var6 = var5 | ((int) (arg0[2] * 15.0F + 0.5F) & 0xF) << 8;
|
|
||||||
int var7 = var6 | ((int) (arg0[3] * 15.0F + 0.5F) & 0xF) << 12;
|
|
||||||
arg2.asShortBuffer().put(arg1, (short) var7);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract5551 implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
boolean var4 = false;
|
|
||||||
int var5;
|
|
||||||
if (arg0) {
|
|
||||||
var5 = Mipmap.GLU_SWAP_2_BYTES(arg1.getShort()) & 0xFFFF;
|
|
||||||
} else {
|
|
||||||
var5 = arg1.getShort() & 0xFFFF;
|
|
||||||
}
|
|
||||||
arg2[0] = (float) (var5 >> 11 & 0x1F) / 31.0F;
|
|
||||||
arg2[1] = (float) (var5 >> 6 & 0x3) / 31.0F;
|
|
||||||
arg2[2] = (float) (var5 >> 1 & 0x780) / 31.0F;
|
|
||||||
arg2[3] = var5 & 0xF000;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
assert arg0[3] >= 0.0F && arg0[3] <= 1.0F;
|
|
||||||
int var4 = ((int) (arg0[0] * 31.0F + 0.5F) & 0x1F) << 11;
|
|
||||||
int var5 = var4 | ((int) (arg0[1] * 31.0F + 0.5F) & 0x1F) << 6;
|
|
||||||
int var6 = var5 | ((int) (arg0[2] * 31.0F + 0.5F) & 0x1F) << 1;
|
|
||||||
int var7 = var6 | (int) (arg0[3] + 0.5F) & 0x1;
|
|
||||||
arg2.asShortBuffer().put(arg1, (short) var7);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract565 implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
boolean var4 = false;
|
|
||||||
int var5;
|
|
||||||
if (arg0) {
|
|
||||||
var5 = Mipmap.GLU_SWAP_2_BYTES(arg1.getShort()) & 0xFFFF;
|
|
||||||
} else {
|
|
||||||
var5 = arg1.getShort() & 0xFFFF;
|
|
||||||
}
|
|
||||||
arg2[0] = (float) (var5 >> 11 & 0x1F) / 31.0F;
|
|
||||||
arg2[1] = (float) (var5 >> 5 & 0x3F) / 63.0F;
|
|
||||||
arg2[2] = (float) (var5 & 0x1F) / 31.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
int var4 = ((int) (arg0[0] * 31.0F + 0.5F) & 0x1F) << 11;
|
|
||||||
int var5 = var4 | ((int) (arg0[1] * 63.0F + 0.5F) & 0x3F) << 5;
|
|
||||||
int var6 = var5 | (int) (arg0[2] * 31.0F + 0.5F) & 0x1F;
|
|
||||||
arg2.asShortBuffer().put(arg1, (short) var6);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract565rev implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
boolean var4 = false;
|
|
||||||
int var5;
|
|
||||||
if (arg0) {
|
|
||||||
var5 = Mipmap.GLU_SWAP_2_BYTES(arg1.getShort()) & 0xFFFF;
|
|
||||||
} else {
|
|
||||||
var5 = arg1.getShort() & 0xFFFF;
|
|
||||||
}
|
|
||||||
arg2[0] = (float) (var5 & 0x1F) / 31.0F;
|
|
||||||
arg2[1] = (float) (var5 >> 5 & 0x3F) / 63.0F;
|
|
||||||
arg2[2] = (float) (var5 >> 11 & 0x1F) / 31.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
int var4 = (int) (arg0[0] * 31.0F + 0.5F) & 0x1F;
|
|
||||||
int var5 = var4 | ((int) (arg0[1] * 63.0F + 0.5F) & 0x3F) << 5;
|
|
||||||
int var6 = var5 | ((int) (arg0[2] * 31.0F + 0.5F) & 0x1F) << 11;
|
|
||||||
arg2.asShortBuffer().put(arg1, (short) var6);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract8888 implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
long var4 = 0L;
|
|
||||||
if (arg0) {
|
|
||||||
var4 = Mipmap.GLU_SWAP_4_BYTES(arg1.getInt()) & 0xFFFFFFFF;
|
|
||||||
} else {
|
|
||||||
var4 = arg1.getInt() & 0xFFFFFFFF;
|
|
||||||
}
|
|
||||||
arg2[0] = (float) (var4 >> 24 & 0xFFFFFFFFFFFFFFFFL) / 255.0F;
|
|
||||||
arg2[1] = (float) (var4 >> 16 & 0xFFL) / 255.0F;
|
|
||||||
arg2[2] = (float) (var4 >> 8 & 0xFFL) / 255.0F;
|
|
||||||
arg2[3] = (float) (var4 & 0xFFL) / 255.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
assert arg0[3] >= 0.0F && arg0[3] <= 1.0F;
|
|
||||||
long var4 = (long) (((int) (arg0[0] * 255.0F + 0.5F) & 0xFF) << 24);
|
|
||||||
long var6 = var4 | (long) (((int) (arg0[1] * 255.0F + 0.5F) & 0xFF) << 16);
|
|
||||||
long var7 = var6 | (long) (((int) (arg0[2] * 255.0F + 0.5F) & 0xFF) << 8);
|
|
||||||
long var8 = var7 | (long) ((int) (arg0[3] * 255.0F + 0.5F) & 0xFF);
|
|
||||||
arg2.asIntBuffer().put(arg1, (int) var8);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Extract8888rev implements Extract {
|
|
||||||
|
|
||||||
public void extract(boolean arg0, ByteBuffer arg1, float[] arg2) {
|
|
||||||
long var4 = 0L;
|
|
||||||
if (arg0) {
|
|
||||||
var4 = Mipmap.GLU_SWAP_4_BYTES(arg1.getInt()) & 0xFFFFFFFF;
|
|
||||||
} else {
|
|
||||||
var4 = arg1.getInt() & 0xFFFFFFFF;
|
|
||||||
}
|
|
||||||
arg2[0] = (float) (var4 & 0xFFL) / 255.0F;
|
|
||||||
arg2[1] = (float) (var4 >> 8 & 0xFFL) / 255.0F;
|
|
||||||
arg2[2] = (float) (var4 >> 16 & 0xFFL) / 255.0F;
|
|
||||||
arg2[3] = (float) (var4 >> 24 & 0xFFFFFFFFFFFFFFFFL) / 255.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shove(float[] arg0, int arg1, ByteBuffer arg2) {
|
|
||||||
assert arg0[0] >= 0.0F && arg0[0] <= 1.0F;
|
|
||||||
assert arg0[1] >= 0.0F && arg0[1] <= 1.0F;
|
|
||||||
assert arg0[2] >= 0.0F && arg0[2] <= 1.0F;
|
|
||||||
assert arg0[3] >= 0.0F && arg0[3] <= 1.0F;
|
|
||||||
long var4 = (long) ((int) (arg0[0] * 255.0F + 0.5F) & 0xFF);
|
|
||||||
long var6 = var4 | (long) (((int) (arg0[1] * 255.0F + 0.5F) & 0xFF) << 8);
|
|
||||||
long var7 = var6 | (long) (((int) (arg0[2] * 255.0F + 0.5F) & 0xFF) << 16);
|
|
||||||
long var8 = var7 | (long) (((int) (arg0[3] * 255.0F + 0.5F) & 0xFF) << 24);
|
|
||||||
arg2.asIntBuffer().put(arg1, (int) var8);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,922 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
import java.nio.FloatBuffer;
|
|
||||||
import java.nio.IntBuffer;
|
|
||||||
import java.nio.ShortBuffer;
|
|
||||||
|
|
||||||
public class HalveImage {
|
|
||||||
|
|
||||||
public static void halveImage(int arg0, int arg1, int arg2, ShortBuffer arg3, ShortBuffer arg4) {
|
|
||||||
int var11 = 0;
|
|
||||||
boolean var12 = false;
|
|
||||||
int var8 = arg1 / 2;
|
|
||||||
int var9 = arg2 / 2;
|
|
||||||
int var10 = arg1 * arg0;
|
|
||||||
for (int var5 = 0; var5 < var9; var5++) {
|
|
||||||
for (int var6 = 0; var6 < var8; var6++) {
|
|
||||||
for (int var7 = 0; var7 < arg0; var7++) {
|
|
||||||
arg3.position(var11);
|
|
||||||
short var13 = arg3.get();
|
|
||||||
arg3.position(var11 + arg0);
|
|
||||||
short var14 = (short) (var13 + arg3.get());
|
|
||||||
arg3.position(var11 + var10);
|
|
||||||
short var15 = (short) (var14 + arg3.get());
|
|
||||||
arg3.position(var11 + var10 + arg0);
|
|
||||||
short var16 = (short) (var15 + arg3.get());
|
|
||||||
short var17 = (short) (var16 + 2);
|
|
||||||
short var18 = (short) (var17 / 4);
|
|
||||||
arg4.put(var18);
|
|
||||||
var11++;
|
|
||||||
}
|
|
||||||
var11 += arg0;
|
|
||||||
}
|
|
||||||
var11 += var10;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halveImage_ubyte(int arg0, int arg1, int arg2, ByteBuffer arg3, ByteBuffer arg4, int arg5, int arg6, int arg7) {
|
|
||||||
if (arg1 == 1 || arg2 == 1) {
|
|
||||||
assert arg1 != 1 || arg2 != 1;
|
|
||||||
halve1Dimage_ubyte(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int var11 = arg1 / 2;
|
|
||||||
int var12 = arg2 / 2;
|
|
||||||
boolean var13 = false;
|
|
||||||
int var14 = 0;
|
|
||||||
boolean var15 = false;
|
|
||||||
for (int var8 = 0; var8 < var12; var8++) {
|
|
||||||
for (int var9 = 0; var9 < var11; var9++) {
|
|
||||||
for (int var10 = 0; var10 < arg0; var10++) {
|
|
||||||
arg3.position(var14);
|
|
||||||
int var16 = arg3.get() & 0xFF;
|
|
||||||
arg3.position(var14 + arg7);
|
|
||||||
int var17 = var16 + (arg3.get() & 0xFF);
|
|
||||||
arg3.position(var14 + arg6);
|
|
||||||
int var18 = var17 + (arg3.get() & 0xFF);
|
|
||||||
arg3.position(var14 + arg6 + arg7);
|
|
||||||
int var19 = var18 + (arg3.get() & 0xFF) + 2;
|
|
||||||
arg4.put((byte) (var19 / 4));
|
|
||||||
var14 += arg5;
|
|
||||||
}
|
|
||||||
var14 += arg7;
|
|
||||||
}
|
|
||||||
var14 += arg6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halve1Dimage_ubyte(int arg0, int arg1, int arg2, ByteBuffer arg3, ByteBuffer arg4, int arg5, int arg6, int arg7) {
|
|
||||||
int var8 = arg1 / 2;
|
|
||||||
int var9 = arg2 / 2;
|
|
||||||
int var10 = 0;
|
|
||||||
int var11 = 0;
|
|
||||||
boolean var13 = false;
|
|
||||||
assert arg1 == 1 || arg2 == 1;
|
|
||||||
assert arg1 != arg2;
|
|
||||||
int var12;
|
|
||||||
int var14;
|
|
||||||
int var16;
|
|
||||||
if (arg2 == 1) {
|
|
||||||
assert arg1 != 1;
|
|
||||||
var9 = 1;
|
|
||||||
for (var12 = 0; var12 < var8; var12++) {
|
|
||||||
for (var14 = 0; var14 < arg0; var14++) {
|
|
||||||
arg3.position(var10);
|
|
||||||
var16 = arg3.get() & 0xFF;
|
|
||||||
arg3.position(var10 + arg7);
|
|
||||||
int var17 = var16 + (arg3.get() & 0xFF);
|
|
||||||
int var18 = var17 / 2;
|
|
||||||
arg4.put((byte) var18);
|
|
||||||
var10 += arg5;
|
|
||||||
var11++;
|
|
||||||
}
|
|
||||||
var10 += arg7;
|
|
||||||
}
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
var10 += var14;
|
|
||||||
} else if (arg1 == 1) {
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
assert arg2 != 1;
|
|
||||||
var8 = 1;
|
|
||||||
for (var12 = 0; var12 < var9; var12++) {
|
|
||||||
for (int var15 = 0; var15 < arg0; var15++) {
|
|
||||||
arg3.position(var10);
|
|
||||||
var16 = arg3.get() & 0xFF;
|
|
||||||
arg3.position(var10 + arg6);
|
|
||||||
var16 += arg3.get() & 0xFF;
|
|
||||||
var16 /= 2;
|
|
||||||
arg4.put((byte) var16);
|
|
||||||
var10 += arg5;
|
|
||||||
var11++;
|
|
||||||
}
|
|
||||||
var10 += var14;
|
|
||||||
var10 += arg6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
assert var10 == arg6 * arg2;
|
|
||||||
assert var11 == arg0 * arg5 * var8 * var9;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halveImage_byte(int arg0, int arg1, int arg2, ByteBuffer arg3, ByteBuffer arg4, int arg5, int arg6, int arg7) {
|
|
||||||
boolean var13 = false;
|
|
||||||
int var14 = 0;
|
|
||||||
boolean var15 = false;
|
|
||||||
if (arg1 == 1 || arg2 == 1) {
|
|
||||||
assert arg1 != 1 || arg2 != 1;
|
|
||||||
halve1Dimage_byte(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int var11 = arg1 / 2;
|
|
||||||
int var12 = arg2 / 2;
|
|
||||||
for (int var8 = 0; var8 < var12; var8++) {
|
|
||||||
for (int var9 = 0; var9 < var11; var9++) {
|
|
||||||
for (int var10 = 0; var10 < arg0; var10++) {
|
|
||||||
arg3.position(var14);
|
|
||||||
byte var16 = arg3.get();
|
|
||||||
arg3.position(var14 + arg7);
|
|
||||||
byte var17 = (byte) (var16 + arg3.get());
|
|
||||||
arg3.position(var14 + arg6);
|
|
||||||
byte var18 = (byte) (var17 + arg3.get());
|
|
||||||
arg3.position(var14 + arg6 + arg7);
|
|
||||||
byte var19 = (byte) (var18 + arg3.get());
|
|
||||||
byte var20 = (byte) (var19 + 2);
|
|
||||||
byte var21 = (byte) (var20 / 4);
|
|
||||||
arg4.put(var21);
|
|
||||||
var14 += arg5;
|
|
||||||
}
|
|
||||||
var14 += arg7;
|
|
||||||
}
|
|
||||||
var14 += arg6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halve1Dimage_byte(int arg0, int arg1, int arg2, ByteBuffer arg3, ByteBuffer arg4, int arg5, int arg6, int arg7) {
|
|
||||||
int var8 = arg1 / 2;
|
|
||||||
int var9 = arg1 / 2;
|
|
||||||
int var10 = 0;
|
|
||||||
int var11 = 0;
|
|
||||||
boolean var13 = false;
|
|
||||||
assert arg1 == 1 || arg2 == 1;
|
|
||||||
assert arg1 != arg2;
|
|
||||||
int var12;
|
|
||||||
int var14;
|
|
||||||
byte var16;
|
|
||||||
if (arg2 == 1) {
|
|
||||||
assert arg1 != 1;
|
|
||||||
var9 = 1;
|
|
||||||
for (var12 = 0; var12 < var8; var12++) {
|
|
||||||
for (var14 = 0; var14 < arg0; var14++) {
|
|
||||||
arg3.position(var10);
|
|
||||||
var16 = arg3.get();
|
|
||||||
arg3.position(var10 + arg7);
|
|
||||||
byte var17 = (byte) (var16 + arg3.get());
|
|
||||||
byte var18 = (byte) (var17 / 2);
|
|
||||||
arg4.put(var18);
|
|
||||||
var10 += arg5;
|
|
||||||
var11++;
|
|
||||||
}
|
|
||||||
var10 += arg7;
|
|
||||||
}
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
int var10000 = var10 + var14;
|
|
||||||
} else if (arg1 == 1) {
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
assert arg2 != 1;
|
|
||||||
var8 = 1;
|
|
||||||
for (var12 = 0; var12 < var9; var12++) {
|
|
||||||
for (int var15 = 0; var15 < arg0; var15++) {
|
|
||||||
arg3.position(var10);
|
|
||||||
var16 = arg3.get();
|
|
||||||
arg3.position(var10 + arg6);
|
|
||||||
var16 += arg3.get();
|
|
||||||
var16 = (byte) (var16 / 2);
|
|
||||||
var10 += arg5;
|
|
||||||
var11++;
|
|
||||||
}
|
|
||||||
var10 += var14;
|
|
||||||
var10 += arg6;
|
|
||||||
}
|
|
||||||
assert var10 == arg6 * arg2;
|
|
||||||
}
|
|
||||||
assert var11 == arg0 * arg5 * var8 * var9;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halveImage_ushort(int arg0, int arg1, int arg2, ByteBuffer arg3, ShortBuffer arg4, int arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
boolean var15 = false;
|
|
||||||
int var16 = 0;
|
|
||||||
boolean var17 = false;
|
|
||||||
if (arg1 == 1 || arg2 == 1) {
|
|
||||||
assert arg1 != 1 || arg2 != 1;
|
|
||||||
halve1Dimage_ushort(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int var13 = arg1 / 2;
|
|
||||||
int var14 = arg2 / 2;
|
|
||||||
int var9;
|
|
||||||
int var10;
|
|
||||||
int var11;
|
|
||||||
int var18;
|
|
||||||
if (!arg8) {
|
|
||||||
for (var9 = 0; var9 < var14; var9++) {
|
|
||||||
for (var10 = 0; var10 < var13; var10++) {
|
|
||||||
for (var11 = 0; var11 < arg0; var11++) {
|
|
||||||
arg3.position(var16);
|
|
||||||
var18 = arg3.getShort() & 0xFFFF;
|
|
||||||
arg3.position(var16 + arg7);
|
|
||||||
int var19 = var18 + (arg3.getShort() & 0xFFFF);
|
|
||||||
arg3.position(var16 + arg6);
|
|
||||||
int var20 = var19 + (arg3.getShort() & 0xFFFF);
|
|
||||||
arg3.position(var16 + arg6 + arg7);
|
|
||||||
int var21 = var20 + (arg3.getShort() & 0xFFFF);
|
|
||||||
arg4.put((short) ((var21 + 2) / 4));
|
|
||||||
var16 += arg5;
|
|
||||||
}
|
|
||||||
var16 += arg7;
|
|
||||||
}
|
|
||||||
var16 += arg6;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (var9 = 0; var9 < var14; var9++) {
|
|
||||||
for (var10 = 0; var10 < var13; var10++) {
|
|
||||||
for (var11 = 0; var11 < arg0; var11++) {
|
|
||||||
arg3.position(var16);
|
|
||||||
var18 = Mipmap.GLU_SWAP_2_BYTES(arg3.getShort()) & 0xFFFF;
|
|
||||||
arg3.position(var16 + arg7);
|
|
||||||
var18 += Mipmap.GLU_SWAP_2_BYTES(arg3.getShort()) & 0xFFFF;
|
|
||||||
arg3.position(var16 + arg6);
|
|
||||||
var18 += Mipmap.GLU_SWAP_2_BYTES(arg3.getShort()) & 0xFFFF;
|
|
||||||
arg3.position(var16 + arg6 + arg7);
|
|
||||||
var18 += Mipmap.GLU_SWAP_2_BYTES(arg3.getShort()) & 0xFFFF;
|
|
||||||
arg4.put((short) ((var18 + 2) / 4));
|
|
||||||
var16 += arg5;
|
|
||||||
}
|
|
||||||
var16 += arg7;
|
|
||||||
}
|
|
||||||
var16 += arg6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halve1Dimage_ushort(int arg0, int arg1, int arg2, ByteBuffer arg3, ShortBuffer arg4, int arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
int var9 = arg1 / 2;
|
|
||||||
int var10 = arg2 / 2;
|
|
||||||
int var11 = 0;
|
|
||||||
int var12 = 0;
|
|
||||||
assert arg1 == 1 || arg2 == 1;
|
|
||||||
assert arg1 != arg2;
|
|
||||||
int var13;
|
|
||||||
int var14;
|
|
||||||
if (arg2 == 1) {
|
|
||||||
assert arg1 != 1;
|
|
||||||
var10 = 1;
|
|
||||||
for (var13 = 0; var13 < var9; var13++) {
|
|
||||||
for (var14 = 0; var14 < var10; var14++) {
|
|
||||||
int[] var15 = new int[2];
|
|
||||||
if (arg8) {
|
|
||||||
arg3.position(var11);
|
|
||||||
var15[0] = Mipmap.GLU_SWAP_2_BYTES(arg3.getShort()) & 0xFFFF;
|
|
||||||
arg3.position(var11 + arg7);
|
|
||||||
var15[1] = Mipmap.GLU_SWAP_2_BYTES(arg3.getShort()) & 0xFFFF;
|
|
||||||
} else {
|
|
||||||
arg3.position(var11);
|
|
||||||
var15[0] = arg3.getShort() & 0xFFFF;
|
|
||||||
arg3.position(var11 + arg7);
|
|
||||||
var15[1] = arg3.getShort() & 0xFFFF;
|
|
||||||
}
|
|
||||||
arg4.put((short) ((var15[0] + var15[1]) / 2));
|
|
||||||
var11 += arg5;
|
|
||||||
var12 += 2;
|
|
||||||
}
|
|
||||||
var11 += arg7;
|
|
||||||
}
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
int var10000 = var11 + var14;
|
|
||||||
} else if (arg1 == 1) {
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
assert arg2 != 1;
|
|
||||||
var9 = 1;
|
|
||||||
for (var13 = 0; var13 < var10; var13++) {
|
|
||||||
for (int var17 = 0; var17 < arg0; var17++) {
|
|
||||||
int[] var16 = new int[2];
|
|
||||||
if (arg8) {
|
|
||||||
arg3.position(var11);
|
|
||||||
var16[0] = Mipmap.GLU_SWAP_2_BYTES(arg3.getShort()) & 0xFFFF;
|
|
||||||
arg3.position(var11 + arg6);
|
|
||||||
var16[0] = Mipmap.GLU_SWAP_2_BYTES(arg3.getShort()) & 0xFFFF;
|
|
||||||
} else {
|
|
||||||
arg3.position(var11);
|
|
||||||
var16[0] = arg3.getShort() & 0xFFFF;
|
|
||||||
arg3.position(var11 + arg6);
|
|
||||||
var16[1] = arg3.getShort() & 0xFFFF;
|
|
||||||
}
|
|
||||||
arg4.put((short) ((var16[0] + var16[1]) / 2));
|
|
||||||
var11 += arg5;
|
|
||||||
var12 += 2;
|
|
||||||
}
|
|
||||||
var11 += var14;
|
|
||||||
var11 += arg6;
|
|
||||||
}
|
|
||||||
assert var11 == arg6 * arg2;
|
|
||||||
}
|
|
||||||
assert var12 == arg0 * arg5 * var9 * var10;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halveImage_short(int arg0, int arg1, int arg2, ByteBuffer arg3, ShortBuffer arg4, int arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
boolean var15 = false;
|
|
||||||
int var16 = 0;
|
|
||||||
boolean var17 = false;
|
|
||||||
if (arg1 == 1 || arg2 == 1) {
|
|
||||||
assert arg1 != 1 || arg2 != 1;
|
|
||||||
halve1Dimage_short(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int var13 = arg1 / 2;
|
|
||||||
int var14 = arg2 / 2;
|
|
||||||
int var9;
|
|
||||||
int var10;
|
|
||||||
int var11;
|
|
||||||
short var20;
|
|
||||||
if (!arg8) {
|
|
||||||
for (var9 = 0; var9 < var14; var9++) {
|
|
||||||
for (var10 = 0; var10 < var13; var10++) {
|
|
||||||
for (var11 = 0; var11 < arg0; var11++) {
|
|
||||||
arg3.position(var16);
|
|
||||||
var20 = arg3.getShort();
|
|
||||||
arg3.position(var16 + arg7);
|
|
||||||
short var21 = (short) (var20 + arg3.getShort());
|
|
||||||
arg3.position(var16 + arg6);
|
|
||||||
short var22 = (short) (var21 + arg3.getShort());
|
|
||||||
arg3.position(var16 + arg6 + arg7);
|
|
||||||
short var23 = (short) (var22 + arg3.getShort());
|
|
||||||
short var24 = (short) (var23 + 2);
|
|
||||||
short var25 = (short) (var24 / 4);
|
|
||||||
arg4.put(var25);
|
|
||||||
var16 += arg5;
|
|
||||||
}
|
|
||||||
var16 += arg7;
|
|
||||||
}
|
|
||||||
var16 += arg6;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (var9 = 0; var9 < var14; var9++) {
|
|
||||||
for (var10 = 0; var10 < var13; var10++) {
|
|
||||||
for (var11 = 0; var11 < arg0; var11++) {
|
|
||||||
arg3.position(var16);
|
|
||||||
var20 = Mipmap.GLU_SWAP_2_BYTES(arg3.getShort());
|
|
||||||
arg3.position(var16 + arg7);
|
|
||||||
var20 += Mipmap.GLU_SWAP_2_BYTES(arg3.getShort());
|
|
||||||
arg3.position(var16 + arg6);
|
|
||||||
var20 += Mipmap.GLU_SWAP_2_BYTES(arg3.getShort());
|
|
||||||
arg3.position(var16 + arg6 + arg7);
|
|
||||||
var20 += Mipmap.GLU_SWAP_2_BYTES(arg3.getShort());
|
|
||||||
var20 = (short) (var20 + 2);
|
|
||||||
var20 = (short) (var20 / 4);
|
|
||||||
arg4.put(var20);
|
|
||||||
var16 += arg5;
|
|
||||||
}
|
|
||||||
var16 += arg7;
|
|
||||||
}
|
|
||||||
var16 += arg6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halve1Dimage_short(int arg0, int arg1, int arg2, ByteBuffer arg3, ShortBuffer arg4, int arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
int var9 = arg1 / 2;
|
|
||||||
int var10 = arg2 / 2;
|
|
||||||
int var11 = 0;
|
|
||||||
int var12 = 0;
|
|
||||||
assert arg1 == 1 || arg2 == 1;
|
|
||||||
assert arg1 != arg2;
|
|
||||||
int var13;
|
|
||||||
int var14;
|
|
||||||
if (arg2 == 1) {
|
|
||||||
assert arg1 != 1;
|
|
||||||
var10 = 1;
|
|
||||||
for (var13 = 0; var13 < var9; var13++) {
|
|
||||||
for (var14 = 0; var14 < arg0; var14++) {
|
|
||||||
short[] var15 = new short[2];
|
|
||||||
if (arg8) {
|
|
||||||
arg3.position(var11);
|
|
||||||
var15[0] = Mipmap.GLU_SWAP_2_BYTES(arg3.getShort());
|
|
||||||
arg3.position(var11 + arg7);
|
|
||||||
var15[1] = Mipmap.GLU_SWAP_2_BYTES(arg3.getShort());
|
|
||||||
} else {
|
|
||||||
arg3.position(var11);
|
|
||||||
var15[0] = arg3.getShort();
|
|
||||||
arg3.position(var11 + arg7);
|
|
||||||
var15[1] = arg3.getShort();
|
|
||||||
}
|
|
||||||
arg4.put((short) ((var15[0] + var15[1]) / 2));
|
|
||||||
var11 += arg5;
|
|
||||||
var12 += 2;
|
|
||||||
}
|
|
||||||
var11 += arg7;
|
|
||||||
}
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
int var10000 = var11 + var14;
|
|
||||||
} else if (arg1 == 1) {
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
assert arg2 != 1;
|
|
||||||
var9 = 1;
|
|
||||||
for (var13 = 0; var13 < var10; var13++) {
|
|
||||||
for (int var17 = 0; var17 < arg0; var17++) {
|
|
||||||
short[] var16 = new short[2];
|
|
||||||
if (arg8) {
|
|
||||||
arg3.position(var11);
|
|
||||||
var16[0] = Mipmap.GLU_SWAP_2_BYTES(arg3.getShort());
|
|
||||||
arg3.position(var11 + arg6);
|
|
||||||
var16[1] = Mipmap.GLU_SWAP_2_BYTES(arg3.getShort());
|
|
||||||
} else {
|
|
||||||
arg3.position(var11);
|
|
||||||
var16[0] = arg3.getShort();
|
|
||||||
arg3.position(var11 + arg6);
|
|
||||||
var16[1] = arg3.getShort();
|
|
||||||
}
|
|
||||||
arg4.put((short) ((var16[0] + var16[1]) / 2));
|
|
||||||
var11 += arg5;
|
|
||||||
var12 += 2;
|
|
||||||
}
|
|
||||||
var11 += var14;
|
|
||||||
var11 += arg6;
|
|
||||||
}
|
|
||||||
assert var11 == arg6 * arg2;
|
|
||||||
}
|
|
||||||
assert var12 == arg0 * arg5 * var9 * var10;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halveImage_uint(int arg0, int arg1, int arg2, ByteBuffer arg3, IntBuffer arg4, int arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
boolean var15 = false;
|
|
||||||
int var16 = 0;
|
|
||||||
double var17 = 0.0D;
|
|
||||||
if (arg1 == 1 || arg2 == 1) {
|
|
||||||
assert arg1 != 1 || arg2 != 1;
|
|
||||||
halve1Dimage_uint(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int var13 = arg1 / 2;
|
|
||||||
int var14 = arg2 / 2;
|
|
||||||
int var9;
|
|
||||||
int var10;
|
|
||||||
int var11;
|
|
||||||
if (!arg8) {
|
|
||||||
for (var9 = 0; var9 < var14; var9++) {
|
|
||||||
for (var10 = 0; var10 < var13; var10++) {
|
|
||||||
for (var11 = 0; var11 < arg0; var11++) {
|
|
||||||
arg3.position(var16);
|
|
||||||
var17 = (long) arg3.getInt() & 0x7FFFFFFFL;
|
|
||||||
arg3.position(var16 + arg7);
|
|
||||||
var17 += (long) arg3.getInt() & 0x7FFFFFFFL;
|
|
||||||
arg3.position(var16 + arg6);
|
|
||||||
var17 += (long) arg3.getInt() & 0x7FFFFFFFL;
|
|
||||||
arg3.position(var16 + arg6 + arg7);
|
|
||||||
var17 += (long) arg3.getInt() & 0x7FFFFFFFL;
|
|
||||||
arg4.put((int) (var17 / 4.0D + 0.5D));
|
|
||||||
var16 += arg5;
|
|
||||||
}
|
|
||||||
var16 += arg7;
|
|
||||||
}
|
|
||||||
var16 += arg6;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (var9 = 0; var9 < var14; var9++) {
|
|
||||||
for (var10 = 0; var10 < var13; var10++) {
|
|
||||||
for (var11 = 0; var11 < arg0; var11++) {
|
|
||||||
arg3.position(var16);
|
|
||||||
double var19 = (double) (Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF);
|
|
||||||
arg3.position(var16 + arg7);
|
|
||||||
double var21 = var19 + (double) (Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF);
|
|
||||||
arg3.position(var16 + arg6);
|
|
||||||
double var22 = var21 + (double) (Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF);
|
|
||||||
arg3.position(var16 + arg6 + arg7);
|
|
||||||
double var10000 = var22 + (double) (Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF);
|
|
||||||
var17 /= 4.0D;
|
|
||||||
var17 += 0.5D;
|
|
||||||
arg4.put((int) var17);
|
|
||||||
var16 += arg5;
|
|
||||||
}
|
|
||||||
var16 += arg7;
|
|
||||||
}
|
|
||||||
var16 += arg6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halve1Dimage_uint(int arg0, int arg1, int arg2, ByteBuffer arg3, IntBuffer arg4, int arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
int var9 = arg1 / 2;
|
|
||||||
int var10 = arg2 / 2;
|
|
||||||
int var11 = 0;
|
|
||||||
int var12 = 0;
|
|
||||||
assert arg1 == 1 || arg2 == 1;
|
|
||||||
assert arg1 != arg2;
|
|
||||||
int var13;
|
|
||||||
int var14;
|
|
||||||
if (arg2 == 1) {
|
|
||||||
assert arg1 != 1;
|
|
||||||
var10 = 1;
|
|
||||||
for (var13 = 0; var13 < var9; var13++) {
|
|
||||||
for (var14 = 0; var14 < var10; var14++) {
|
|
||||||
long[] var15 = new long[2];
|
|
||||||
if (arg8) {
|
|
||||||
arg3.position(var11);
|
|
||||||
var15[0] = Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF;
|
|
||||||
arg3.position(var11 + arg7);
|
|
||||||
var15[1] = Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF;
|
|
||||||
} else {
|
|
||||||
arg3.position(var11);
|
|
||||||
var15[0] = arg3.getInt() & 0xFFFFFFFF;
|
|
||||||
arg3.position(var11 + arg7);
|
|
||||||
var15[1] = arg3.getInt() & 0xFFFFFFFF;
|
|
||||||
}
|
|
||||||
arg4.put((int) ((double) (var15[0] + var15[1]) / 2.0D));
|
|
||||||
var11 += arg5;
|
|
||||||
var12 += 4;
|
|
||||||
}
|
|
||||||
var11 += arg7;
|
|
||||||
}
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
int var10000 = var11 + var14;
|
|
||||||
} else if (arg1 == 1) {
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
assert arg2 != 1;
|
|
||||||
var9 = 1;
|
|
||||||
for (var13 = 0; var13 < var10; var13++) {
|
|
||||||
for (int var17 = 0; var17 < arg0; var17++) {
|
|
||||||
long[] var16 = new long[2];
|
|
||||||
if (arg8) {
|
|
||||||
arg3.position(var11);
|
|
||||||
var16[0] = Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF;
|
|
||||||
arg3.position(var11 + arg7);
|
|
||||||
var16[0] = Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF;
|
|
||||||
} else {
|
|
||||||
arg3.position(var11);
|
|
||||||
var16[0] = arg3.getInt() & 0xFFFFFFFF;
|
|
||||||
arg3.position(var11 + arg6);
|
|
||||||
var16[1] = arg3.getInt() & 0xFFFFFFFF;
|
|
||||||
}
|
|
||||||
arg4.put((int) ((double) (var16[0] + var16[1]) / 2.0D));
|
|
||||||
var11 += arg5;
|
|
||||||
var12 += 4;
|
|
||||||
}
|
|
||||||
var11 += var14;
|
|
||||||
var11 += arg6;
|
|
||||||
}
|
|
||||||
assert var11 == arg6 * arg2;
|
|
||||||
}
|
|
||||||
assert var12 == arg0 * arg5 * var9 * var10;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halveImage_int(int arg0, int arg1, int arg2, ByteBuffer arg3, IntBuffer arg4, int arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
boolean var15 = false;
|
|
||||||
int var16 = 0;
|
|
||||||
boolean var17 = false;
|
|
||||||
if (arg1 == 1 || arg2 == 1) {
|
|
||||||
assert arg1 != 1 || arg2 != 1;
|
|
||||||
halve1Dimage_int(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int var13 = arg1 / 2;
|
|
||||||
int var14 = arg2 / 2;
|
|
||||||
int var9;
|
|
||||||
int var10;
|
|
||||||
int var11;
|
|
||||||
if (!arg8) {
|
|
||||||
for (var9 = 0; var9 < var14; var9++) {
|
|
||||||
for (var10 = 0; var10 < var13; var10++) {
|
|
||||||
for (var11 = 0; var11 < arg0; var11++) {
|
|
||||||
arg3.position(var16);
|
|
||||||
int var21 = arg3.getInt();
|
|
||||||
arg3.position(var16 + arg7);
|
|
||||||
int var22 = var21 + arg3.getInt();
|
|
||||||
arg3.position(var16 + arg6);
|
|
||||||
int var23 = var22 + arg3.getInt();
|
|
||||||
arg3.position(var16 + arg6 + arg7);
|
|
||||||
int var25 = var23 + arg3.getInt();
|
|
||||||
int var27 = (int) ((float) var25 / 4.0F + 0.5F);
|
|
||||||
arg4.put(var27);
|
|
||||||
var16 += arg5;
|
|
||||||
}
|
|
||||||
var16 += arg7;
|
|
||||||
}
|
|
||||||
var16 += arg6;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (var9 = 0; var9 < var14; var9++) {
|
|
||||||
for (var10 = 0; var10 < var13; var10++) {
|
|
||||||
for (var11 = 0; var11 < arg0; var11++) {
|
|
||||||
arg3.position(var16);
|
|
||||||
long var18 = (long) (Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF);
|
|
||||||
float var20 = (float) var18;
|
|
||||||
arg3.position(var16 + arg7);
|
|
||||||
long var24 = (long) (Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF);
|
|
||||||
float var29 = var20 + (float) var24;
|
|
||||||
arg3.position(var16 + arg6);
|
|
||||||
long var26 = (long) (Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF);
|
|
||||||
float var30 = var29 + (float) var26;
|
|
||||||
arg3.position(var16 + arg6 + arg7);
|
|
||||||
long var28 = (long) (Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF);
|
|
||||||
float var31 = var30 + (float) var28;
|
|
||||||
arg4.put((int) (var31 / 4.0F + 0.5F));
|
|
||||||
var16 += arg5;
|
|
||||||
}
|
|
||||||
var16 += arg7;
|
|
||||||
}
|
|
||||||
var16 += arg6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halve1Dimage_int(int arg0, int arg1, int arg2, ByteBuffer arg3, IntBuffer arg4, int arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
int var9 = arg1 / 2;
|
|
||||||
int var10 = arg2 / 2;
|
|
||||||
int var11 = 0;
|
|
||||||
int var12 = 0;
|
|
||||||
assert arg1 == 1 || arg2 == 1;
|
|
||||||
assert arg1 != arg2;
|
|
||||||
int var13;
|
|
||||||
int var14;
|
|
||||||
if (arg2 == 1) {
|
|
||||||
assert arg1 != 1;
|
|
||||||
var10 = 1;
|
|
||||||
for (var13 = 0; var13 < var9; var13++) {
|
|
||||||
for (var14 = 0; var14 < arg0; var14++) {
|
|
||||||
long[] var15 = new long[2];
|
|
||||||
if (arg8) {
|
|
||||||
arg3.position(var11);
|
|
||||||
var15[0] = Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF;
|
|
||||||
arg3.position(var11 + arg7);
|
|
||||||
var15[1] = Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF;
|
|
||||||
} else {
|
|
||||||
arg3.position(var11);
|
|
||||||
var15[0] = arg3.getInt() & 0xFFFFFFFF;
|
|
||||||
arg3.position(var11 + arg7);
|
|
||||||
var15[1] = arg3.getInt() & 0xFFFFFFFF;
|
|
||||||
}
|
|
||||||
arg4.put((int) (((float) var15[0] + (float) var15[1]) / 2.0F));
|
|
||||||
var11 += arg5;
|
|
||||||
var12 += 4;
|
|
||||||
}
|
|
||||||
var11 += arg7;
|
|
||||||
}
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
int var10000 = var11 + var14;
|
|
||||||
} else if (arg1 == 1) {
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
assert arg2 != 1;
|
|
||||||
var9 = 1;
|
|
||||||
for (var13 = 0; var13 < var10; var13++) {
|
|
||||||
for (int var17 = 0; var17 < arg0; var17++) {
|
|
||||||
long[] var16 = new long[2];
|
|
||||||
if (arg8) {
|
|
||||||
arg3.position(var11);
|
|
||||||
var16[0] = Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF;
|
|
||||||
arg3.position(var11 + arg6);
|
|
||||||
var16[1] = Mipmap.GLU_SWAP_4_BYTES(arg3.getInt()) & 0xFFFFFFFF;
|
|
||||||
} else {
|
|
||||||
arg3.position(var11);
|
|
||||||
var16[0] = arg3.getInt() & 0xFFFFFFFF;
|
|
||||||
arg3.position(var11 + arg6);
|
|
||||||
var16[1] = arg3.getInt() & 0xFFFFFFFF;
|
|
||||||
}
|
|
||||||
arg4.put((int) (((float) var16[0] + (float) var16[1]) / 2.0F));
|
|
||||||
var11 += arg5;
|
|
||||||
var12 += 4;
|
|
||||||
}
|
|
||||||
var11 += var14;
|
|
||||||
var11 += arg6;
|
|
||||||
}
|
|
||||||
assert var11 == arg6 * arg2;
|
|
||||||
}
|
|
||||||
assert var12 == arg0 * arg5 * var9 * var10;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halveImage_float(int arg0, int arg1, int arg2, ByteBuffer arg3, FloatBuffer arg4, int arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
boolean var15 = false;
|
|
||||||
int var16 = 0;
|
|
||||||
float var17 = 0.0F;
|
|
||||||
if (arg1 == 1 || arg2 == 1) {
|
|
||||||
assert arg1 != 1 || arg2 != 1;
|
|
||||||
halve1Dimage_float(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int var13 = arg1 / 2;
|
|
||||||
int var14 = arg2 / 2;
|
|
||||||
int var9;
|
|
||||||
int var10;
|
|
||||||
int var11;
|
|
||||||
if (!arg8) {
|
|
||||||
for (var9 = 0; var9 < var14; var9++) {
|
|
||||||
for (var10 = 0; var10 < var13; var10++) {
|
|
||||||
for (var11 = 0; var11 < arg0; var11++) {
|
|
||||||
arg3.position(var16);
|
|
||||||
var17 = arg3.getFloat();
|
|
||||||
arg3.position(var16 + arg7);
|
|
||||||
var17 += arg3.getFloat();
|
|
||||||
arg3.position(var16 + arg6);
|
|
||||||
var17 += arg3.getFloat();
|
|
||||||
arg3.position(var16 + arg6 + arg7);
|
|
||||||
var17 /= 4.0F;
|
|
||||||
arg4.put(var17);
|
|
||||||
var16 += arg5;
|
|
||||||
}
|
|
||||||
var16 += arg7;
|
|
||||||
}
|
|
||||||
var16 += arg6;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (var9 = 0; var9 < var14; var9++) {
|
|
||||||
for (var10 = 0; var10 < var13; var10++) {
|
|
||||||
for (var11 = 0; var11 < arg0; var11++) {
|
|
||||||
arg3.position(var16);
|
|
||||||
float var18 = Mipmap.GLU_SWAP_4_BYTES(arg3.getFloat());
|
|
||||||
arg3.position(var16 + arg7);
|
|
||||||
float var19 = var18 + Mipmap.GLU_SWAP_4_BYTES(arg3.getFloat());
|
|
||||||
arg3.position(var16 + arg6);
|
|
||||||
float var20 = var19 + Mipmap.GLU_SWAP_4_BYTES(arg3.getFloat());
|
|
||||||
arg3.position(var16 + arg6 + arg7);
|
|
||||||
float var21 = var20 + Mipmap.GLU_SWAP_4_BYTES(arg3.getFloat());
|
|
||||||
arg4.put(var21 / 4.0F);
|
|
||||||
var16 += arg5;
|
|
||||||
}
|
|
||||||
var16 += arg7;
|
|
||||||
}
|
|
||||||
var16 += arg6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halve1Dimage_float(int arg0, int arg1, int arg2, ByteBuffer arg3, FloatBuffer arg4, int arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
int var9 = arg1 / 2;
|
|
||||||
int var10 = arg2 / 2;
|
|
||||||
int var11 = 0;
|
|
||||||
int var12 = 0;
|
|
||||||
assert arg1 == 1 || arg2 == 1;
|
|
||||||
assert arg1 != arg2;
|
|
||||||
int var13;
|
|
||||||
int var14;
|
|
||||||
if (arg2 == 1) {
|
|
||||||
assert arg1 != 1;
|
|
||||||
var10 = 1;
|
|
||||||
for (var13 = 0; var13 < var9; var13++) {
|
|
||||||
for (var14 = 0; var14 < arg0; var14++) {
|
|
||||||
float[] var15 = new float[2];
|
|
||||||
if (arg8) {
|
|
||||||
arg3.position(var11);
|
|
||||||
var15[0] = Mipmap.GLU_SWAP_4_BYTES(arg3.getFloat());
|
|
||||||
arg3.position(var11 + arg7);
|
|
||||||
var15[1] = Mipmap.GLU_SWAP_4_BYTES(arg3.getFloat());
|
|
||||||
} else {
|
|
||||||
arg3.position(var11);
|
|
||||||
var15[0] = arg3.getFloat();
|
|
||||||
arg3.position(var11 + arg7);
|
|
||||||
var15[1] = arg3.getFloat();
|
|
||||||
}
|
|
||||||
arg4.put((var15[0] + var15[1]) / 2.0F);
|
|
||||||
var11 += arg5;
|
|
||||||
var12 += 4;
|
|
||||||
}
|
|
||||||
var11 += arg7;
|
|
||||||
}
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
int var10000 = var11 + var14;
|
|
||||||
} else if (arg1 == 1) {
|
|
||||||
var14 = arg6 - arg1 * arg7;
|
|
||||||
assert arg2 != 1;
|
|
||||||
var9 = 1;
|
|
||||||
for (var13 = 0; var13 < var10; var13++) {
|
|
||||||
for (int var17 = 0; var17 < arg0; var17++) {
|
|
||||||
float[] var16 = new float[2];
|
|
||||||
if (arg8) {
|
|
||||||
arg3.position(var11);
|
|
||||||
var16[0] = Mipmap.GLU_SWAP_4_BYTES(arg3.getFloat());
|
|
||||||
arg3.position(var11 + arg6);
|
|
||||||
var16[1] = Mipmap.GLU_SWAP_4_BYTES(arg3.getFloat());
|
|
||||||
} else {
|
|
||||||
arg3.position(var11);
|
|
||||||
var16[0] = arg3.getFloat();
|
|
||||||
arg3.position(var11 + arg6);
|
|
||||||
var16[1] = arg3.getFloat();
|
|
||||||
}
|
|
||||||
arg4.put((var16[0] + var16[1]) / 2.0F);
|
|
||||||
var11 += arg5;
|
|
||||||
var12 += 4;
|
|
||||||
}
|
|
||||||
var11 += var14;
|
|
||||||
var11 += arg6;
|
|
||||||
}
|
|
||||||
assert var11 == arg6 * arg2;
|
|
||||||
}
|
|
||||||
assert var12 == arg0 * arg5 * var9 * var10;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halveImagePackedPixel(int arg0, Extract arg1, int arg2, int arg3, ByteBuffer arg4, ByteBuffer arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
if (arg2 == 1 || arg3 == 1) {
|
|
||||||
assert arg2 != 1 || arg3 != 1;
|
|
||||||
halve1DimagePackedPixel(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int var11 = arg2 / 2;
|
|
||||||
int var12 = arg3 / 2;
|
|
||||||
int var13 = 0;
|
|
||||||
int var14 = arg7 - arg2 * arg6;
|
|
||||||
int var15 = 0;
|
|
||||||
for (int var9 = 0; var9 < var12; var9++) {
|
|
||||||
for (int var10 = 0; var10 < var11; var10++) {
|
|
||||||
float[] var16 = new float[4];
|
|
||||||
float[][] var17 = new float[4][4];
|
|
||||||
arg4.position(var13);
|
|
||||||
arg1.extract(arg8, arg4, var17[0]);
|
|
||||||
arg4.position(var13 + arg6);
|
|
||||||
arg1.extract(arg8, arg4, var17[1]);
|
|
||||||
arg4.position(var13 + arg7);
|
|
||||||
arg1.extract(arg8, arg4, var17[2]);
|
|
||||||
arg4.position(var13 + arg7 + arg6);
|
|
||||||
arg1.extract(arg8, arg4, var17[3]);
|
|
||||||
for (int var18 = 0; var18 < arg0; var18++) {
|
|
||||||
boolean var19 = false;
|
|
||||||
var16[var18] = 0.0F;
|
|
||||||
for (int var20 = 0; var20 < 4; var20++) {
|
|
||||||
var16[var18] += var17[var20][var18];
|
|
||||||
}
|
|
||||||
var16[var18] /= 4.0F;
|
|
||||||
}
|
|
||||||
arg1.shove(var16, var15, arg5);
|
|
||||||
var15++;
|
|
||||||
var13 += arg6 + arg6;
|
|
||||||
}
|
|
||||||
var13 += var14;
|
|
||||||
var13 += arg7;
|
|
||||||
}
|
|
||||||
assert var13 == arg7 * arg3;
|
|
||||||
assert var15 == var11 * var12;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void halve1DimagePackedPixel(int arg0, Extract arg1, int arg2, int arg3, ByteBuffer arg4, ByteBuffer arg5, int arg6, int arg7, boolean arg8) {
|
|
||||||
int var9 = arg2 / 2;
|
|
||||||
int var10 = arg3 / 2;
|
|
||||||
int var11 = 0;
|
|
||||||
assert arg2 == 1 || arg3 == 1;
|
|
||||||
assert arg2 != arg3;
|
|
||||||
int var12;
|
|
||||||
int var13;
|
|
||||||
float[] var14;
|
|
||||||
float[][] var15;
|
|
||||||
int var16;
|
|
||||||
boolean var17;
|
|
||||||
int var21;
|
|
||||||
if (arg3 == 1) {
|
|
||||||
var13 = 0;
|
|
||||||
assert arg2 != 1;
|
|
||||||
byte var19 = 1;
|
|
||||||
for (var12 = 0; var12 < var9; var12++) {
|
|
||||||
var14 = new float[4];
|
|
||||||
var15 = new float[2][4];
|
|
||||||
arg4.position(var11);
|
|
||||||
arg1.extract(arg8, arg4, var15[0]);
|
|
||||||
arg4.position(var11 + arg6);
|
|
||||||
arg1.extract(arg8, arg4, var15[1]);
|
|
||||||
for (var16 = 0; var16 < arg0; var16++) {
|
|
||||||
var17 = false;
|
|
||||||
var14[var16] = 0.0F;
|
|
||||||
for (var21 = 0; var21 < 2; var21++) {
|
|
||||||
var14[var16] += var15[var21][var16];
|
|
||||||
}
|
|
||||||
var14[var16] /= 2.0F;
|
|
||||||
}
|
|
||||||
arg1.shove(var14, var13, arg5);
|
|
||||||
var13++;
|
|
||||||
var11 += arg6 + arg6;
|
|
||||||
}
|
|
||||||
int var20 = arg7 - arg2 * arg6;
|
|
||||||
var11 += var20;
|
|
||||||
assert var11 == arg7;
|
|
||||||
assert var13 == var9 * var19;
|
|
||||||
} else if (arg2 == 1) {
|
|
||||||
var13 = 0;
|
|
||||||
assert arg3 != 1;
|
|
||||||
byte var18 = 1;
|
|
||||||
for (var12 = 0; var12 < var10; var12++) {
|
|
||||||
var14 = new float[4];
|
|
||||||
var15 = new float[2][4];
|
|
||||||
arg4.position(var11);
|
|
||||||
arg1.extract(arg8, arg4, var15[0]);
|
|
||||||
arg4.position(var11 + arg7);
|
|
||||||
arg1.extract(arg8, arg4, var15[1]);
|
|
||||||
for (var16 = 0; var16 < arg0; var16++) {
|
|
||||||
var17 = false;
|
|
||||||
var14[var16] = 0.0F;
|
|
||||||
for (var21 = 0; var21 < 2; var21++) {
|
|
||||||
var14[var16] += var15[var21][var16];
|
|
||||||
}
|
|
||||||
var14[var16] /= 2.0F;
|
|
||||||
}
|
|
||||||
arg1.shove(var14, var13, arg5);
|
|
||||||
var13++;
|
|
||||||
var11 += arg7 + arg7;
|
|
||||||
}
|
|
||||||
assert var11 == arg7;
|
|
||||||
assert var13 == var18 * var10;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,318 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
import java.nio.ShortBuffer;
|
|
||||||
|
|
||||||
public class Image {
|
|
||||||
|
|
||||||
public static void fill_image(PixelStorageModes arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5, ByteBuffer arg6, ShortBuffer arg7) {
|
|
||||||
int var16 = 0;
|
|
||||||
Object var22 = null;
|
|
||||||
switch(arg4) {
|
|
||||||
case 32818:
|
|
||||||
var22 = new Extract332();
|
|
||||||
break;
|
|
||||||
case 32819:
|
|
||||||
var22 = new Extract4444();
|
|
||||||
break;
|
|
||||||
case 32820:
|
|
||||||
var22 = new Extract5551();
|
|
||||||
break;
|
|
||||||
case 32821:
|
|
||||||
var22 = new Extract8888();
|
|
||||||
break;
|
|
||||||
case 32822:
|
|
||||||
var22 = new Extract1010102();
|
|
||||||
break;
|
|
||||||
case 33634:
|
|
||||||
var22 = new Extract233rev();
|
|
||||||
break;
|
|
||||||
case 33635:
|
|
||||||
var22 = new Extract565();
|
|
||||||
break;
|
|
||||||
case 33636:
|
|
||||||
var22 = new Extract565rev();
|
|
||||||
break;
|
|
||||||
case 33637:
|
|
||||||
var22 = new Extract4444rev();
|
|
||||||
break;
|
|
||||||
case 33638:
|
|
||||||
var22 = new Extract1555rev();
|
|
||||||
break;
|
|
||||||
case 33639:
|
|
||||||
var22 = new Extract8888rev();
|
|
||||||
break;
|
|
||||||
case 33640:
|
|
||||||
var22 = new Extract2101010rev();
|
|
||||||
}
|
|
||||||
boolean var21 = arg0.getUnpackSwapBytes();
|
|
||||||
int var8 = Mipmap.elements_per_group(arg3, arg4);
|
|
||||||
int var12;
|
|
||||||
if (arg0.getUnpackRowLength() > 0) {
|
|
||||||
var12 = arg0.getUnpackRowLength();
|
|
||||||
} else {
|
|
||||||
var12 = arg1;
|
|
||||||
}
|
|
||||||
int var10;
|
|
||||||
int var11;
|
|
||||||
int var14;
|
|
||||||
int var15;
|
|
||||||
int var17;
|
|
||||||
int var18;
|
|
||||||
int var19;
|
|
||||||
if (arg4 == 6656) {
|
|
||||||
var10 = (var12 * var8 + 7) / 8;
|
|
||||||
var11 = var10 % arg0.getUnpackAlignment();
|
|
||||||
if (var11 != 0) {
|
|
||||||
var10 += arg0.getUnpackAlignment() - var11;
|
|
||||||
}
|
|
||||||
var15 = arg0.getUnpackSkipRows() * var10 + arg0.getUnpackSkipPixels() * var8 / 8;
|
|
||||||
var14 = arg1 * var8;
|
|
||||||
var17 = 0;
|
|
||||||
for (var18 = 0; var18 < arg2; var18++) {
|
|
||||||
var16 = var15;
|
|
||||||
arg6.position(var15);
|
|
||||||
int var23 = arg0.getUnpackSkipPixels() * var8 % 8;
|
|
||||||
for (var19 = 0; var19 < var14; var19++) {
|
|
||||||
int var24;
|
|
||||||
if (arg0.getUnpackLsbFirst()) {
|
|
||||||
arg6.position(var16);
|
|
||||||
var24 = arg6.get() & 0xFF & 0x1 << var23;
|
|
||||||
} else {
|
|
||||||
var24 = arg6.get() & 0xFF & 0x1 << 7 - var23;
|
|
||||||
}
|
|
||||||
if (var24 == 0) {
|
|
||||||
arg7.position(var17);
|
|
||||||
arg7.put((short) 0);
|
|
||||||
} else if (arg5) {
|
|
||||||
arg7.position(var17);
|
|
||||||
arg7.put((short) 1);
|
|
||||||
} else {
|
|
||||||
arg7.position(var17);
|
|
||||||
arg7.put((short) -1);
|
|
||||||
}
|
|
||||||
var23++;
|
|
||||||
if (var23 == 8) {
|
|
||||||
var23 = 0;
|
|
||||||
var16++;
|
|
||||||
}
|
|
||||||
var17++;
|
|
||||||
}
|
|
||||||
var15 += var10;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int var9 = Mipmap.bytes_per_element(arg4);
|
|
||||||
int var13 = var9 * var8;
|
|
||||||
if (var9 == 1) {
|
|
||||||
var21 = false;
|
|
||||||
}
|
|
||||||
var10 = var12 * var13;
|
|
||||||
var11 = var10 % arg0.getUnpackAlignment();
|
|
||||||
if (var11 != 0) {
|
|
||||||
var10 += arg0.getUnpackAlignment() - var11;
|
|
||||||
}
|
|
||||||
var15 = arg0.getUnpackSkipRows() * var10 + arg0.getUnpackSkipPixels() * var13;
|
|
||||||
var14 = arg1 * var8;
|
|
||||||
var17 = 0;
|
|
||||||
for (var18 = 0; var18 < arg2; var18++) {
|
|
||||||
var16 = var15;
|
|
||||||
arg6.position(var15);
|
|
||||||
for (var19 = 0; var19 < var14; var19++) {
|
|
||||||
Type_Widget var25 = new Type_Widget();
|
|
||||||
float[] var26 = new float[4];
|
|
||||||
arg6.position(var16);
|
|
||||||
int var20;
|
|
||||||
label219: switch(arg4) {
|
|
||||||
case 5120:
|
|
||||||
if (arg5) {
|
|
||||||
arg7.put(var17++, (short) arg6.get());
|
|
||||||
} else {
|
|
||||||
arg7.put(var17++, (short) (arg6.get() * 516));
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 5121:
|
|
||||||
if (arg5) {
|
|
||||||
arg7.put(var17++, (short) (arg6.get() & 0xFF));
|
|
||||||
} else {
|
|
||||||
arg7.put(var17++, (short) (arg6.get() * 257 & 0xFF));
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 5122:
|
|
||||||
case 5123:
|
|
||||||
if (var21) {
|
|
||||||
var25.setUB1(arg6.get());
|
|
||||||
var25.setUB0(arg6.get());
|
|
||||||
} else {
|
|
||||||
var25.setUB0(arg6.get());
|
|
||||||
var25.setUB1(arg6.get());
|
|
||||||
}
|
|
||||||
if (arg4 != 5122) {
|
|
||||||
arg7.put(var17++, var25.getUS0());
|
|
||||||
} else if (arg5) {
|
|
||||||
arg7.put(var17++, var25.getS0());
|
|
||||||
} else {
|
|
||||||
arg7.put(var17++, (short) (var25.getS0() * 2));
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 5124:
|
|
||||||
case 5125:
|
|
||||||
case 5126:
|
|
||||||
if (var21) {
|
|
||||||
var25.setUB3(arg6.get());
|
|
||||||
var25.setUB2(arg6.get());
|
|
||||||
var25.setUB1(arg6.get());
|
|
||||||
var25.setUB0(arg6.get());
|
|
||||||
} else {
|
|
||||||
var25.setUB0(arg6.get());
|
|
||||||
var25.setUB1(arg6.get());
|
|
||||||
var25.setUB2(arg6.get());
|
|
||||||
var25.setUB3(arg6.get());
|
|
||||||
}
|
|
||||||
if (arg4 == 5126) {
|
|
||||||
if (arg5) {
|
|
||||||
arg7.put(var17++, (short) var25.getF());
|
|
||||||
} else {
|
|
||||||
arg7.put(var17++, (short) (var25.getF() * 65535.0F));
|
|
||||||
}
|
|
||||||
} else if (arg4 == 5125) {
|
|
||||||
if (arg5) {
|
|
||||||
arg7.put(var17++, (short) var25.getUI());
|
|
||||||
} else {
|
|
||||||
arg7.put(var17++, (short) (var25.getUI() >> 16));
|
|
||||||
}
|
|
||||||
} else if (arg5) {
|
|
||||||
arg7.put(var17++, (short) var25.getI());
|
|
||||||
} else {
|
|
||||||
arg7.put(var17++, (short) (var25.getI() >> 15));
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 32818:
|
|
||||||
((Extract) var22).extract(false, arg6, var26);
|
|
||||||
var20 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var20 >= 3) {
|
|
||||||
break label219;
|
|
||||||
}
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
var20++;
|
|
||||||
}
|
|
||||||
case 32819:
|
|
||||||
((Extract) var22).extract(var21, arg6, var26);
|
|
||||||
var20 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var20 >= 4) {
|
|
||||||
break label219;
|
|
||||||
}
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
var20++;
|
|
||||||
}
|
|
||||||
case 32820:
|
|
||||||
((Extract) var22).extract(var21, arg6, var26);
|
|
||||||
var20 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var20 >= 4) {
|
|
||||||
break label219;
|
|
||||||
}
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
var20++;
|
|
||||||
}
|
|
||||||
case 32821:
|
|
||||||
((Extract) var22).extract(var21, arg6, var26);
|
|
||||||
var20 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var20 >= 4) {
|
|
||||||
break label219;
|
|
||||||
}
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
var20++;
|
|
||||||
}
|
|
||||||
case 32822:
|
|
||||||
((Extract) var22).extract(var21, arg6, var26);
|
|
||||||
var20 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var20 >= 4) {
|
|
||||||
break label219;
|
|
||||||
}
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
var20++;
|
|
||||||
}
|
|
||||||
case 33634:
|
|
||||||
((Extract) var22).extract(false, arg6, var26);
|
|
||||||
var20 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var20 >= 3) {
|
|
||||||
break label219;
|
|
||||||
}
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
var20++;
|
|
||||||
}
|
|
||||||
case 33635:
|
|
||||||
((Extract) var22).extract(var21, arg6, var26);
|
|
||||||
var20 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var20 >= 3) {
|
|
||||||
break label219;
|
|
||||||
}
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
var20++;
|
|
||||||
}
|
|
||||||
case 33636:
|
|
||||||
((Extract) var22).extract(var21, arg6, var26);
|
|
||||||
var20 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var20 >= 3) {
|
|
||||||
break label219;
|
|
||||||
}
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
var20++;
|
|
||||||
}
|
|
||||||
case 33637:
|
|
||||||
((Extract) var22).extract(var21, arg6, var26);
|
|
||||||
var20 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var20 >= 4) {
|
|
||||||
break label219;
|
|
||||||
}
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
var20++;
|
|
||||||
}
|
|
||||||
case 33638:
|
|
||||||
((Extract) var22).extract(var21, arg6, var26);
|
|
||||||
var20 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var20 >= 4) {
|
|
||||||
break label219;
|
|
||||||
}
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
var20++;
|
|
||||||
}
|
|
||||||
case 33639:
|
|
||||||
((Extract) var22).extract(var21, arg6, var26);
|
|
||||||
var20 = 0;
|
|
||||||
while (true) {
|
|
||||||
if (var20 >= 4) {
|
|
||||||
break label219;
|
|
||||||
}
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
var20++;
|
|
||||||
}
|
|
||||||
case 33640:
|
|
||||||
((Extract) var22).extract(var21, arg6, var26);
|
|
||||||
for (var20 = 0; var20 < 4; var20++) {
|
|
||||||
arg7.put(var17++, (short) (var26[var20] * 65535.0F));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var16 += var9;
|
|
||||||
}
|
|
||||||
var15 += var10;
|
|
||||||
var16 = var15;
|
|
||||||
}
|
|
||||||
if (Mipmap.isTypePackedPixel(arg4)) {
|
|
||||||
assert var17 == arg1 * arg2 * Mipmap.elements_per_group(arg3, 0);
|
|
||||||
} else {
|
|
||||||
assert var17 == arg1 * arg2 * var8;
|
|
||||||
}
|
|
||||||
assert var16 == var10 * arg2 + arg0.getUnpackSkipRows() * var10 + arg0.getUnpackSkipPixels() * var13;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,332 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.Buffer;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
import java.nio.FloatBuffer;
|
|
||||||
import java.nio.IntBuffer;
|
|
||||||
import java.nio.ShortBuffer;
|
|
||||||
import javax.media.opengl.GL;
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public class Mipmap {
|
|
||||||
|
|
||||||
public static int computeLog(int arg0) {
|
|
||||||
int var1 = 0;
|
|
||||||
if (arg0 == 0) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
while ((arg0 & 0x1) < 1) {
|
|
||||||
arg0 >>= 0x1;
|
|
||||||
var1++;
|
|
||||||
}
|
|
||||||
return arg0 == 1 ? var1 : -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int nearestPower(int arg0) {
|
|
||||||
int var1 = 1;
|
|
||||||
if (arg0 == 0) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
while (arg0 != 1) {
|
|
||||||
if (arg0 == 3) {
|
|
||||||
return var1 * 4;
|
|
||||||
}
|
|
||||||
arg0 >>= 0x1;
|
|
||||||
var1 *= 2;
|
|
||||||
}
|
|
||||||
return var1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static short GLU_SWAP_2_BYTES(short arg0) {
|
|
||||||
boolean var1 = false;
|
|
||||||
byte var3 = (byte) (arg0 >>> 8);
|
|
||||||
short var2 = (short) (arg0 << 8);
|
|
||||||
return (short) (var2 | var3 & 0xFF);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int GLU_SWAP_4_BYTES(int arg0) {
|
|
||||||
int var1 = arg0 << 24;
|
|
||||||
int var2 = var1 | (arg0 & 0xFF00) << 8;
|
|
||||||
int var3 = var2 | arg0 >>> 8 & 0xFF00;
|
|
||||||
return var3 | arg0 >>> 24 & 0xFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static float GLU_SWAP_4_BYTES(float arg0) {
|
|
||||||
int var1 = Float.floatToRawIntBits(arg0);
|
|
||||||
return Float.intBitsToFloat(var1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int checkMipmapArgs(int arg0, int arg1, int arg2) {
|
|
||||||
if (!legalFormat(arg1) || !legalType(arg2)) {
|
|
||||||
return 100900;
|
|
||||||
} else if (arg1 == 6401) {
|
|
||||||
return 100900;
|
|
||||||
} else if (isLegalFormatForPackedPixelType(arg1, arg2)) {
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
return 100904;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean legalFormat(int arg0) {
|
|
||||||
switch(arg0) {
|
|
||||||
case 6400:
|
|
||||||
case 6401:
|
|
||||||
case 6402:
|
|
||||||
case 6403:
|
|
||||||
case 6404:
|
|
||||||
case 6405:
|
|
||||||
case 6406:
|
|
||||||
case 6407:
|
|
||||||
case 6408:
|
|
||||||
case 6409:
|
|
||||||
case 6410:
|
|
||||||
case 32992:
|
|
||||||
case 32993:
|
|
||||||
return true;
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean legalType(int arg0) {
|
|
||||||
switch(arg0) {
|
|
||||||
case 5120:
|
|
||||||
case 5121:
|
|
||||||
case 5122:
|
|
||||||
case 5123:
|
|
||||||
case 5124:
|
|
||||||
case 5125:
|
|
||||||
case 5126:
|
|
||||||
case 6656:
|
|
||||||
case 32818:
|
|
||||||
case 32819:
|
|
||||||
case 32820:
|
|
||||||
case 32821:
|
|
||||||
case 32822:
|
|
||||||
case 33634:
|
|
||||||
case 33635:
|
|
||||||
case 33636:
|
|
||||||
case 33637:
|
|
||||||
case 33638:
|
|
||||||
case 33639:
|
|
||||||
case 33640:
|
|
||||||
return true;
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean isTypePackedPixel(int arg0) {
|
|
||||||
assert legalType(arg0);
|
|
||||||
return arg0 == 32818 || arg0 == 33634 || arg0 == 33635 || arg0 == 33636 || arg0 == 32819 || arg0 == 33637 || arg0 == 32820 || arg0 == 33638 || arg0 == 32821 || arg0 == 33639 || arg0 == 32822 || arg0 == 33640;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean isLegalFormatForPackedPixelType(int arg0, int arg1) {
|
|
||||||
if (isTypePackedPixel(arg1)) {
|
|
||||||
return true;
|
|
||||||
} else if ((arg1 == 32818 || arg1 == 33634 || arg1 == 33635 || arg1 == 33636) & arg0 != 6407) {
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
return arg1 != 32819 && arg1 != 33637 && arg1 != 32820 && arg1 != 33638 && arg1 != 32821 && arg1 != 33639 && arg1 != 32822 && arg1 != 33640 || arg0 == 6408 || arg0 == 32993;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void closestFit(GL arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int[] arg7, int[] arg8) {
|
|
||||||
if (Double.parseDouble(arg0.glGetString(GL.GL_VERSION).trim().substring(0, 3)) >= 1.1D) {
|
|
||||||
int var9 = nearestPower(arg2);
|
|
||||||
int var10 = nearestPower(arg3);
|
|
||||||
int[] var11 = new int[1];
|
|
||||||
boolean var12 = false;
|
|
||||||
try {
|
|
||||||
do {
|
|
||||||
int var13 = arg2 > 1 ? var9 >> 1 : var9;
|
|
||||||
int var14 = arg3 > 1 ? var10 >> 1 : var10;
|
|
||||||
assert var13 > 0;
|
|
||||||
assert var14 > 0;
|
|
||||||
int var15;
|
|
||||||
if (arg1 == 3553 || arg1 == 32868) {
|
|
||||||
var15 = 32868;
|
|
||||||
arg0.glTexImage2D(var15, 1, arg4, var13, var14, 0, arg5, arg6, null);
|
|
||||||
} else if (arg1 == 34069 || arg1 == 34070 || arg1 == 34071 || arg1 == 34072 || arg1 == 34073 || arg1 == 34074) {
|
|
||||||
var15 = 34075;
|
|
||||||
arg0.glTexImage2D(var15, 1, arg4, var13, var14, 0, arg5, arg6, null);
|
|
||||||
} else {
|
|
||||||
assert arg1 == 3552 || arg1 == 32867;
|
|
||||||
var15 = 32867;
|
|
||||||
arg0.glTexImage1D(var15, 1, arg4, var13, 0, arg5, arg6, null);
|
|
||||||
}
|
|
||||||
arg0.glGetTexLevelParameteriv(var15, GL.GL_LINES, GL.GL_TEXTURE_WIDTH, var11, 0);
|
|
||||||
if (var11[0] == 0) {
|
|
||||||
if (var9 == 1 && var10 == 1) {
|
|
||||||
var12 = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
var9 = var13;
|
|
||||||
var10 = var14;
|
|
||||||
}
|
|
||||||
} while (var11[0] == 0);
|
|
||||||
} catch (GLException var16) {
|
|
||||||
var12 = true;
|
|
||||||
}
|
|
||||||
if (!var12) {
|
|
||||||
arg7[0] = var9;
|
|
||||||
arg8[0] = var10;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int[] var17 = new int[1];
|
|
||||||
arg0.glGetIntegerv(GL.GL_MAX_TEXTURE_SIZE, var17, 0);
|
|
||||||
arg7[0] = nearestPower(arg2);
|
|
||||||
if (arg7[0] > var17[0]) {
|
|
||||||
arg7[0] = var17[0];
|
|
||||||
}
|
|
||||||
arg8[0] = nearestPower(arg3);
|
|
||||||
if (arg8[0] > var17[0]) {
|
|
||||||
arg8[0] = var17[0];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int elements_per_group(int arg0, int arg1) {
|
|
||||||
if (arg1 == 32818 || arg1 == 33634 || arg1 == 33635 || arg1 == 33636 || arg1 == 32819 || arg1 == 33637 || arg1 == 32820 || arg1 == 33638 || arg1 == 32821 || arg1 == 33639 || arg1 == 32822 || arg1 == 33640) {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
switch(arg0) {
|
|
||||||
case 6407:
|
|
||||||
case 32992:
|
|
||||||
return 3;
|
|
||||||
case 6408:
|
|
||||||
case 32993:
|
|
||||||
return 4;
|
|
||||||
case 6410:
|
|
||||||
return 2;
|
|
||||||
default:
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int bytes_per_element(int arg0) {
|
|
||||||
switch(arg0) {
|
|
||||||
case 5120:
|
|
||||||
case 5121:
|
|
||||||
case 6656:
|
|
||||||
case 32818:
|
|
||||||
case 33634:
|
|
||||||
return 1;
|
|
||||||
case 5122:
|
|
||||||
case 5123:
|
|
||||||
case 32819:
|
|
||||||
case 32820:
|
|
||||||
case 33635:
|
|
||||||
case 33636:
|
|
||||||
case 33637:
|
|
||||||
case 33638:
|
|
||||||
return 2;
|
|
||||||
case 5124:
|
|
||||||
case 5125:
|
|
||||||
case 5126:
|
|
||||||
case 32821:
|
|
||||||
case 32822:
|
|
||||||
case 33639:
|
|
||||||
case 33640:
|
|
||||||
return 4;
|
|
||||||
default:
|
|
||||||
return 4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean is_index(int arg0) {
|
|
||||||
return arg0 == 6400 || arg0 == 6401;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int image_size(int arg0, int arg1, int arg2, int arg3) {
|
|
||||||
assert arg0 > 0;
|
|
||||||
assert arg1 > 0;
|
|
||||||
int var5 = elements_per_group(arg2, arg3);
|
|
||||||
int var4;
|
|
||||||
if (arg3 == 6656) {
|
|
||||||
var4 = (arg0 + 7) / 8;
|
|
||||||
} else {
|
|
||||||
var4 = bytes_per_element(arg3) * arg0;
|
|
||||||
}
|
|
||||||
return var4 * arg1 * var5;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void retrieveStoreModes(GL arg0, PixelStorageModes arg1) {
|
|
||||||
int[] var2 = new int[1];
|
|
||||||
arg0.glGetIntegerv(GL.GL_UNPACK_ALIGNMENT, var2, 0);
|
|
||||||
arg1.setUnpackAlignment(var2[0]);
|
|
||||||
arg0.glGetIntegerv(GL.GL_UNPACK_ROW_LENGTH, var2, 0);
|
|
||||||
arg1.setUnpackRowLength(var2[0]);
|
|
||||||
arg0.glGetIntegerv(GL.GL_UNPACK_SKIP_ROWS, var2, 0);
|
|
||||||
arg1.setUnpackSkipRows(var2[0]);
|
|
||||||
arg0.glGetIntegerv(GL.GL_UNPACK_SKIP_PIXELS, var2, 0);
|
|
||||||
arg1.setUnpackSkipPixels(var2[0]);
|
|
||||||
arg0.glGetIntegerv(GL.GL_UNPACK_LSB_FIRST, var2, 0);
|
|
||||||
arg1.setUnpackLsbFirst(var2[0] == 1);
|
|
||||||
arg0.glGetIntegerv(GL.GL_UNPACK_SWAP_BYTES, var2, 0);
|
|
||||||
arg1.setUnpackSwapBytes(var2[0] == 1);
|
|
||||||
arg0.glGetIntegerv(GL.GL_PACK_ALIGNMENT, var2, 0);
|
|
||||||
arg1.setPackAlignment(var2[0]);
|
|
||||||
arg0.glGetIntegerv(GL.GL_PACK_ROW_LENGTH, var2, 0);
|
|
||||||
arg1.setPackRowLength(var2[0]);
|
|
||||||
arg0.glGetIntegerv(GL.GL_PACK_SKIP_ROWS, var2, 0);
|
|
||||||
arg1.setPackSkipRows(var2[0]);
|
|
||||||
arg0.glGetIntegerv(GL.GL_PACK_SKIP_PIXELS, var2, 0);
|
|
||||||
arg1.setPackSkipPixels(var2[0]);
|
|
||||||
arg0.glGetIntegerv(GL.GL_PACK_LSB_FIRST, var2, 0);
|
|
||||||
arg1.setPackLsbFirst(var2[0] == 1);
|
|
||||||
arg0.glGetIntegerv(GL.GL_PACK_SWAP_BYTES, var2, 0);
|
|
||||||
arg1.setPackSwapBytes(var2[0] == 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int gluBuild2DMipmaps(GL arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, Object arg7) {
|
|
||||||
int var8 = 0;
|
|
||||||
int[] var9 = new int[1];
|
|
||||||
int[] var10 = new int[1];
|
|
||||||
int var13 = checkMipmapArgs(arg2, arg5, arg6);
|
|
||||||
if (var13 != 0) {
|
|
||||||
return var13;
|
|
||||||
} else if (arg3 >= 1 && arg4 >= 1) {
|
|
||||||
closestFit(arg0, arg1, arg3, arg4, arg2, arg5, arg6, var9, var10);
|
|
||||||
int var12 = computeLog(var9[0]);
|
|
||||||
int var11 = computeLog(var10[0]);
|
|
||||||
if (var11 > var12) {
|
|
||||||
var12 = var11;
|
|
||||||
}
|
|
||||||
ByteBuffer var14 = null;
|
|
||||||
if (arg7 instanceof ByteBuffer) {
|
|
||||||
var14 = (ByteBuffer) arg7;
|
|
||||||
var8 = var14.position();
|
|
||||||
} else if (arg7 instanceof byte[]) {
|
|
||||||
byte[] var15 = (byte[]) arg7;
|
|
||||||
var14 = ByteBuffer.allocateDirect(var15.length);
|
|
||||||
var14.put(var15);
|
|
||||||
} else if (arg7 instanceof short[]) {
|
|
||||||
short[] var20 = (short[]) arg7;
|
|
||||||
var14 = ByteBuffer.allocateDirect(var20.length * 2);
|
|
||||||
ShortBuffer var16 = var14.asShortBuffer();
|
|
||||||
var16.put(var20);
|
|
||||||
} else if (arg7 instanceof int[]) {
|
|
||||||
int[] var21 = (int[]) arg7;
|
|
||||||
var14 = ByteBuffer.allocateDirect(var21.length * 4);
|
|
||||||
IntBuffer var24 = var14.asIntBuffer();
|
|
||||||
var24.put(var21);
|
|
||||||
} else if (arg7 instanceof float[]) {
|
|
||||||
float[] var22 = (float[]) arg7;
|
|
||||||
var14 = ByteBuffer.allocateDirect(var22.length * 4);
|
|
||||||
FloatBuffer var25 = var14.asFloatBuffer();
|
|
||||||
var25.put(var22);
|
|
||||||
}
|
|
||||||
int var23;
|
|
||||||
try {
|
|
||||||
var23 = BuildMipmap.gluBuild2DMipmapLevelsCore(arg0, arg1, arg2, arg3, arg4, var9[0], var10[0], arg5, arg6, 0, 0, var12, var14);
|
|
||||||
} finally {
|
|
||||||
var14.position(var8);
|
|
||||||
}
|
|
||||||
return var23;
|
|
||||||
} else {
|
|
||||||
return 100901;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,100 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
public class PixelStorageModes {
|
|
||||||
|
|
||||||
private int packAlignment;
|
|
||||||
|
|
||||||
private int packRowLength;
|
|
||||||
|
|
||||||
private int packSkipRows;
|
|
||||||
|
|
||||||
private int packSkipPixels;
|
|
||||||
|
|
||||||
private boolean packLsbFirst;
|
|
||||||
|
|
||||||
private boolean packSwapBytes;
|
|
||||||
|
|
||||||
private int unpackAlignment;
|
|
||||||
|
|
||||||
private int unpackRowLength;
|
|
||||||
|
|
||||||
private int unpackSkipRows;
|
|
||||||
|
|
||||||
private int unpackSkipPixels;
|
|
||||||
|
|
||||||
private boolean unpackLsbFirst;
|
|
||||||
|
|
||||||
private boolean unpackSwapBytes;
|
|
||||||
|
|
||||||
public void setPackAlignment(int arg0) {
|
|
||||||
this.packAlignment = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPackRowLength(int arg0) {
|
|
||||||
this.packRowLength = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPackSkipRows(int arg0) {
|
|
||||||
this.packSkipRows = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPackSkipPixels(int arg0) {
|
|
||||||
this.packSkipPixels = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPackLsbFirst(boolean arg0) {
|
|
||||||
this.packLsbFirst = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPackSwapBytes(boolean arg0) {
|
|
||||||
this.packSwapBytes = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getUnpackAlignment() {
|
|
||||||
return this.unpackAlignment;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnpackAlignment(int arg0) {
|
|
||||||
this.unpackAlignment = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getUnpackRowLength() {
|
|
||||||
return this.unpackRowLength;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnpackRowLength(int arg0) {
|
|
||||||
this.unpackRowLength = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getUnpackSkipRows() {
|
|
||||||
return this.unpackSkipRows;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnpackSkipRows(int arg0) {
|
|
||||||
this.unpackSkipRows = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getUnpackSkipPixels() {
|
|
||||||
return this.unpackSkipPixels;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnpackSkipPixels(int arg0) {
|
|
||||||
this.unpackSkipPixels = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean getUnpackLsbFirst() {
|
|
||||||
return this.unpackLsbFirst;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnpackLsbFirst(boolean arg0) {
|
|
||||||
this.unpackLsbFirst = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean getUnpackSwapBytes() {
|
|
||||||
return this.unpackSwapBytes;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnpackSwapBytes(boolean arg0) {
|
|
||||||
this.unpackSwapBytes = arg0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,53 +0,0 @@
|
||||||
package com.sun.opengl.impl.mipmap;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class Type_Widget {
|
|
||||||
|
|
||||||
ByteBuffer buffer = ByteBuffer.allocate(4);
|
|
||||||
|
|
||||||
public void setUB0(byte arg0) {
|
|
||||||
this.buffer.position(0);
|
|
||||||
this.buffer.put(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUB1(byte arg0) {
|
|
||||||
this.buffer.position(1);
|
|
||||||
this.buffer.put(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUB2(byte arg0) {
|
|
||||||
this.buffer.position(2);
|
|
||||||
this.buffer.put(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUB3(byte arg0) {
|
|
||||||
this.buffer.position(3);
|
|
||||||
this.buffer.put(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public short getUS0() {
|
|
||||||
this.buffer.position(0);
|
|
||||||
return this.buffer.getShort();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getUI() {
|
|
||||||
this.buffer.position(0);
|
|
||||||
return this.buffer.getInt();
|
|
||||||
}
|
|
||||||
|
|
||||||
public short getS0() {
|
|
||||||
this.buffer.position(0);
|
|
||||||
return this.buffer.getShort();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getI() {
|
|
||||||
this.buffer.position(0);
|
|
||||||
return this.buffer.getInt();
|
|
||||||
}
|
|
||||||
|
|
||||||
public float getF() {
|
|
||||||
this.buffer.position(0);
|
|
||||||
return this.buffer.getFloat();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import com.sun.gluegen.runtime.BufferFactory;
|
|
||||||
import com.sun.gluegen.runtime.CPU;
|
|
||||||
import com.sun.gluegen.runtime.StructAccessor;
|
|
||||||
import com.sun.opengl.impl.JAWT_PlatformInfo;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public abstract class JAWT_Win32DrawingSurfaceInfo implements JAWT_PlatformInfo {
|
|
||||||
|
|
||||||
StructAccessor accessor;
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return CPU.is32Bit() ? JAWT_Win32DrawingSurfaceInfo32.size() : JAWT_Win32DrawingSurfaceInfo64.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static JAWT_Win32DrawingSurfaceInfo create() {
|
|
||||||
return create(BufferFactory.newDirectByteBuffer(size()));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static JAWT_Win32DrawingSurfaceInfo create(ByteBuffer arg0) {
|
|
||||||
return CPU.is32Bit() ? new JAWT_Win32DrawingSurfaceInfo32(arg0) : new JAWT_Win32DrawingSurfaceInfo64(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
JAWT_Win32DrawingSurfaceInfo(ByteBuffer arg0) {
|
|
||||||
this.accessor = new StructAccessor(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract long hdc();
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import com.sun.opengl.impl.JAWT_PlatformInfo;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class JAWT_Win32DrawingSurfaceInfo32 extends JAWT_Win32DrawingSurfaceInfo implements JAWT_PlatformInfo {
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return 12;
|
|
||||||
}
|
|
||||||
|
|
||||||
JAWT_Win32DrawingSurfaceInfo32(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public long hdc() {
|
|
||||||
return (long) this.accessor.getIntAt(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import com.sun.opengl.impl.JAWT_PlatformInfo;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class JAWT_Win32DrawingSurfaceInfo64 extends JAWT_Win32DrawingSurfaceInfo implements JAWT_PlatformInfo {
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return 24;
|
|
||||||
}
|
|
||||||
|
|
||||||
JAWT_Win32DrawingSurfaceInfo64(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public long hdc() {
|
|
||||||
return this.accessor.getLongAt(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,87 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import com.sun.gluegen.runtime.BufferFactory;
|
|
||||||
import com.sun.gluegen.runtime.CPU;
|
|
||||||
import com.sun.gluegen.runtime.StructAccessor;
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public abstract class PIXELFORMATDESCRIPTOR {
|
|
||||||
|
|
||||||
StructAccessor accessor;
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return CPU.is32Bit() ? PIXELFORMATDESCRIPTOR32.size() : PIXELFORMATDESCRIPTOR64.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static PIXELFORMATDESCRIPTOR create() {
|
|
||||||
return create(BufferFactory.newDirectByteBuffer(size()));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static PIXELFORMATDESCRIPTOR create(ByteBuffer arg0) {
|
|
||||||
return CPU.is32Bit() ? new PIXELFORMATDESCRIPTOR32(arg0) : new PIXELFORMATDESCRIPTOR64(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
PIXELFORMATDESCRIPTOR(ByteBuffer arg0) {
|
|
||||||
this.accessor = new StructAccessor(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ByteBuffer getBuffer() {
|
|
||||||
return this.accessor.getBuffer();
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR nSize(short arg0);
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR nVersion(short arg0);
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR dwFlags(int arg0);
|
|
||||||
|
|
||||||
public abstract int dwFlags();
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR iPixelType(byte arg0);
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cColorBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cRedBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract byte cRedBits();
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cGreenBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract byte cGreenBits();
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cBlueBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract byte cBlueBits();
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cAlphaBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract byte cAlphaBits();
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cAccumBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cAccumRedBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract byte cAccumRedBits();
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cAccumGreenBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract byte cAccumGreenBits();
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cAccumBlueBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract byte cAccumBlueBits();
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cAccumAlphaBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract byte cAccumAlphaBits();
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cDepthBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract byte cDepthBits();
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR cStencilBits(byte arg0);
|
|
||||||
|
|
||||||
public abstract byte cStencilBits();
|
|
||||||
|
|
||||||
public abstract PIXELFORMATDESCRIPTOR iLayerType(byte arg0);
|
|
||||||
}
|
|
||||||
|
|
@ -1,143 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class PIXELFORMATDESCRIPTOR32 extends PIXELFORMATDESCRIPTOR {
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return 40;
|
|
||||||
}
|
|
||||||
|
|
||||||
PIXELFORMATDESCRIPTOR32(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR nSize(short arg0) {
|
|
||||||
this.accessor.setShortAt(0, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR nVersion(short arg0) {
|
|
||||||
this.accessor.setShortAt(1, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR dwFlags(int arg0) {
|
|
||||||
this.accessor.setIntAt(1, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int dwFlags() {
|
|
||||||
return this.accessor.getIntAt(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR iPixelType(byte arg0) {
|
|
||||||
this.accessor.setByteAt(8, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cColorBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(9, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cRedBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(10, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cRedBits() {
|
|
||||||
return this.accessor.getByteAt(10);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cGreenBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(12, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cGreenBits() {
|
|
||||||
return this.accessor.getByteAt(12);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cBlueBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(14, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cBlueBits() {
|
|
||||||
return this.accessor.getByteAt(14);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAlphaBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(16, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cAlphaBits() {
|
|
||||||
return this.accessor.getByteAt(16);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAccumBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(18, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAccumRedBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(19, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cAccumRedBits() {
|
|
||||||
return this.accessor.getByteAt(19);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAccumGreenBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(20, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cAccumGreenBits() {
|
|
||||||
return this.accessor.getByteAt(20);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAccumBlueBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(21, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cAccumBlueBits() {
|
|
||||||
return this.accessor.getByteAt(21);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAccumAlphaBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(22, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cAccumAlphaBits() {
|
|
||||||
return this.accessor.getByteAt(22);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cDepthBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(23, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cDepthBits() {
|
|
||||||
return this.accessor.getByteAt(23);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cStencilBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(24, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cStencilBits() {
|
|
||||||
return this.accessor.getByteAt(24);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR iLayerType(byte arg0) {
|
|
||||||
this.accessor.setByteAt(26, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,143 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
class PIXELFORMATDESCRIPTOR64 extends PIXELFORMATDESCRIPTOR {
|
|
||||||
|
|
||||||
public static int size() {
|
|
||||||
return 40;
|
|
||||||
}
|
|
||||||
|
|
||||||
PIXELFORMATDESCRIPTOR64(ByteBuffer arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR nSize(short arg0) {
|
|
||||||
this.accessor.setShortAt(0, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR nVersion(short arg0) {
|
|
||||||
this.accessor.setShortAt(1, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR dwFlags(int arg0) {
|
|
||||||
this.accessor.setIntAt(1, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int dwFlags() {
|
|
||||||
return this.accessor.getIntAt(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR iPixelType(byte arg0) {
|
|
||||||
this.accessor.setByteAt(8, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cColorBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(9, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cRedBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(10, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cRedBits() {
|
|
||||||
return this.accessor.getByteAt(10);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cGreenBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(12, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cGreenBits() {
|
|
||||||
return this.accessor.getByteAt(12);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cBlueBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(14, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cBlueBits() {
|
|
||||||
return this.accessor.getByteAt(14);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAlphaBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(16, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cAlphaBits() {
|
|
||||||
return this.accessor.getByteAt(16);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAccumBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(18, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAccumRedBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(19, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cAccumRedBits() {
|
|
||||||
return this.accessor.getByteAt(19);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAccumGreenBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(20, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cAccumGreenBits() {
|
|
||||||
return this.accessor.getByteAt(20);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAccumBlueBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(21, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cAccumBlueBits() {
|
|
||||||
return this.accessor.getByteAt(21);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cAccumAlphaBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(22, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cAccumAlphaBits() {
|
|
||||||
return this.accessor.getByteAt(22);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cDepthBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(23, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cDepthBits() {
|
|
||||||
return this.accessor.getByteAt(23);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR cStencilBits(byte arg0) {
|
|
||||||
this.accessor.setByteAt(24, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte cStencilBits() {
|
|
||||||
return this.accessor.getByteAt(24);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PIXELFORMATDESCRIPTOR iLayerType(byte arg0) {
|
|
||||||
this.accessor.setByteAt(26, arg0);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class WGL {
|
|
||||||
|
|
||||||
public static int ChoosePixelFormat(long arg0, PIXELFORMATDESCRIPTOR arg1) {
|
|
||||||
return ChoosePixelFormat0(arg0, arg1 == null ? null : arg1.getBuffer());
|
|
||||||
}
|
|
||||||
|
|
||||||
private static native int ChoosePixelFormat0(long arg0, ByteBuffer arg1);
|
|
||||||
|
|
||||||
public static native long CreateDummyWindow(int arg0, int arg1, int arg2, int arg3);
|
|
||||||
|
|
||||||
public static int DescribePixelFormat(long arg0, int arg1, int arg2, PIXELFORMATDESCRIPTOR arg3) {
|
|
||||||
return DescribePixelFormat0(arg0, arg1, arg2, arg3 == null ? null : arg3.getBuffer());
|
|
||||||
}
|
|
||||||
|
|
||||||
private static native int DescribePixelFormat0(long arg0, int arg1, int arg2, ByteBuffer arg3);
|
|
||||||
|
|
||||||
public static native boolean DestroyWindow(long arg0);
|
|
||||||
|
|
||||||
public static native long GetDC(long arg0);
|
|
||||||
|
|
||||||
public static native int GetLastError();
|
|
||||||
|
|
||||||
public static native int GetPixelFormat(long arg0);
|
|
||||||
|
|
||||||
public static native int ReleaseDC(long arg0, long arg1);
|
|
||||||
|
|
||||||
public static boolean SetPixelFormat(long arg0, int arg1, PIXELFORMATDESCRIPTOR arg2) {
|
|
||||||
return SetPixelFormat0(arg0, arg1, arg2 == null ? null : arg2.getBuffer());
|
|
||||||
}
|
|
||||||
|
|
||||||
private static native boolean SetPixelFormat0(long arg0, int arg1, ByteBuffer arg2);
|
|
||||||
|
|
||||||
public static native boolean ShowWindow(long arg0, int arg1);
|
|
||||||
|
|
||||||
public static native boolean SwapBuffers(long arg0);
|
|
||||||
|
|
||||||
public static native long wglCreateContext(long arg0);
|
|
||||||
|
|
||||||
public static native boolean wglDeleteContext(long arg0);
|
|
||||||
|
|
||||||
public static native long wglGetProcAddress(String arg0);
|
|
||||||
|
|
||||||
public static native boolean wglMakeCurrent(long arg0, long arg1);
|
|
||||||
}
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
public interface WGLExt {
|
|
||||||
|
|
||||||
boolean wglChoosePixelFormatARB(long arg0, int[] arg1, int arg2, float[] arg3, int arg4, int arg5, int[] arg6, int arg7, int[] arg8, int arg9);
|
|
||||||
|
|
||||||
String wglGetExtensionsStringEXT();
|
|
||||||
|
|
||||||
boolean wglGetPixelFormatAttribivARB(long arg0, int arg1, int arg2, int arg3, int[] arg4, int arg5, int[] arg6, int arg7);
|
|
||||||
|
|
||||||
boolean wglSwapIntervalEXT(int arg0);
|
|
||||||
|
|
||||||
boolean isExtensionAvailable(String arg0);
|
|
||||||
}
|
|
||||||
|
|
@ -1,72 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public class WGLExtImpl implements WGLExt {
|
|
||||||
|
|
||||||
private WindowsGLContext _context;
|
|
||||||
|
|
||||||
private native boolean dispatch_wglChoosePixelFormatARB1(long arg0, Object arg1, int arg2, Object arg3, int arg4, int arg5, Object arg6, int arg7, Object arg8, int arg9, long arg10);
|
|
||||||
|
|
||||||
public boolean wglChoosePixelFormatARB(long arg0, int[] arg1, int arg2, float[] arg3, int arg4, int arg5, int[] arg6, int arg7, int[] arg8, int arg9) {
|
|
||||||
if (arg1 != null && arg1.length <= arg2) {
|
|
||||||
throw new GLException("array offset argument \"piAttribIList_offset\" (" + arg2 + ") equals or exceeds array length (" + arg1.length + ")");
|
|
||||||
} else if (arg3 != null && arg3.length <= arg4) {
|
|
||||||
throw new GLException("array offset argument \"pfAttribFList_offset\" (" + arg4 + ") equals or exceeds array length (" + arg3.length + ")");
|
|
||||||
} else if (arg6 != null && arg6.length <= arg7) {
|
|
||||||
throw new GLException("array offset argument \"piFormats_offset\" (" + arg7 + ") equals or exceeds array length (" + arg6.length + ")");
|
|
||||||
} else if (arg8 == null || arg8.length > arg9) {
|
|
||||||
long var12 = this._context.getWGLExtProcAddressTable()._addressof_wglChoosePixelFormatARB;
|
|
||||||
if (var12 == 0L) {
|
|
||||||
throw new GLException("Method \"wglChoosePixelFormatARB\" not available");
|
|
||||||
}
|
|
||||||
return this.dispatch_wglChoosePixelFormatARB1(arg0, arg1, arg2 * 4, arg3, arg4 * 4, arg5, arg6, arg7 * 4, arg8, arg9 * 4, var12);
|
|
||||||
} else {
|
|
||||||
throw new GLException("array offset argument \"nNumFormats_offset\" (" + arg9 + ") equals or exceeds array length (" + arg8.length + ")");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public String wglGetExtensionsStringEXT() {
|
|
||||||
long var1 = this._context.getWGLExtProcAddressTable()._addressof_wglGetExtensionsStringEXT;
|
|
||||||
if (var1 == 0L) {
|
|
||||||
throw new GLException("Method \"wglGetExtensionsStringEXT\" not available");
|
|
||||||
}
|
|
||||||
return this.dispatch_wglGetExtensionsStringEXT0(var1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native String dispatch_wglGetExtensionsStringEXT0(long arg0);
|
|
||||||
|
|
||||||
private native boolean dispatch_wglGetPixelFormatAttribivARB1(long arg0, int arg1, int arg2, int arg3, Object arg4, int arg5, Object arg6, int arg7, long arg8);
|
|
||||||
|
|
||||||
public boolean wglGetPixelFormatAttribivARB(long arg0, int arg1, int arg2, int arg3, int[] arg4, int arg5, int[] arg6, int arg7) {
|
|
||||||
if (arg4 != null && arg4.length <= arg5) {
|
|
||||||
throw new GLException("array offset argument \"piAttributes_offset\" (" + arg5 + ") equals or exceeds array length (" + arg4.length + ")");
|
|
||||||
} else if (arg6 == null || arg6.length > arg7) {
|
|
||||||
long var10 = this._context.getWGLExtProcAddressTable()._addressof_wglGetPixelFormatAttribivARB;
|
|
||||||
if (var10 == 0L) {
|
|
||||||
throw new GLException("Method \"wglGetPixelFormatAttribivARB\" not available");
|
|
||||||
}
|
|
||||||
return this.dispatch_wglGetPixelFormatAttribivARB1(arg0, arg1, arg2, arg3, arg4, arg5 * 4, arg6, arg7 * 4, var10);
|
|
||||||
} else {
|
|
||||||
throw new GLException("array offset argument \"piValues_offset\" (" + arg7 + ") equals or exceeds array length (" + arg6.length + ")");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean wglSwapIntervalEXT(int arg0) {
|
|
||||||
long var2 = this._context.getWGLExtProcAddressTable()._addressof_wglSwapIntervalEXT;
|
|
||||||
if (var2 == 0L) {
|
|
||||||
throw new GLException("Method \"wglSwapIntervalEXT\" not available");
|
|
||||||
}
|
|
||||||
return this.dispatch_wglSwapIntervalEXT0(arg0, var2);
|
|
||||||
}
|
|
||||||
|
|
||||||
public native boolean dispatch_wglSwapIntervalEXT0(int arg0, long arg1);
|
|
||||||
|
|
||||||
public WGLExtImpl(WindowsGLContext arg0) {
|
|
||||||
this._context = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isExtensionAvailable(String arg0) {
|
|
||||||
return this._context.isExtensionAvailable(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,108 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
public class WGLExtProcAddressTable {
|
|
||||||
|
|
||||||
public long _addressof_wglAllocateMemoryNV;
|
|
||||||
|
|
||||||
public long _addressof_wglBeginFrameTrackingI3D;
|
|
||||||
|
|
||||||
public long _addressof_wglBindDisplayColorTableEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglBindSwapBarrierNV;
|
|
||||||
|
|
||||||
public long _addressof_wglBindTexImageARB;
|
|
||||||
|
|
||||||
public long _addressof_wglChoosePixelFormatARB;
|
|
||||||
|
|
||||||
public long _addressof_wglChoosePixelFormatEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglCreateAffinityDCNV;
|
|
||||||
|
|
||||||
public long _addressof_wglCreateDisplayColorTableEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglCreatePbufferARB;
|
|
||||||
|
|
||||||
public long _addressof_wglCreatePbufferEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglDeleteDCNV;
|
|
||||||
|
|
||||||
public long _addressof_wglDestroyDisplayColorTableEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglDestroyPbufferARB;
|
|
||||||
|
|
||||||
public long _addressof_wglDestroyPbufferEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglDisableFrameLockI3D;
|
|
||||||
|
|
||||||
public long _addressof_wglEnableFrameLockI3D;
|
|
||||||
|
|
||||||
public long _addressof_wglEndFrameTrackingI3D;
|
|
||||||
|
|
||||||
public long _addressof_wglEnumGpuDevicesNV;
|
|
||||||
|
|
||||||
public long _addressof_wglEnumGpusFromAffinityDCNV;
|
|
||||||
|
|
||||||
public long _addressof_wglEnumGpusNV;
|
|
||||||
|
|
||||||
public long _addressof_wglFreeMemoryNV;
|
|
||||||
|
|
||||||
public long _addressof_wglGetCurrentReadDCARB;
|
|
||||||
|
|
||||||
public long _addressof_wglGetCurrentReadDCEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglGetExtensionsStringARB;
|
|
||||||
|
|
||||||
public long _addressof_wglGetExtensionsStringEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglGetFrameUsageI3D;
|
|
||||||
|
|
||||||
public long _addressof_wglGetPbufferDCARB;
|
|
||||||
|
|
||||||
public long _addressof_wglGetPbufferDCEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglGetPixelFormatAttribfvARB;
|
|
||||||
|
|
||||||
public long _addressof_wglGetPixelFormatAttribfvEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglGetPixelFormatAttribivARB;
|
|
||||||
|
|
||||||
public long _addressof_wglGetPixelFormatAttribivEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglGetSwapIntervalEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglIsEnabledFrameLockI3D;
|
|
||||||
|
|
||||||
public long _addressof_wglJoinSwapGroupNV;
|
|
||||||
|
|
||||||
public long _addressof_wglLoadDisplayColorTableEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglMakeContextCurrentARB;
|
|
||||||
|
|
||||||
public long _addressof_wglMakeContextCurrentEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglQueryFrameCountNV;
|
|
||||||
|
|
||||||
public long _addressof_wglQueryFrameLockMasterI3D;
|
|
||||||
|
|
||||||
public long _addressof_wglQueryFrameTrackingI3D;
|
|
||||||
|
|
||||||
public long _addressof_wglQueryMaxSwapGroupsNV;
|
|
||||||
|
|
||||||
public long _addressof_wglQueryPbufferARB;
|
|
||||||
|
|
||||||
public long _addressof_wglQueryPbufferEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglQuerySwapGroupNV;
|
|
||||||
|
|
||||||
public long _addressof_wglReleasePbufferDCARB;
|
|
||||||
|
|
||||||
public long _addressof_wglReleasePbufferDCEXT;
|
|
||||||
|
|
||||||
public long _addressof_wglReleaseTexImageARB;
|
|
||||||
|
|
||||||
public long _addressof_wglResetFrameCountNV;
|
|
||||||
|
|
||||||
public long _addressof_wglSetPbufferAttribARB;
|
|
||||||
|
|
||||||
public long _addressof_wglSwapIntervalEXT;
|
|
||||||
}
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import javax.media.opengl.GLCapabilities;
|
|
||||||
import javax.media.opengl.GLCapabilitiesChooser;
|
|
||||||
import javax.media.opengl.GLContext;
|
|
||||||
|
|
||||||
public class WindowsDummyGLDrawable extends WindowsGLDrawable {
|
|
||||||
|
|
||||||
private long hwnd;
|
|
||||||
|
|
||||||
public WindowsDummyGLDrawable() {
|
|
||||||
super(new GLCapabilities(), (GLCapabilitiesChooser) null);
|
|
||||||
synchronized (WindowsDummyGLDrawable.class) {
|
|
||||||
this.hwnd = WGL.CreateDummyWindow(0, 0, 1, 1);
|
|
||||||
}
|
|
||||||
this.hdc = WGL.GetDC(this.hwnd);
|
|
||||||
GLCapabilities var1 = new GLCapabilities();
|
|
||||||
var1.setDepthBits(16);
|
|
||||||
PIXELFORMATDESCRIPTOR var2 = glCapabilities2PFD(var1, true);
|
|
||||||
int var3 = WGL.ChoosePixelFormat(this.hdc, var2);
|
|
||||||
if (var3 == 0 || !WGL.SetPixelFormat(this.hdc, var3, var2)) {
|
|
||||||
this.destroy();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public GLContext createContext(GLContext arg0) {
|
|
||||||
return this.hdc == 0L ? null : new WindowsGLContext(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void destroy() {
|
|
||||||
if (this.hdc != 0L) {
|
|
||||||
WGL.ReleaseDC(this.hwnd, this.hdc);
|
|
||||||
this.hdc = 0L;
|
|
||||||
}
|
|
||||||
if (this.hwnd != 0L) {
|
|
||||||
WGL.ShowWindow(this.hwnd, 0);
|
|
||||||
WGL.DestroyWindow(this.hwnd);
|
|
||||||
this.hwnd = 0L;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,121 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import com.sun.opengl.impl.GLContextImpl;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public class WindowsGLContext extends GLContextImpl {
|
|
||||||
|
|
||||||
protected WindowsGLDrawable drawable;
|
|
||||||
|
|
||||||
protected long hglrc;
|
|
||||||
|
|
||||||
private boolean wglGetExtensionsStringEXTInitialized;
|
|
||||||
|
|
||||||
private boolean wglGetExtensionsStringEXTAvailable;
|
|
||||||
|
|
||||||
private static final Map functionNameMap = new HashMap();
|
|
||||||
|
|
||||||
private static final Map extensionNameMap;
|
|
||||||
|
|
||||||
private WGLExt wglExt;
|
|
||||||
|
|
||||||
private WGLExtProcAddressTable wglExtProcAddressTable;
|
|
||||||
|
|
||||||
public WindowsGLContext(WindowsGLDrawable arg0) {
|
|
||||||
this.drawable = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Object getPlatformGLExtensions() {
|
|
||||||
return this.getWGLExt();
|
|
||||||
}
|
|
||||||
|
|
||||||
public WGLExt getWGLExt() {
|
|
||||||
if (this.wglExt == null) {
|
|
||||||
this.wglExt = new WGLExtImpl(this);
|
|
||||||
}
|
|
||||||
return this.wglExt;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected String mapToRealGLExtensionName(String arg0) {
|
|
||||||
String var2 = (String) extensionNameMap.get(arg0);
|
|
||||||
return var2 == null ? arg0 : var2;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void create() {
|
|
||||||
if (this.drawable.getHDC() == 0L) {
|
|
||||||
throw new GLException("Internal error: attempted to create OpenGL context without an associated drawable");
|
|
||||||
}
|
|
||||||
this.hglrc = WGL.wglCreateContext(this.drawable.getHDC());
|
|
||||||
if (this.hglrc == 0L) {
|
|
||||||
throw new GLException("Unable to create OpenGL context for device context " + toHexString(this.drawable.getHDC()));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected int makeCurrentImpl() throws GLException {
|
|
||||||
boolean var1 = false;
|
|
||||||
if (this.hglrc == 0L) {
|
|
||||||
this.create();
|
|
||||||
var1 = true;
|
|
||||||
}
|
|
||||||
if (!WGL.wglMakeCurrent(this.drawable.getHDC(), this.hglrc)) {
|
|
||||||
throw new GLException("Error making context current: " + WGL.GetLastError());
|
|
||||||
} else if (var1) {
|
|
||||||
this.resetGLFunctionAvailability();
|
|
||||||
return 2;
|
|
||||||
} else {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void releaseImpl() throws GLException {
|
|
||||||
if (!WGL.wglMakeCurrent(0L, 0L)) {
|
|
||||||
throw new GLException("Error freeing OpenGL context: " + WGL.GetLastError());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void destroyImpl() throws GLException {
|
|
||||||
if (this.hglrc != 0L) {
|
|
||||||
if (!WGL.wglDeleteContext(this.hglrc)) {
|
|
||||||
throw new GLException("Unable to delete OpenGL context");
|
|
||||||
}
|
|
||||||
this.hglrc = 0L;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void resetGLFunctionAvailability() {
|
|
||||||
super.resetGLFunctionAvailability();
|
|
||||||
this.resetProcAddressTable(this.getWGLExtProcAddressTable());
|
|
||||||
}
|
|
||||||
|
|
||||||
public WGLExtProcAddressTable getWGLExtProcAddressTable() {
|
|
||||||
if (this.wglExtProcAddressTable == null) {
|
|
||||||
this.wglExtProcAddressTable = new WGLExtProcAddressTable();
|
|
||||||
}
|
|
||||||
return this.wglExtProcAddressTable;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPlatformExtensionsString() {
|
|
||||||
if (!this.wglGetExtensionsStringEXTInitialized) {
|
|
||||||
this.wglGetExtensionsStringEXTAvailable = WGL.wglGetProcAddress("wglGetExtensionsStringEXT") != 0L;
|
|
||||||
this.wglGetExtensionsStringEXTInitialized = true;
|
|
||||||
}
|
|
||||||
return this.wglGetExtensionsStringEXTAvailable ? this.getWGLExt().wglGetExtensionsStringEXT() : "";
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSwapInterval(int arg0) {
|
|
||||||
WGLExt var2 = this.getWGLExt();
|
|
||||||
if (var2.isExtensionAvailable("WGL_EXT_swap_control")) {
|
|
||||||
var2.wglSwapIntervalEXT(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
functionNameMap.put("glAllocateMemoryNV", "wglAllocateMemoryNV");
|
|
||||||
functionNameMap.put("glFreeMemoryNV", "wglFreeMemoryNV");
|
|
||||||
extensionNameMap = new HashMap();
|
|
||||||
extensionNameMap.put("GL_ARB_pbuffer", "WGL_ARB_pbuffer");
|
|
||||||
extensionNameMap.put("GL_ARB_pixel_format", "WGL_ARB_pixel_format");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,392 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import com.sun.opengl.impl.GLDrawableImpl;
|
|
||||||
import javax.media.opengl.GLCapabilities;
|
|
||||||
import javax.media.opengl.GLCapabilitiesChooser;
|
|
||||||
import javax.media.opengl.GLContext;
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public abstract class WindowsGLDrawable extends GLDrawableImpl {
|
|
||||||
|
|
||||||
protected long hdc;
|
|
||||||
|
|
||||||
protected GLCapabilities capabilities;
|
|
||||||
|
|
||||||
protected GLCapabilitiesChooser chooser;
|
|
||||||
|
|
||||||
protected boolean pixelFormatChosen;
|
|
||||||
|
|
||||||
public WindowsGLDrawable(GLCapabilities arg0, GLCapabilitiesChooser arg1) {
|
|
||||||
this.capabilities = (GLCapabilities) arg0.clone();
|
|
||||||
this.chooser = arg1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRealized(boolean arg0) {
|
|
||||||
throw new GLException("Should not call this (should only be called for onscreen GLDrawables)");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void swapBuffers() throws GLException {
|
|
||||||
}
|
|
||||||
|
|
||||||
public long getHDC() {
|
|
||||||
return this.hdc;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void choosePixelFormat(boolean arg0) {
|
|
||||||
PIXELFORMATDESCRIPTOR var2 = null;
|
|
||||||
boolean var3 = false;
|
|
||||||
GLCapabilities var4 = null;
|
|
||||||
int var25;
|
|
||||||
if (arg0) {
|
|
||||||
if ((var25 = WGL.GetPixelFormat(this.hdc)) != 0) {
|
|
||||||
var2 = newPixelFormatDescriptor();
|
|
||||||
if (WGL.DescribePixelFormat(this.hdc, var25, PIXELFORMATDESCRIPTOR.size(), var2) == 0) {
|
|
||||||
throw new GLException("Unable to describe pixel format " + var25 + " of window set by Java2D/OpenGL pipeline");
|
|
||||||
}
|
|
||||||
this.setChosenGLCapabilities(pfd2GLCapabilities(var2));
|
|
||||||
this.pixelFormatChosen = true;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
GLCapabilities[] var5 = null;
|
|
||||||
int var6 = 0;
|
|
||||||
var2 = newPixelFormatDescriptor();
|
|
||||||
WindowsDummyGLDrawable var7 = null;
|
|
||||||
WindowsGLContext var8 = null;
|
|
||||||
WGLExt var9 = null;
|
|
||||||
if (this.capabilities.getSampleBuffers()) {
|
|
||||||
var7 = new WindowsDummyGLDrawable();
|
|
||||||
var8 = (WindowsGLContext) var7.createContext(null);
|
|
||||||
if (var8 != null) {
|
|
||||||
var8.makeCurrent();
|
|
||||||
var9 = (WGLExt) var8.getPlatformGLExtensions();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int var10 = -1;
|
|
||||||
boolean var11 = false;
|
|
||||||
boolean var12 = false;
|
|
||||||
boolean var13 = false;
|
|
||||||
if (var9 != null) {
|
|
||||||
try {
|
|
||||||
var11 = var9.isExtensionAvailable("WGL_ARB_pixel_format");
|
|
||||||
if (var11) {
|
|
||||||
var12 = var9.isExtensionAvailable("WGL_ARB_multisample");
|
|
||||||
int[] var14 = new int[512];
|
|
||||||
int[] var15 = new int[512];
|
|
||||||
float[] var16 = new float[1];
|
|
||||||
if (glCapabilities2iattributes(this.capabilities, var14, var9, null)) {
|
|
||||||
int[] var17 = new int[256];
|
|
||||||
int[] var18 = new int[1];
|
|
||||||
if (var9.wglChoosePixelFormatARB(this.hdc, var14, 0, var16, 0, 256, var17, 0, var18, 0)) {
|
|
||||||
var6 = var18[0];
|
|
||||||
if (var6 > 0) {
|
|
||||||
var10 = var17[0] - 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
byte var19 = 0;
|
|
||||||
var14[0] = 8192;
|
|
||||||
if (var9.wglGetPixelFormatAttribivARB(this.hdc, 0, 0, 1, var14, 0, var15, 0)) {
|
|
||||||
var6 = var15[0];
|
|
||||||
int var35 = var19 + 1;
|
|
||||||
var14[var19] = 8193;
|
|
||||||
int var37 = var35 + 1;
|
|
||||||
var14[var35] = 8195;
|
|
||||||
int var39 = var37 + 1;
|
|
||||||
var14[var37] = 8208;
|
|
||||||
int var41 = var39 + 1;
|
|
||||||
var14[var39] = 8226;
|
|
||||||
int var44 = var41 + 1;
|
|
||||||
var14[var41] = 8227;
|
|
||||||
int var46 = var44 + 1;
|
|
||||||
var14[var44] = 8209;
|
|
||||||
int var48 = var46 + 1;
|
|
||||||
var14[var46] = 8210;
|
|
||||||
int var50 = var48 + 1;
|
|
||||||
var14[var48] = 8211;
|
|
||||||
int var52 = var50 + 1;
|
|
||||||
var14[var50] = 8213;
|
|
||||||
int var54 = var52 + 1;
|
|
||||||
var14[var52] = 8215;
|
|
||||||
int var55 = var54 + 1;
|
|
||||||
var14[var54] = 8217;
|
|
||||||
int var56 = var55 + 1;
|
|
||||||
var14[var55] = 8219;
|
|
||||||
int var57 = var56 + 1;
|
|
||||||
var14[var56] = 8222;
|
|
||||||
int var58 = var57 + 1;
|
|
||||||
var14[var57] = 8223;
|
|
||||||
int var59 = var58 + 1;
|
|
||||||
var14[var58] = 8224;
|
|
||||||
int var60 = var59 + 1;
|
|
||||||
var14[var59] = 8225;
|
|
||||||
if (var12) {
|
|
||||||
var14[var60++] = 8257;
|
|
||||||
var14[var60++] = 8258;
|
|
||||||
}
|
|
||||||
var5 = new GLCapabilities[var6];
|
|
||||||
for (int var20 = 0; var20 < var6; var20++) {
|
|
||||||
if (!var9.wglGetPixelFormatAttribivARB(this.hdc, var20 + 1, 0, var60, var14, 0, var15, 0)) {
|
|
||||||
throw new GLException("Error getting pixel format attributes for pixel format " + (var20 + 1) + " of device context");
|
|
||||||
}
|
|
||||||
var5[var20] = iattributes2GLCapabilities(var14, var60, var15, true);
|
|
||||||
}
|
|
||||||
var13 = true;
|
|
||||||
} else {
|
|
||||||
long var43 = (long) WGL.GetLastError();
|
|
||||||
if (var43 != 0L) {
|
|
||||||
throw new GLException("Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: error code " + WGL.GetLastError());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
var8.release();
|
|
||||||
var8.destroy();
|
|
||||||
var7.destroy();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!var13) {
|
|
||||||
var2 = glCapabilities2PFD(this.capabilities, arg0);
|
|
||||||
var10 = WGL.ChoosePixelFormat(this.hdc, var2) - 1;
|
|
||||||
var6 = WGL.DescribePixelFormat(this.hdc, 1, 0, null);
|
|
||||||
if (var6 == 0) {
|
|
||||||
throw new GLException("Unable to enumerate pixel formats of window for GLCapabilitiesChooser");
|
|
||||||
}
|
|
||||||
var5 = new GLCapabilities[var6];
|
|
||||||
for (int var28 = 0; var28 < var6; var28++) {
|
|
||||||
if (WGL.DescribePixelFormat(this.hdc, var28 + 1, PIXELFORMATDESCRIPTOR.size(), var2) == 0) {
|
|
||||||
throw new GLException("Error describing pixel format " + (var28 + 1) + " of device context");
|
|
||||||
}
|
|
||||||
var5[var28] = pfd2GLCapabilities(var2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int var26 = this.chooser.chooseCapabilities(this.capabilities, var5, var10);
|
|
||||||
if (var26 < 0 || var26 >= var6) {
|
|
||||||
throw new GLException("Invalid result " + var26 + " from GLCapabilitiesChooser (should be between 0 and " + (var6 - 1) + ")");
|
|
||||||
}
|
|
||||||
var4 = var5[var26];
|
|
||||||
var25 = var26 + 1;
|
|
||||||
if (WGL.DescribePixelFormat(this.hdc, var25, PIXELFORMATDESCRIPTOR.size(), var2) == 0) {
|
|
||||||
throw new GLException("Error re-describing the chosen pixel format: " + WGL.GetLastError());
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
var2 = glCapabilities2PFD(this.capabilities, arg0);
|
|
||||||
var25 = WGL.ChoosePixelFormat(this.hdc, var2);
|
|
||||||
}
|
|
||||||
if (!WGL.SetPixelFormat(this.hdc, var25, var2)) {
|
|
||||||
long var27 = (long) WGL.GetLastError();
|
|
||||||
throw new GLException("Unable to set pixel format " + var25 + " for device context " + toHexString(this.hdc) + ": error code " + var27);
|
|
||||||
}
|
|
||||||
if (var4 == null) {
|
|
||||||
this.setChosenGLCapabilities(pfd2GLCapabilities(var2));
|
|
||||||
} else {
|
|
||||||
this.setChosenGLCapabilities(var4);
|
|
||||||
}
|
|
||||||
this.pixelFormatChosen = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected static PIXELFORMATDESCRIPTOR glCapabilities2PFD(GLCapabilities arg0, boolean arg1) {
|
|
||||||
int var2 = arg0.getRedBits() + arg0.getGreenBits() + arg0.getBlueBits();
|
|
||||||
if (var2 < 15) {
|
|
||||||
throw new GLException("Bit depths < 15 (i.e., non-true-color) not supported");
|
|
||||||
}
|
|
||||||
PIXELFORMATDESCRIPTOR var3 = newPixelFormatDescriptor();
|
|
||||||
int var4 = 4128;
|
|
||||||
if (arg0.getDoubleBuffered()) {
|
|
||||||
var4 |= 0x1;
|
|
||||||
}
|
|
||||||
if (arg1) {
|
|
||||||
var4 |= 0x4;
|
|
||||||
} else {
|
|
||||||
var4 |= 0x8;
|
|
||||||
}
|
|
||||||
if (arg0.getStereo()) {
|
|
||||||
var4 |= 0x2;
|
|
||||||
}
|
|
||||||
var3.dwFlags(var4);
|
|
||||||
var3.iPixelType((byte) 0);
|
|
||||||
var3.cColorBits((byte) var2);
|
|
||||||
var3.cRedBits((byte) arg0.getRedBits());
|
|
||||||
var3.cGreenBits((byte) arg0.getGreenBits());
|
|
||||||
var3.cBlueBits((byte) arg0.getBlueBits());
|
|
||||||
var3.cAlphaBits((byte) arg0.getAlphaBits());
|
|
||||||
int var5 = arg0.getAccumRedBits() + arg0.getAccumGreenBits() + arg0.getAccumBlueBits();
|
|
||||||
var3.cAccumBits((byte) var5);
|
|
||||||
var3.cAccumRedBits((byte) arg0.getAccumRedBits());
|
|
||||||
var3.cAccumGreenBits((byte) arg0.getAccumGreenBits());
|
|
||||||
var3.cAccumBlueBits((byte) arg0.getAccumBlueBits());
|
|
||||||
var3.cAccumAlphaBits((byte) arg0.getAccumAlphaBits());
|
|
||||||
var3.cDepthBits((byte) arg0.getDepthBits());
|
|
||||||
var3.cStencilBits((byte) arg0.getStencilBits());
|
|
||||||
var3.iLayerType((byte) 0);
|
|
||||||
return var3;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected static PIXELFORMATDESCRIPTOR newPixelFormatDescriptor() {
|
|
||||||
PIXELFORMATDESCRIPTOR var0 = PIXELFORMATDESCRIPTOR.create();
|
|
||||||
var0.nSize((short) PIXELFORMATDESCRIPTOR.size());
|
|
||||||
var0.nVersion((short) 1);
|
|
||||||
return var0;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected static GLCapabilities pfd2GLCapabilities(PIXELFORMATDESCRIPTOR arg0) {
|
|
||||||
if ((arg0.dwFlags() & 0x20) == 0) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
GLCapabilities var1 = new GLCapabilities();
|
|
||||||
var1.setRedBits(arg0.cRedBits());
|
|
||||||
var1.setGreenBits(arg0.cGreenBits());
|
|
||||||
var1.setBlueBits(arg0.cBlueBits());
|
|
||||||
var1.setAlphaBits(arg0.cAlphaBits());
|
|
||||||
var1.setAccumRedBits(arg0.cAccumRedBits());
|
|
||||||
var1.setAccumGreenBits(arg0.cAccumGreenBits());
|
|
||||||
var1.setAccumBlueBits(arg0.cAccumBlueBits());
|
|
||||||
var1.setAccumAlphaBits(arg0.cAccumAlphaBits());
|
|
||||||
var1.setDepthBits(arg0.cDepthBits());
|
|
||||||
var1.setStencilBits(arg0.cStencilBits());
|
|
||||||
var1.setDoubleBuffered((arg0.dwFlags() & 0x1) != 0);
|
|
||||||
var1.setStereo((arg0.dwFlags() & 0x2) != 0);
|
|
||||||
var1.setHardwareAccelerated((arg0.dwFlags() & 0x40) == 0 || (arg0.dwFlags() & 0x1000) != 0);
|
|
||||||
return var1;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected static boolean glCapabilities2iattributes(GLCapabilities arg0, int[] arg1, WGLExt arg2, int[] arg3) throws GLException {
|
|
||||||
if (!arg2.isExtensionAvailable("WGL_ARB_pixel_format")) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
byte var4 = 0;
|
|
||||||
int var5 = var4 + 1;
|
|
||||||
arg1[var4] = 8208;
|
|
||||||
int var6 = var5 + 1;
|
|
||||||
arg1[var5] = 1;
|
|
||||||
int var7 = var6 + 1;
|
|
||||||
arg1[var6] = 8193;
|
|
||||||
int var8 = var7 + 1;
|
|
||||||
arg1[var7] = 1;
|
|
||||||
int var9 = var8 + 1;
|
|
||||||
arg1[var8] = 8209;
|
|
||||||
if (arg0.getDoubleBuffered()) {
|
|
||||||
var5 = var9 + 1;
|
|
||||||
arg1[var9] = 1;
|
|
||||||
} else {
|
|
||||||
var5 = var9 + 1;
|
|
||||||
arg1[var9] = 0;
|
|
||||||
}
|
|
||||||
arg1[var5++] = 8210;
|
|
||||||
if (arg0.getStereo()) {
|
|
||||||
arg1[var5++] = 1;
|
|
||||||
} else {
|
|
||||||
arg1[var5++] = 0;
|
|
||||||
}
|
|
||||||
arg1[var5++] = 8226;
|
|
||||||
arg1[var5++] = arg0.getDepthBits();
|
|
||||||
arg1[var5++] = 8213;
|
|
||||||
arg1[var5++] = arg0.getRedBits();
|
|
||||||
arg1[var5++] = 8215;
|
|
||||||
arg1[var5++] = arg0.getGreenBits();
|
|
||||||
arg1[var5++] = 8217;
|
|
||||||
arg1[var5++] = arg0.getBlueBits();
|
|
||||||
arg1[var5++] = 8219;
|
|
||||||
arg1[var5++] = arg0.getAlphaBits();
|
|
||||||
arg1[var5++] = 8227;
|
|
||||||
arg1[var5++] = arg0.getStencilBits();
|
|
||||||
if (arg0.getAccumRedBits() > 0 || arg0.getAccumGreenBits() > 0 || arg0.getAccumBlueBits() > 0 || arg0.getAccumAlphaBits() > 0) {
|
|
||||||
arg1[var5++] = 8221;
|
|
||||||
arg1[var5++] = arg0.getAccumRedBits() + arg0.getAccumGreenBits() + arg0.getAccumBlueBits() + arg0.getAccumAlphaBits();
|
|
||||||
arg1[var5++] = 8222;
|
|
||||||
arg1[var5++] = arg0.getAccumRedBits();
|
|
||||||
arg1[var5++] = 8223;
|
|
||||||
arg1[var5++] = arg0.getAccumGreenBits();
|
|
||||||
arg1[var5++] = 8224;
|
|
||||||
arg1[var5++] = arg0.getAccumBlueBits();
|
|
||||||
arg1[var5++] = 8225;
|
|
||||||
arg1[var5++] = arg0.getAccumAlphaBits();
|
|
||||||
}
|
|
||||||
if (arg2.isExtensionAvailable("WGL_ARB_multisample") && arg0.getSampleBuffers()) {
|
|
||||||
arg1[var5++] = 8257;
|
|
||||||
arg1[var5++] = 1;
|
|
||||||
arg1[var5++] = 8258;
|
|
||||||
arg1[var5++] = arg0.getNumSamples();
|
|
||||||
}
|
|
||||||
arg1[var5++] = 8211;
|
|
||||||
arg1[var5++] = 8235;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected static GLCapabilities iattributes2GLCapabilities(int[] arg0, int arg1, int[] arg2, boolean arg3) {
|
|
||||||
GLCapabilities var4 = new GLCapabilities();
|
|
||||||
for (int var5 = 0; var5 < arg1; var5++) {
|
|
||||||
int var6 = arg0[var5];
|
|
||||||
switch(var6) {
|
|
||||||
case 8193:
|
|
||||||
if (arg3 && arg2[var5] != 1) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 8195:
|
|
||||||
var4.setHardwareAccelerated(arg2[var5] == 8231);
|
|
||||||
break;
|
|
||||||
case 8208:
|
|
||||||
if (arg2[var5] != 1) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 8209:
|
|
||||||
var4.setDoubleBuffered(arg2[var5] == 1);
|
|
||||||
break;
|
|
||||||
case 8210:
|
|
||||||
var4.setStereo(arg2[var5] == 1);
|
|
||||||
break;
|
|
||||||
case 8211:
|
|
||||||
if (arg2[var5] == 8235 || arg2[var5] == 8608) {
|
|
||||||
var4.setPbufferFloatingPointBuffers(true);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 8213:
|
|
||||||
var4.setRedBits(arg2[var5]);
|
|
||||||
break;
|
|
||||||
case 8215:
|
|
||||||
var4.setGreenBits(arg2[var5]);
|
|
||||||
break;
|
|
||||||
case 8217:
|
|
||||||
var4.setBlueBits(arg2[var5]);
|
|
||||||
break;
|
|
||||||
case 8219:
|
|
||||||
var4.setAlphaBits(arg2[var5]);
|
|
||||||
break;
|
|
||||||
case 8222:
|
|
||||||
var4.setAccumRedBits(arg2[var5]);
|
|
||||||
break;
|
|
||||||
case 8223:
|
|
||||||
var4.setAccumGreenBits(arg2[var5]);
|
|
||||||
break;
|
|
||||||
case 8224:
|
|
||||||
var4.setAccumBlueBits(arg2[var5]);
|
|
||||||
break;
|
|
||||||
case 8225:
|
|
||||||
var4.setAccumAlphaBits(arg2[var5]);
|
|
||||||
break;
|
|
||||||
case 8226:
|
|
||||||
var4.setDepthBits(arg2[var5]);
|
|
||||||
break;
|
|
||||||
case 8227:
|
|
||||||
var4.setStencilBits(arg2[var5]);
|
|
||||||
case 8237:
|
|
||||||
break;
|
|
||||||
case 8257:
|
|
||||||
var4.setSampleBuffers(arg2[var5] != 0);
|
|
||||||
break;
|
|
||||||
case 8258:
|
|
||||||
var4.setNumSamples(arg2[var5]);
|
|
||||||
break;
|
|
||||||
case 8368:
|
|
||||||
if (arg2[var5] != 0) {
|
|
||||||
var4.setPbufferFloatingPointBuffers(true);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
throw new GLException("Unknown pixel format attribute " + arg0[var5]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return var4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import com.sun.opengl.impl.GLDrawableFactoryImpl;
|
|
||||||
import java.awt.Component;
|
|
||||||
import javax.media.opengl.DefaultGLCapabilitiesChooser;
|
|
||||||
import javax.media.opengl.GLCapabilities;
|
|
||||||
import javax.media.opengl.GLCapabilitiesChooser;
|
|
||||||
import javax.media.opengl.GLDrawable;
|
|
||||||
|
|
||||||
public class WindowsGLDrawableFactory extends GLDrawableFactoryImpl {
|
|
||||||
|
|
||||||
public GLDrawable getGLDrawable(Object arg0, GLCapabilities arg1, GLCapabilitiesChooser arg2) {
|
|
||||||
if (arg0 == null) {
|
|
||||||
throw new IllegalArgumentException("Null target");
|
|
||||||
} else if (arg0 instanceof Component) {
|
|
||||||
if (arg1 == null) {
|
|
||||||
arg1 = new GLCapabilities();
|
|
||||||
}
|
|
||||||
if (arg2 == null) {
|
|
||||||
arg2 = new DefaultGLCapabilitiesChooser();
|
|
||||||
}
|
|
||||||
return new WindowsOnscreenGLDrawable((Component) arg0, arg1, arg2);
|
|
||||||
} else {
|
|
||||||
throw new IllegalArgumentException("GLDrawables not supported for objects of type " + arg0.getClass().getName() + " (only Components are supported in this implementation)");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public long dynamicLookupFunction(String arg0) {
|
|
||||||
return WGL.wglGetProcAddress(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
package com.sun.opengl.impl.windows;
|
|
||||||
|
|
||||||
import javax.media.opengl.GLException;
|
|
||||||
|
|
||||||
public class WindowsOnscreenGLContext extends WindowsGLContext {
|
|
||||||
|
|
||||||
protected WindowsOnscreenGLDrawable drawable;
|
|
||||||
|
|
||||||
public WindowsOnscreenGLContext(WindowsOnscreenGLDrawable arg0) {
|
|
||||||
super(arg0);
|
|
||||||
this.drawable = arg0;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected int makeCurrentImpl() throws GLException {
|
|
||||||
int var1 = this.drawable.lockSurface();
|
|
||||||
if (var1 == 1) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
int var2;
|
|
||||||
try {
|
|
||||||
if (var1 == 2) {
|
|
||||||
super.destroyImpl();
|
|
||||||
}
|
|
||||||
var2 = super.makeCurrentImpl();
|
|
||||||
} finally {
|
|
||||||
this.drawable.unlockSurface(false);
|
|
||||||
}
|
|
||||||
return var2;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void releaseImpl() throws GLException {
|
|
||||||
try {
|
|
||||||
super.releaseImpl();
|
|
||||||
} finally {
|
|
||||||
this.drawable.unlockSurface(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue