A mesh is composed of 3D Points, that construct triangles or quads. Each 3D point maps to a 2D point in your image. By moving the 3D points around in space, the viewer will see the image appear to warp.
Check out these OpenGL Samples to learn more about meshes.
http://www.opengl.org/code/[
^]