cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
ccUtils.h File Reference

Functions

unsigned long ccNextPOT (unsigned long value)

Detailed Description

Misc free functions


Function Documentation

unsigned long ccNextPOT ( unsigned long  value)

returns the Next Power of Two value.

Examples:

  • If "value" is 15, it will return 16.
  • If "value" is 16, it will return 16.
  • If "value" is 17, it will return 32.
Since:
v0.99.5