抗锯齿

CCSprite *s=CCSprite::create( "xiao.png" );
//抗锯齿
s->getTexture()->setAntiAliasTexParameters();
//s->getTexture()->setAliasTexParameters();//不抗锯齿
s->setPosition(ccp(240,160));
addChild(s);
CCActionInterval *ac=CCScaleTo::actionWithDuration(2,5); 
s->runAction(ac);

你可能感兴趣的:(抗锯齿)