OpenGLDevice got a little out of hand, so move the entry points to a standalone file.