add CGPointZero, CGSizeZero, CGRectZero

This commit is contained in:
Walzer 2010-07-16 09:51:35 +00:00
parent c61ceb8020
commit 669f59d721
1 changed files with 10 additions and 0 deletions

View File

@ -94,4 +94,14 @@ public:
#define CGSizeMake(width, height) CGSize((width), (height)); #define CGSizeMake(width, height) CGSize((width), (height));
#define CGRectMake(x, y, width, height) CGRect((x), (y), (width), (height)); #define CGRectMake(x, y, width, height) CGRect((x), (y), (width), (height));
const CGPoint CGPointZero = CGPointMake(0,0);
/* The "zero" size -- equivalent to CGSizeMake(0, 0). */
const CGSize CGSizeZero = CGSizeMake(0,0);
/* The "zero" rectangle -- equivalent to CGRectMake(0, 0, 0, 0). */
const CGRect CGRectZero = CGRectMake(0,0,0,0);
#endif // __COCOS_CGGEMETRY_H__ #endif // __COCOS_CGGEMETRY_H__