Hi i am really a newbie in opengl i have made some objects and other stuff but i cant complete this flag. The hearts at the top left seem to be impossible and its had to overlay all the lines maybe someone can do it and type the code so i can see how
Your approach is wrong. You should load this image as a texture and then apply the texture to a mesh of triangles if you want a flag. Then you can animate the mesh with a wave pattern or other dynamic simulation and it will correctly deform the texture pattern you have applied to the mesh. There are plenty of examples out there on how to do this.