ccDrawPoly - filled

Hi,

I’m porting our game from cocos2dx 1.0.1 to cocos2d-x 2.2.0. ccDrawPoly used to fill the polygon (GL_TRIANGLE_FAN). Now it seems to have changed to only outlines (GL_LINE_STRIP). Why? And is there a way using the standard API to draw a filled polygon?

Thanks!

ccDrawSolidPoly

Man, how could I be that blind? I scrolled through all calls several time and didn’t see it. Guess I expected a different naming…
Thanks!