Thanks for this FR. I’ve had a go at implementing this here:
Note that is this currently not on develop. Given the scope of this change, it felt safer to put it on a feature branch so that it can get a bit of testing before merging it into develop. You can try out this change by checking out generated-opengl-headers
.
I’d really appreciate any feedback you can give about this change, as we don’t have a lot of OpenGL-dependent code to test with here.
Things that have changed:
- All GL symbols are in
juce::gl
. You can either manually prefix all symbols, or you can useusing namespace juce::gl
to make all GL symbols visible in a specific scope. We recommend doing this at the smallest viable scope, so definitely avoid adding this to headers. - The
JUCE_OPENGL3
preprocessor definition no longer does anything.