Last active
May 2, 2019 22:13
-
-
Save Sumolari/39c5d9400f7325ac0c2a to your computer and use it in GitHub Desktop.
Set texture wrap mode in Cocos2d-x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cocos2d::Texture2D::TexParams texParams = { | |
GL_NEAREST, // TextureMinFilter | |
GL_NEAREST, // TextureMagFilter | |
GL_CLAMP_TO_EDGE, // TextureWrapMode Horizontal | |
GL_CLAMP_TO_EDGE // TextureWrapMode Vertical | |
}; | |
this->getTexture()->setTexParameters( texParams ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment