mv opengl code to single file