aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/lwjgl
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-21 19:21:15 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-21 19:21:15 +0200
commit54c3c18d1ac4347a35f449f77995e16b0740ec16 (patch)
tree082f40d38b722e6008bc3450c2fd33f97368c2aa /src/main/java/cc/polyfrost/oneconfig/lwjgl
parent21192da98b63874c9699194e02339d529380c535 (diff)
downloadOneConfig-54c3c18d1ac4347a35f449f77995e16b0740ec16.tar.gz
OneConfig-54c3c18d1ac4347a35f449f77995e16b0740ec16.tar.bz2
OneConfig-54c3c18d1ac4347a35f449f77995e16b0740ec16.zip
stuff
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/lwjgl')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java2
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/lwjgl/scissor/ScissorManager.java5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java b/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java
index c1df2fe..a04d287 100644
--- a/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java
+++ b/src/main/java/cc/polyfrost/oneconfig/lwjgl/RenderManager.java
@@ -302,7 +302,7 @@ public final class RenderManager {
nvgScale(vg, x, y);
}
- public static void withAlpha(long vg, float alpha) {
+ public static void setAlpha(long vg, float alpha) {
nvgGlobalAlpha(vg, alpha);
}
diff --git a/src/main/java/cc/polyfrost/oneconfig/lwjgl/scissor/ScissorManager.java b/src/main/java/cc/polyfrost/oneconfig/lwjgl/scissor/ScissorManager.java
index 0f821c9..1697b7e 100644
--- a/src/main/java/cc/polyfrost/oneconfig/lwjgl/scissor/ScissorManager.java
+++ b/src/main/java/cc/polyfrost/oneconfig/lwjgl/scissor/ScissorManager.java
@@ -22,6 +22,11 @@ public class ScissorManager {
}
}
+ public static void clearScissors(long vg) {
+ scissors.clear();
+ NanoVG.nvgResetScissor(vg);
+ }
+
private static void applyScissors(long vg) {
NanoVG.nvgResetScissor(vg);
if (scissors.size() <= 0) return;