auto pinfo = AutoPolygon::generatePolygon("dog.png",Rect::ZERO,1); //第三个参数用于控制弯角幅度的大小 auto ret = Sprite::create(pinfo); ret->setPosition(pos); addChild(ret); ret->debugDraw(true);
auto pinfo = AutoPolygon::generatePolygon("dog.png",Rect::ZERO,1); //第三个参数用于控制弯角幅度的大小 auto ret = Sprite::create(pinfo); ret->setPosition(pos); addChild(ret); ret->debugDraw(true);