aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/com')
-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("+\", \"");