draw();
void GammingScene::draw() { /只有在draw函数中才能画出来 CCSize winSize = CCDirector::sharedDirector()->getWinSize(); ccDrawColor4B(255,255,255); glLineWidth(5.0f); ccDrawLine(ccp(HOOK_X,HOOK_Y),hook->getPosition()); }
原文链接:https://www.f2er.com/cocos2dx/341016.html