Extension loading

Only works with OpenGL 3.0 and newer, or OpenGL ES 3.0 or newer.
Support for the deprecated method of querying extensions is missing.