Created
June 25, 2012 12:00
-
-
Save lucholaf/2988188 to your computer and use it in GitHub Desktop.
mip maps
This file contains 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
void generateMipMaps(CCTexture2D *texture) | |
{ | |
if ([[UIScreen mainScreen] scale] > 1) | |
{ | |
[texture generateMipmap]; | |
ccTexParams texParams = { GL_LINEAR_MIPMAP_LINEAR, GL_LINEAR, GL_CLAMP_TO_EDGE, GL_CLAMP_TO_EDGE }; | |
[texture setTexParameters:&texParams]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment