CCNode::drawFrameAndAnchorPoint()

void CCNode::drawFrameAndAnchorPoint()
{
	CCSize size = getContentSize();
	CCPoint pt = getAnchorPoint();
#if 1
	glLineWidth(1);

	ccDrawColor4B(127,255,255,255);
	CCPoint start = ccp(0,0);
	CCPoint end = ccp(size.width,size.height);

	ccDrawRect(start,end);
#endif
	ccPointSize(5);
	ccDrawColor4B(0,0,255,255);
	ccDrawPoint(ccp(size.width*pt.x,size.height*pt.y));
}



你可能感兴趣的:(CCNode::drawFrameAndAnchorPoint())