Created
October 23, 2012 21:59
-
-
Save nathanclark/3941921 to your computer and use it in GitHub Desktop.
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
// If the 1st suffix is not found and if fallback is enabled then fallback suffixes are going to searched. If none is found, it will try with the name without suffix. | |
// On iPad HD : "-ipadhd", "-ipad", "-hd" | |
// On iPad : "-ipad", "-hd" | |
// On iPhone HD: "-hd" | |
CCFileUtils *sharedFileUtils = [CCFileUtils sharedFileUtils]; | |
[sharedFileUtils setEnableFallbackSuffixes:NO]; // Default: NO. No fallback suffixes are going to be used | |
[sharedFileUtils setiPhoneRetinaDisplaySuffix:@"-hd"]; // Default on iPhone RetinaDisplay is "-hd" | |
[sharedFileUtils setiPadSuffix:@"-ipad"]; // Default on iPad is "ipad" | |
[sharedFileUtils setiPadRetinaDisplaySuffix:@"-ipadhd"]; // Default on iPad RetinaDisplay is "-ipadhd" | |
// Assume that PVR images have premultiplied alpha | |
[CCTexture2D PVRImagesHavePremultipliedAlpha:YES]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment