From 88eabad2809d0132f919d655211ffdbfd2feea97 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 17 May 2011 12:55:37 +0200 Subject: JOGL/GLDebug/GLTrace: Gluegen/BuildComposablePipeline: print arguments in debug pipe; common param print --- .../jogamp/gluegen/opengl/BuildComposablePipeline.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src') 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("+\", \""); -- cgit v1.2.3