|
24 | 24 | import net.raphimc.thingl.framebuffer.impl.WindowFramebuffer; |
25 | 25 | import net.raphimc.thingl.implementation.DebugMessageCallback; |
26 | 26 | import net.raphimc.thingl.implementation.GLFWWindowInterface; |
| 27 | +import net.raphimc.thingl.wrapper.Blending; |
27 | 28 | import org.joml.Matrix4fStack; |
28 | 29 | import org.lwjgl.glfw.GLFW; |
29 | 30 | import org.lwjgl.glfw.GLFWErrorCallback; |
30 | 31 | import org.lwjgl.opengl.GL; |
31 | 32 | import org.lwjgl.opengl.GL11C; |
32 | | -import org.lwjgl.opengl.GL14C; |
33 | 33 |
|
34 | 34 | public class VisualizerWindow { |
35 | 35 |
|
@@ -74,10 +74,10 @@ public VisualizerWindow(final SoundSystemSongPlayer songPlayer, final Runnable o |
74 | 74 |
|
75 | 75 | this.dropRenderer.init(); |
76 | 76 |
|
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); |
81 | 81 | final TextureFramebuffer mainFramebuffer = new TextureFramebuffer(); |
82 | 82 | mainFramebuffer.setClearColor(0.5F, 0.5F, 0.5F, 0.5F); |
83 | 83 | final Matrix4fStack positionMatrix = new Matrix4fStack(8); |
|
0 commit comments