I am writing a non-graphical command-line tool which calls some OpenGL functions.
void main () { // T his creates a global QGLContext for convenience.