Export API to set GL flags

This will be used in the inspector.
inspector: Add GL flags
Add new API to docs