Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过最近邻法缩放 CCSprite。但是只是设置 sprite.scale 会导致缩放模糊(我认为它是双线性的)
那么如何改变缩放的方法呢?那可能吗?
试试这个:
[sprite.texture setAliasTexParameters];
请记住,这将影响所有使用纹理的精灵。