aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/gluegen/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-05-17 12:55:37 +0200
committerSven Gothel <[email protected]>2011-05-17 12:55:37 +0200
commit88eabad2809d0132f919d655211ffdbfd2feea97 (patch)
tree356ac61baed360930a79d3a83db8d40d7635982b /src/jogl/classes/com/jogamp/gluegen/opengl
parent89c243c4b1210da083afe43b37a1180c98a54414 (diff)
JOGL/GLDebug/GLTrace: Gluegen/BuildComposablePipeline: print arguments in debug pipe; common param print
Diffstat (limited to 'src/jogl/classes/com/jogamp/gluegen/opengl')
-rw-r--r--src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java16
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("+\", \"");