
Convert can't parse glext.h from the iOS 5.0 sdk
Posted Wednesday, 7 December, 2011 - 12:35 by rolf| Project: | The Open Toolkit library |
| Version: | 1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
Description
It barks on lines like these:
GL_API GLvoid glPopGroupMarkerEXT(void) __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0);
(note the lack of GL_APIENTRY)
For reference the files are located in:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES1/glext.h


Comments
#1
#2
The converter is designed specifically for the official Khronos ES and CL headers. Headers from other sources are not supported (but I will welcome patches, provided they don't break on the official headers).
Another solution would be to use gccxml to parse the iOS headers and do a simple xml->xml conversion to the format used in the generator. This is something I am considering for a potential full Android/iPhone port, but no concrete plans yet (especially given the current MonoDroid/MonoTouch price).
#3
OK, I didn't know the only supported headers were the official Khronos ones (the readme just mentions "ES and CL" headers)
In any case I have an ugly patch that works for us (but wouldn't really make sense for you).