From 669f59d72117e7f74a1a88355bace810e76d84b7 Mon Sep 17 00:00:00 2001 From: Walzer Date: Fri, 16 Jul 2010 09:51:35 +0000 Subject: [PATCH] add CGPointZero, CGSizeZero, CGRectZero --- cocos2dx/cocoa/CGGeometry.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cocos2dx/cocoa/CGGeometry.h b/cocos2dx/cocoa/CGGeometry.h index 6b08ed7da4..01dd938759 100644 --- a/cocos2dx/cocoa/CGGeometry.h +++ b/cocos2dx/cocoa/CGGeometry.h @@ -94,4 +94,14 @@ public: #define CGSizeMake(width, height) CGSize((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__