cocos2dx抗锯齿

前端之家收集整理的这篇文章主要介绍了cocos2dx抗锯齿前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
CCSprite *imgMipMap = CCSprite::create("Images/logo-mipmap.pvr");
if( imgMipMap )
{
    imgMipMap->setPosition(ccp( s.width/2.0f-100,s.height/2.0f));
    addChild(imgMipMap);

  // support mipmap filtering
  ccTexParams texParams = { GL_LINEAR_MIPMAP_LINEAR,GL_LINEAR,GL_CLAMP_TO_EDGE,GL_CLAMP_TO_EDGE };
  imgMipMap->getTexture()->setTexParameters(&texParams);
}
原文链接:https://www.f2er.com/cocos2dx/342067.html

猜你在找的Cocos2d-x相关文章