I’m trying to draw a dotted/dashed line with ccDrawPoly between 2 or more points, but all I get is a difference in color of the line. Does anyone know if there is something wrong with the code below?
I was reading at http://www.cocos2d-iphone.org/forum/topic/4853/page/2 where someone managed to draw dotted lines. But according to your link one should use textures, so I’ll take another look in the CCRibbon class which uses a texture and glDrawArrays. Mayby I can use glDrawArrays to draw polygons without textures.
I’m quite new to OpgenGl so I was wondering why some OpenGl code is recognized by Cocos2d and some is not if I may ask