Added SwapBuffers command to Window class.