diff options
| author | Starla Insigna <starla4444@gmail.com> | 2011-07-30 11:19:14 -0400 |
|---|---|---|
| committer | Starla Insigna <starla4444@gmail.com> | 2011-07-30 11:19:14 -0400 |
| commit | 9cd57b731ab1c666d4a1cb725538fdc137763d12 (patch) | |
| tree | 5bac45ae5157a1cb10c6e45500cbf72789917980 /libs/cocos2d/Support/ccUtils.h | |
| download | cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.gz cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.bz2 cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.zip | |
Initial commit (version 0.2.1)
Diffstat (limited to 'libs/cocos2d/Support/ccUtils.h')
| -rwxr-xr-x | libs/cocos2d/Support/ccUtils.h | 29 |
1 files changed, 29 insertions, 0 deletions
| diff --git a/libs/cocos2d/Support/ccUtils.h b/libs/cocos2d/Support/ccUtils.h new file mode 100755 index 0000000..783fc54 --- /dev/null +++ b/libs/cocos2d/Support/ccUtils.h | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | /* | ||
| 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org | ||
| 3 | * | ||
| 4 | */ | ||
| 5 | |||
| 6 | #ifndef __CC_UTILS_H | ||
| 7 | #define __CC_UTILS_H | ||
| 8 | |||
| 9 | /** @file ccUtils.h | ||
| 10 | Misc free functions | ||
| 11 | */ | ||
| 12 | |||
| 13 | /* | ||
| 14 | ccNextPOT function is licensed under the same license that is used in CCTexture2D.m. | ||
| 15 | */ | ||
| 16 | |||
| 17 | /** returns the Next Power of Two value. | ||
| 18 | |||
| 19 | Examples: | ||
| 20 | - If "value" is 15, it will return 16. | ||
| 21 | - If "value" is 16, it will return 16. | ||
| 22 | - If "value" is 17, it will return 32. | ||
| 23 | |||
| 24 | @since v0.99.5 | ||
| 25 | */ | ||
| 26 | |||
| 27 | unsigned long ccNextPOT( unsigned long value ); | ||
| 28 | |||
| 29 | #endif // ! __CC_UTILS_H | ||
