How to set the position of Polygon filled with texture rendering


#1

Hi,

I created a Polygon filled with texture. The polygon is rendered properly and if set its position to ccp(winsize.width/2,winsize.height/2) then it also shows it properly. But the problem is I want to set the positions of the polygon according to the vertices of the polygon.Can anyone help me, that how can I achieve this or which set of apis of CCNode should I use for set the position according to the vertices of the polygon.