Preparations for moving the opengl3 specific code into its own project.