Using polygons instead of quads on Cocos2d

Posted by rraallvv on Game Development See other posts from Game Development or by rraallvv
Published on 2012-06-08T06:56:57Z Indexed on 2012/06/08 10:47 UTC
Read the original article Hit count: 348

I've been looking under the hood of Cocos2d, and I think (please correct me if I'm wrong) that although working with quads is a key feature of the engine, it should't be dificult to make it work with arrays of vertices (aka polygons) instead of quads, being the quads a special case of an array of four vertices

by the way, does anyone have any code that makes cocos2d render a texture filled polygon inside a batch node?

the code posted here (http://www.cocos2d-iphone.org/forum/topic/8142/page/2#post-89393) does a nice job rendering a texture filled polygon but the class doesn't work with batch nodes

© Game Development or respective owner

Related posts about cocos2d-iphone

Related posts about polygon