Move WebGL constants to an x-macro header.

This could allow in the future to extend the data associated with
the constants, for example with getParameter type information.
WebGL 1.0 added some constants also listed in WebGL 2.0.