internal/glc: more idiomatic and a central interface.
internal/glc: add state constant conversions
gl2: use internal/glc constant conversions