diff options
author | Kenneth Russel <[email protected]> | 2003-07-15 06:35:12 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2003-07-15 06:35:12 +0000 |
commit | 68e29a425b63f1eca8e6879ebfb3324929b3dc2a (patch) | |
tree | f7b2af1c4ff4dab8e4c72dba2fd72223323d0bb6 /src/net/java/games/gluegen/opengl/GLEmitter.java | |
parent | 1ad0557911c2466a6943564528b31cc33f48851d (diff) |
Fixed issue 13: Readable names for function arguments
Applied patches submitted by [email protected].
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@32 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/gluegen/opengl/GLEmitter.java')
-rw-r--r-- | src/net/java/games/gluegen/opengl/GLEmitter.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/java/games/gluegen/opengl/GLEmitter.java b/src/net/java/games/gluegen/opengl/GLEmitter.java index f6e26fd3b..5fb032124 100644 --- a/src/net/java/games/gluegen/opengl/GLEmitter.java +++ b/src/net/java/games/gluegen/opengl/GLEmitter.java @@ -224,6 +224,18 @@ public class GLEmitter extends JavaEmitter //System.err.println("WARNING (GL): *not* run-time linking: " + sym + // "(" + funcPointerTypedefName + " undefined)"); } + else + { + FunctionType typedef = typedefDictionary.get(funcPointerTypedefName).asPointer().getTargetType().asFunction(); + FunctionType fun = sym.getType(); + int numarg = typedef.getNumArguments(); + for ( int i =0; i < numarg; i++ ) + { + if ( fun.getArgumentName(i) == null ) + fun.setArgumentName(i,typedef.getArgumentName(i)); + } + } + return shouldWrap; } |