Im working in an app using cocos2D and want to know how to apply a texture to a line or a bezier line (ccDrawRect and ccDrawCubicBezier respectively). My draw code is so easy :
ccDrawColor4F(_r, _g, _b, _a);
glLineWidth(_g_iLineWidth);
ccDrawCubicBezier (...);
I want just to know how to apply a 2D texture to this line. Ive got my line texture in png format and want to apply it by repeating the texture along the curve.
Thank you very much in advance! Regards