I have a texture (220x484) loaded into GPU memory.
I also have a ofPath, which represent a rectangular which can be slightly deformed.
What I need is to apply (bind) a texture to the vertices of my path in a straight forward way:
upper left corner of texture to upper left vertice of ofPath
lower left corner of texture to lower left vertice of ofPath
lower right corner of texture to lower right vertice of ofPath
upper right corner of texture to upper right vertice of ofPath
basically I need to apply a texture on a 2D object.
I looked up in ofBook, but I only found chapter about 3D objects.