mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 08:25:14 -06:00
Consolidated a LOT of static classes (first pass)
This commit is contained in:
parent
9789c5b66e
commit
7ffd30e31c
264 changed files with 7190 additions and 8201 deletions
|
|
@ -1,7 +1,11 @@
|
|||
package rt4;
|
||||
|
||||
import com.jogamp.opengl.GL2;
|
||||
import org.openrs2.deob.annotation.OriginalClass;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
import java.nio.FloatBuffer;
|
||||
|
||||
@OriginalClass("client!ga")
|
||||
public final class ParticleSystem extends ParticleNode {
|
||||
|
|
@ -11,7 +15,30 @@ public final class ParticleSystem extends ParticleNode {
|
|||
new Buffer(131056);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!ga", name = "d", descriptor = "()V")
|
||||
@OriginalMember(owner = "client!ga", name = "a", descriptor = "()V")
|
||||
public static void load() {
|
||||
@Pc(1) GL2 gl = GlRenderer.gl;
|
||||
if (gl.isExtensionAvailable("GL_ARB_point_parameters")) {
|
||||
@Pc(20) float[] coefficients = new float[] { 1.0F, 0.0F, 5.0E-4F };
|
||||
gl.glPointParameterfv(GL2.GL_POINT_DISTANCE_ATTENUATION, coefficients, 0);
|
||||
@Pc(28) FloatBuffer buffer = FloatBuffer.allocate(1);
|
||||
gl.glGetFloatv(GL2.GL_POINT_SIZE_MAX, buffer);
|
||||
@Pc(36) float pointSizeMax = buffer.get(0);
|
||||
if (pointSizeMax > 1024.0F) {
|
||||
pointSizeMax = 1024.0F;
|
||||
}
|
||||
gl.glPointParameterf(GL2.GL_POINT_SIZE_MIN, 1.0F);
|
||||
gl.glPointParameterf(GL2.GL_POINT_SIZE_MAX, pointSizeMax);
|
||||
}
|
||||
if (gl.isExtensionAvailable("GL_ARB_point_sprite")) {
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!ga", name = "b", descriptor = "()V")
|
||||
public static void quit() {
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!ga", name = "d", descriptor = "()V")
|
||||
public final void method1646() {
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue