Moved all gl code to *_gl.cpp files