My first idea for this would be to draw two triangles using glDrawElements and then changing texture continuously with glTexImage2D.
I’ve been away from OpenGL couple years now and wondering if there’s better way. Preferably in OpenGL 2.1 compatible way.