aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/lwjgl
diff options
context:
space:
mode:
authornextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-04-24 13:32:23 +0100
committernextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-04-24 13:32:23 +0100
commit5417c7bd2d43c306863707bb91e7c88a651a696b (patch)
tree102088a05cf8dd9d772ceb619fa521ee952e68c0 /src/main/java/io/polyfrost/oneconfig/lwjgl
parenta11a04cc1161a4ed55b85fa9bec877094f1e8e9d (diff)
downloadOneConfig-5417c7bd2d43c306863707bb91e7c88a651a696b.tar.gz
OneConfig-5417c7bd2d43c306863707bb91e7c88a651a696b.tar.bz2
OneConfig-5417c7bd2d43c306863707bb91e7c88a651a696b.zip
mod cards, loading of mods, fixes, and some more stuff
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/lwjgl')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java b/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java
index dcfd513..4406836 100644
--- a/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java
+++ b/src/main/java/io/polyfrost/oneconfig/lwjgl/RenderManager.java
@@ -124,6 +124,15 @@ public final class RenderManager {
nvgColor.free();
}
+ public static void drawRoundedRectVaried(long vg, float x, float y, float width, float height, int color, float radiusTL, float radiusTR, float radiusBR, float radiusBL) {
+ nvgBeginPath(vg);
+ nvgRoundedRectVarying(vg, x, y, width, height, radiusTL, radiusTR, radiusBR, radiusBL);
+ color(vg, color);
+ NVGColor nvgColor = color(vg, color);
+ nvgFill(vg);
+ nvgColor.free();
+ }
+
public static void drawHollowRoundRect(long vg, float x, float y, float width, float height, int color, float radius, float thickness) {
nvgBeginPath(vg);
nvgRoundedRect(vg, x + thickness, y + thickness, width - thickness, height - thickness, radius);