diff options
author | Sven Gothel <[email protected]> | 2011-05-17 12:55:37 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-05-17 12:55:37 +0200 |
commit | 88eabad2809d0132f919d655211ffdbfd2feea97 (patch) | |
tree | 356ac61baed360930a79d3a83db8d40d7635982b /src | |
parent | 89c243c4b1210da083afe43b37a1180c98a54414 (diff) |
JOGL/GLDebug/GLTrace: Gluegen/BuildComposablePipeline: print arguments in debug pipe; common param print
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java index d11504a64..11919f9fd 100644 --- a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java +++ b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java @@ -934,10 +934,13 @@ public class BuildComposablePipeline { output.println(" String txt = new String(\"" + m.getName() + "(\" +"); Class<?>[] params = m.getParameterTypes(); for (int i = 0; params != null && i < params.length; i++) { - if (params[i].equals(int.class)) { - output.println(" \"<" + params[i].getName() + "> 0x\"+Integer.toHexString(arg" + i + ").toUpperCase() +"); + output.print(" \"<" + params[i].getName() + ">"); + if (params[i].isArray()) { + output.print("\" +"); + } else if (params[i].equals(int.class)) { + output.print(" 0x\"+Integer.toHexString(arg" + i + ").toUpperCase() +"); } else { - output.println(" \"<" + params[i].getName() + ">\" +"); + output.print(" \"+arg" + i + " +"); } if (i < params.length - 1) { output.println(" \", \" +"); @@ -1081,12 +1084,13 @@ public class BuildComposablePipeline { Class<?>[] params = m.getParameterTypes(); output.print(" \"" + m.getName() + "(\""); for (int i = 0; i < params.length; i++) { + output.print("+\"<" + params[i].getName() + ">"); if (params[i].isArray()) { - output.print("+\"<" + params[i].getName() + ">\""); + output.print("\""); } else if (params[i].equals(int.class)) { - output.print("+\"<" + params[i].getName() + "> 0x\"+Integer.toHexString(arg" + i + ").toUpperCase()"); + output.print(" 0x\"+Integer.toHexString(arg" + i + ").toUpperCase()"); } else { - output.print("+\"<" + params[i].getName() + "> \"+arg" + i); + output.print(" \"+arg" + i); } if (i < params.length - 1) { output.print("+\", \""); |