aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java/dev/isxander/yacl3/debug
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl3/debug')
-rw-r--r--common/src/main/java/dev/isxander/yacl3/debug/DebugProperties.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/debug/DebugProperties.java b/common/src/main/java/dev/isxander/yacl3/debug/DebugProperties.java
new file mode 100644
index 0000000..8d93bcd
--- /dev/null
+++ b/common/src/main/java/dev/isxander/yacl3/debug/DebugProperties.java
@@ -0,0 +1,13 @@
+package dev.isxander.yacl3.debug;
+
+import dev.isxander.yacl3.platform.YACLPlatform;
+
+public final class DebugProperties {
+ /** Applies GL filtering to rendering images. */
+ public static final boolean IMAGE_FILTERING = boolProp("imageFiltering", false, false);
+
+ private static boolean boolProp(String name, boolean defProd, boolean defDebug) {
+ boolean defaultValue = YACLPlatform.isDevelopmentEnv() ? defDebug : defProd;
+ return Boolean.parseBoolean(System.getProperty("yacl3.debug." + name, Boolean.toString(defaultValue)));
+ }
+}