Since zglgen somewhat works now, it's time to clean up the mess.
There are multiple problems I would like to address:
Loading multiple GL versions is possible but the dispatch table will hold all of function pointers to the latest generated version.
This is not particullary great, as it's possible to invoke a call to a function that is not loaded and it's wastefull usage of bytes.
The preffered method of checking for extension support changed since OpenGL Core.
This makes it tricky to check and load extensions across all generated versions.
loadGLXX is clunky, it would be much better to specify a version or a feature as a parameter
Generation depends on creating temporary XmlTree's. It's possible to get rid of them, speed up registry load times and enforce registry schema.
Since zglgen somewhat works now, it's time to clean up the mess. There are multiple problems I would like to address:
Loading multiple GL versions is possible but the dispatch table will hold all of function pointers to the latest generated version. This is not particullary great, as it's possible to invoke a call to a function that is not loaded and it's wastefull usage of bytes.
The preffered method of checking for extension support changed since OpenGL Core. This makes it tricky to check and load extensions across all generated versions.
loadGLXX
is clunky, it would be much better to specify a version or a feature as a parameterGeneration depends on creating temporary XmlTree's. It's possible to get rid of them, speed up registry load times and enforce registry schema.