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()); }