CCControlButton之类的控件怎么加入批次渲染?

CCControlButton之类的控件怎么加入批次渲染?
0

#1

CCSpriteBatchNode* batchNode = CCSpriteBatchNode::create(“2.png”, 100);
batchNode~~>setPosition;
this~~>addChild(batchNode);

CCSpriteFrameCache::sharedSpriteFrameCache()>addSpriteFramesWithFile;
CCScale9Sprite pBtnPicN = CCScale9Sprite::createWithSpriteFrameName;
CCScale9Sprite
pBtnPicD = CCScale9Sprite::createWithSpriteFrameName;
CCControlButton *pCtrlBtn = CCControlButton::create;
if
return NULL;
pCtrlBtn
>setZoomOnTouchDown(false);
pCtrlBtn~~>setAnchorPoint);
pCtrlBtn~~>setPreferredSize(CCSizeMake(91, 38));
pCtrlBtn~~>setPosition);
pCtrlBtn~~>setBackgroundSpriteForState(pBtnPicN, CCControlStateNormal);
pCtrlBtn~~>setBackgroundSpriteForState;
pCtrlBtn~~>setTag(9999);
pCtrlBtn~~>addTargetWithActionForControlEvents, CCControlEventTouchUpInside);
batchNode~~>addChild(pCtrlBtn);

添加的时候报错…
batchNode->addChild(pCtrlBtn);

提示:
CCSpriteBatchNode only supports CCSprites as children

CCControlButton之类的控件是不是不能批次渲染?