Support for generating bindings for specifications which describe multiple APIs (OpenGL + OpenGL ES) #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!,
I was working on a project which requires switching between OpenGL and OpenGL ES bindings on runtime and I was struggling to find a library that could support this. I was using both glbinding and glesbinding, but they clash on compiling/linking as they expose the same symbols. However, I noticed that they could probably be combined somehow. So I've done some "hacks" to combine them for these binding generator scripts and I've been testing it out in this fork: andesyv/glmixedbinding
Combining the symbols from OpenGL and OpenGL ES created another issue however, in that types from OpenGL ES bleed into the type declarations for OpenGL Core/Compatibility (specifically the EGL related type declarations included in the OpenGL ES standard). So I've attempted to solve this by additionally stripping down the types exposed in the versioned headers (
glbinding/gl33/types.h
,glbinding/gl43ext/types.h
,glbinding/gles31/types.h
, e.t.c.). But for safety or compatibility with current projects relying on glbinding, I've set this "type stripping" configurable with astripFeatureHeaders
field in the profile JSON.Hopefully this (at least partially) closes #6.