Box2D / OpenGL : one texture mapped on many vertices
问题 I'm trying to do this kind of object with Box2D : Wobbly Picture using Box2D Building the grid with bodies and joints is not a problem, but I would like to use this matrix of points to warp my image. the problem is that I don't know how to "cut" my texture and map it on an OpenGL vertex array. I heard about u and v coordinates, but what about the texture cropping ? 回答1: Since you are asking how to connect textures, take a look into this modification of this hane lesson : // // This code was