Skip to content

Commit 852e8ac

Browse files
committed
Updated ThinGL
1 parent 0b34851 commit 852e8ac

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies {
2727
}
2828
includeInJar "net.java.dev.jna:jna:5.17.0"
2929

30-
includeInJar("net.raphimc:thingl:0.0.5-20250502.220649-4") {
30+
includeInJar("net.raphimc:thingl:0.0.6-20250602.204901-1") {
3131
exclude group: "org.slf4j", module: "slf4j-api"
3232
}
3333
includeInJar "org.lwjgl:lwjgl-glfw:3.3.6"

src/main/java/net/raphimc/noteblocktool/frames/visualizer/VisualizerWindow.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
import net.raphimc.thingl.framebuffer.impl.WindowFramebuffer;
2525
import net.raphimc.thingl.implementation.DebugMessageCallback;
2626
import net.raphimc.thingl.implementation.GLFWWindowInterface;
27+
import net.raphimc.thingl.wrapper.Blending;
2728
import org.joml.Matrix4fStack;
2829
import org.lwjgl.glfw.GLFW;
2930
import org.lwjgl.glfw.GLFWErrorCallback;
3031
import org.lwjgl.opengl.GL;
3132
import org.lwjgl.opengl.GL11C;
32-
import org.lwjgl.opengl.GL14C;
3333

3434
public class VisualizerWindow {
3535

@@ -74,10 +74,10 @@ public VisualizerWindow(final SoundSystemSongPlayer songPlayer, final Runnable o
7474

7575
this.dropRenderer.init();
7676

77-
GL11C.glEnable(GL11C.GL_BLEND);
78-
GL14C.glBlendFuncSeparate(GL11C.GL_SRC_ALPHA, GL11C.GL_ONE_MINUS_SRC_ALPHA, GL11C.GL_ONE, GL11C.GL_ZERO);
79-
GL11C.glEnable(GL11C.GL_DEPTH_TEST);
80-
GL11C.glDepthFunc(GL11C.GL_LEQUAL);
77+
ThinGL.glStateManager().enable(GL11C.GL_BLEND);
78+
Blending.standardBlending();
79+
ThinGL.glStateManager().enable(GL11C.GL_DEPTH_TEST);
80+
ThinGL.glStateManager().setDepthFunc(GL11C.GL_LEQUAL);
8181
final TextureFramebuffer mainFramebuffer = new TextureFramebuffer();
8282
mainFramebuffer.setClearColor(0.5F, 0.5F, 0.5F, 0.5F);
8383
final Matrix4fStack positionMatrix = new Matrix4fStack(8);

0 commit comments

Comments
 (0)