mirror of https://github.com/axmolengine/axmol.git
updated some files.
This commit is contained in:
parent
7d7baf81a2
commit
a950238d1e
|
@ -25,7 +25,8 @@ THE SOFTWARE.
|
|||
|
||||
#include "TransformUtils.h"
|
||||
#include "CCAffineTransform.h"
|
||||
namespace cocos2d {
|
||||
|
||||
namespace cocos2d {
|
||||
|
||||
void CGAffineToGL(const CCAffineTransform *t, GLfloat *m)
|
||||
{
|
||||
|
@ -45,4 +46,6 @@ void GLToCGAffine(const GLfloat *m, CCAffineTransform *t)
|
|||
t->a = m[0]; t->c = m[4]; t->tx = m[12];
|
||||
t->b = m[1]; t->d = m[5]; t->ty = m[13];
|
||||
}
|
||||
|
||||
}//namespace cocos2d
|
||||
|
||||
|
|
|
@ -25,7 +25,8 @@ THE SOFTWARE.
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "base64.h"
|
||||
namespace cocos2d {
|
||||
|
||||
namespace cocos2d {
|
||||
|
||||
unsigned char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
|
||||
|
@ -115,4 +116,5 @@ int base64Decode(unsigned char *in, unsigned int inLength, unsigned char **out)
|
|||
}
|
||||
return outLength;
|
||||
}
|
||||
|
||||
}//namespace cocos2d
|
||||
|
|
|
@ -29,7 +29,7 @@ THE SOFTWARE.
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
namespace cocos2d {
|
||||
namespace cocos2d {
|
||||
|
||||
/** @file
|
||||
base64 helper functions
|
||||
|
@ -44,6 +44,7 @@ namespace cocos2d {
|
|||
@since v0.8.1
|
||||
*/
|
||||
int base64Decode(unsigned char *in, unsigned int inLength, unsigned char **out);
|
||||
|
||||
}//namespace cocos2d
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -28,23 +28,23 @@ THE SOFTWARE.
|
|||
Misc free functions
|
||||
*/
|
||||
|
||||
namespace cocos2d
|
||||
{
|
||||
/*
|
||||
ccNextPOT function is licensed under the same license that is used in CCTexture2D.m.
|
||||
*/
|
||||
namespace cocos2d {
|
||||
/*
|
||||
ccNextPOT function is licensed under the same license that is used in CCTexture2D.m.
|
||||
*/
|
||||
|
||||
/** returns the Next Power of Two 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.
|
||||
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
|
||||
*/
|
||||
@since v0.99.5
|
||||
*/
|
||||
|
||||
unsigned long ccNextPOT( unsigned long value );
|
||||
|
||||
unsigned long ccNextPOT( unsigned long value );
|
||||
}
|
||||
|
||||
#endif // __SUPPORT_CC_UTILS_H__
|
||||
|
|
Loading…
Reference in New Issue