diff options
author | Sven Gothel <[email protected]> | 2023-09-16 15:40:48 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-09-16 15:40:48 +0200 |
commit | aac1265340ae2ee1cad6bbf89369ba0288a6a290 (patch) | |
tree | a2f7e0e80b6de5d491a63a97d2e9ef72b0c51568 /src/jogl/classes/com/jogamp/graph | |
parent | e5de90b67efe8e8ca518159b3a73295d751764c1 (diff) |
Debug.debugExplicit(): Define and use explicit symbol debug flag; Use it for certain debug output to keep most silence for debugAll()
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/Region.java | 6 | ||||
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/Region.java b/src/jogl/classes/com/jogamp/graph/curve/Region.java index 07592430e..66ef3da6e 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/Region.java +++ b/src/jogl/classes/com/jogamp/graph/curve/Region.java @@ -61,9 +61,11 @@ import com.jogamp.opengl.util.texture.TextureSequence; */ public abstract class Region { + public static final boolean DEBUG_ALL_EVENT = Debug.debugExplicit("graph.curve.AllEvent"); + public static final boolean DEBUG_INSTANCE = Debug.debugExplicit("graph.curve.Instance"); + /** Debug flag for [com.]jogamp.graph.curve.* incl. Region (graph.curve) */ - public static final boolean DEBUG = Debug.debug("graph.curve"); - public static final boolean DEBUG_INSTANCE = Debug.debug("graph.curve.Instance"); + public static final boolean DEBUG = DEBUG_ALL_EVENT || Debug.debug("graph.curve"); /** * Rendering-Mode bit for {@link #getRenderModes() Region} diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java index 0c939d015..6fbedf809 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java +++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java @@ -65,6 +65,7 @@ import com.jogamp.graph.curve.Region; */ public final class RegionRenderer { protected static final boolean DEBUG = Region.DEBUG; + protected static final boolean DEBUG_ALL_EVENT = Region.DEBUG_ALL_EVENT; protected static final boolean DEBUG_INSTANCE = Region.DEBUG_INSTANCE; /** @@ -560,7 +561,7 @@ public final class RegionRenderer { if( DEBUG ) { if( spChanged ) { System.err.printf("RegionRendererImpl01.useShaderProgram.X1: GOT renderModes %s, sel1 %s, key 0x%X -> sp %d / %d (changed)%n", Region.getRenderModeString(renderModes), sel1, shaderKey, sp.program(), sp.id()); - } else { + } else if( DEBUG_ALL_EVENT ) { System.err.printf("RegionRendererImpl01.useShaderProgram.X1: GOT renderModes %s, sel1 %s, key 0x%X -> sp %d / %d (keep)%n", Region.getRenderModeString(renderModes), sel1, shaderKey, sp.program(), sp.id()); } } |