summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen/opengl/GLEmitter.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-08-05 09:57:37 -0700
committerSven Gothel <[email protected]>2009-08-05 09:57:37 -0700
commit814050670c7b523d0cdd049c89abf657a230c866 (patch)
tree8a09e6b316d3b9842c2418437acfe62bc331bce1 /src/java/com/sun/gluegen/opengl/GLEmitter.java
parent55cf5a4f224c87542b65d820b851f66d371c4062 (diff)
Fix: Allow all constanst defined by enums; Add PFD_ defines.
Diffstat (limited to 'src/java/com/sun/gluegen/opengl/GLEmitter.java')
-rw-r--r--src/java/com/sun/gluegen/opengl/GLEmitter.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/opengl/GLEmitter.java b/src/java/com/sun/gluegen/opengl/GLEmitter.java
index 9e32026..935706b 100644
--- a/src/java/com/sun/gluegen/opengl/GLEmitter.java
+++ b/src/java/com/sun/gluegen/opengl/GLEmitter.java
@@ -320,7 +320,15 @@ public class GLEmitter extends ProcAddressEmitter
StringBuffer newComment = new StringBuffer();
newComment.append("Part of <code>");
if(0==addExtensionsOfSymbols2Buffer(newComment, ", ", symbolRenamed, def.getAliasedNames())) {
- // Note: All GL enums must be contained within an extension marker !
+ if(def.isEnum()) {
+ String enumName = def.getEnumName();
+ if(null!=enumName) {
+ newComment.append(enumName);
+ } else {
+ newComment.append("ENUM");
+ }
+ } else {
+ // Note: All GL defines must be contained within an extension marker !
// #ifndef GL_EXT_lala
// #define GL_EXT_lala 1
// ...
@@ -331,6 +339,7 @@ public class GLEmitter extends ProcAddressEmitter
System.err.println("Dropping marker: "+sb.toString());
}
return;
+ }
}
newComment.append("</code>");