Are there any headers that only include the function prototypes and #defines/enums for a specific version of OpenGL? Say I want OpenGL 4.2. I want a list of those functions and values with nothing else included. Is there anything like that?
The documentation man pages seems to only include the entries for a specific version but that’s not in a usable format (ie. headers). Plus these don’t seem to list all the enum values in one place, they’re scattered across all the individual pages and I’m not even sure they’re all listed there either.
It seems to me that it would be good if I could define something like “USE_VERSION_4_2” before including the GL headers and then get only the stuff related to that version (this is appears impossible with the current headers).
The reason I want to do this is for connecting OpenGL to a scripting language. My choice is either to include anything and everything which is too much work for a bunch of stuff I’m not going to use, or somehow manually pick through all the prototypes to get just the version I want which is also an insane amount of work. Not to mention trying to find all the #define/enum’s only for a specific version seems impossible because I have never seen a concise version specific list.
It seems like someone, somewhere should have created a version specific list of stuff, no?