an interface to access OpenGL functions from Pure
