mirror of https://github.com/axmolengine/axmol.git
fixed #920: export functions in CCAffineTransform
This commit is contained in:
parent
670d21df00
commit
faa8b59b6d
|
@ -26,6 +26,8 @@ THE SOFTWARE.
|
|||
#define __COCOA_CGAFFINETRANSFORM_H__
|
||||
|
||||
#include "CCGeometry.h"
|
||||
#include "CCPlatformMacros.h"
|
||||
|
||||
namespace cocos2d {
|
||||
|
||||
struct CCAffineTransform {
|
||||
|
@ -33,24 +35,24 @@ struct CCAffineTransform {
|
|||
CGFloat tx, ty;
|
||||
};
|
||||
|
||||
CCAffineTransform __CCAffineTransformMake(CGFloat a, CGFloat b, CGFloat c, CGFloat d, CGFloat tx, CGFloat ty);
|
||||
CC_DLL CCAffineTransform __CCAffineTransformMake(CGFloat a, CGFloat b, CGFloat c, CGFloat d, CGFloat tx, CGFloat ty);
|
||||
#define CCAffineTransformMake __CCAffineTransformMake
|
||||
|
||||
CCPoint __CCPointApplyAffineTransform(const CCPoint& point, const CCAffineTransform& t);
|
||||
CC_DLL CCPoint __CCPointApplyAffineTransform(const CCPoint& point, const CCAffineTransform& t);
|
||||
#define CCPointApplyAffineTransform __CCPointApplyAffineTransform
|
||||
|
||||
CCSize __CCSizeApplyAffineTransform(const CCSize& size, const CCAffineTransform& t);
|
||||
CC_DLL CCSize __CCSizeApplyAffineTransform(const CCSize& size, const CCAffineTransform& t);
|
||||
#define CCSizeApplyAffineTransform __CCSizeApplyAffineTransform
|
||||
|
||||
CCAffineTransform CCAffineTransformMakeIdentity();
|
||||
CCRect CCRectApplyAffineTransform(const CCRect& rect, const CCAffineTransform& anAffineTransform);
|
||||
CC_DLL CCAffineTransform CCAffineTransformMakeIdentity();
|
||||
CC_DLL CCRect CCRectApplyAffineTransform(const CCRect& rect, const CCAffineTransform& anAffineTransform);
|
||||
|
||||
CCAffineTransform CCAffineTransformTranslate(const CCAffineTransform& t, float tx, float ty);
|
||||
CCAffineTransform CCAffineTransformRotate(const CCAffineTransform& aTransform, CGFloat anAngle);
|
||||
CCAffineTransform CCAffineTransformScale(const CCAffineTransform& t, CGFloat sx, CGFloat sy);
|
||||
CCAffineTransform CCAffineTransformConcat(const CCAffineTransform& t1, const CCAffineTransform& t2);
|
||||
bool CCAffineTransformEqualToTransform(const CCAffineTransform& t1, const CCAffineTransform& t2);
|
||||
CCAffineTransform CCAffineTransformInvert(const CCAffineTransform& t);
|
||||
CC_DLL CCAffineTransform CCAffineTransformTranslate(const CCAffineTransform& t, float tx, float ty);
|
||||
CC_DLL CCAffineTransform CCAffineTransformRotate(const CCAffineTransform& aTransform, CGFloat anAngle);
|
||||
CC_DLL CCAffineTransform CCAffineTransformScale(const CCAffineTransform& t, CGFloat sx, CGFloat sy);
|
||||
CC_DLL CCAffineTransform CCAffineTransformConcat(const CCAffineTransform& t1, const CCAffineTransform& t2);
|
||||
CC_DLL bool CCAffineTransformEqualToTransform(const CCAffineTransform& t1, const CCAffineTransform& t2);
|
||||
CC_DLL CCAffineTransform CCAffineTransformInvert(const CCAffineTransform& t);
|
||||
|
||||
extern const CCAffineTransform CCAffineTransformIdentity;
|
||||
}//namespace cocos2d
|
||||
|
|
Loading…
Reference in New Issue