CCNode+CCBRelativePositioning

来源:互联网 发布:穿越火线 amd 优化 编辑:程序博客网 时间:2024/04/28 00:20

#ifndef __CCB_CCNODE_RELATIVEPOSITIONING_H__

#define __CCB_CCNODE_RELATIVEPOSITIONING_H__


#include "cocos2d.h"

#include "ExtensionMacros.h"


NS_CC_EXT_BEGIN


extern CCPoint getAbsolutePosition(const CCPoint &pt, int nType, const CCSize &containerSize, const char *pPropName);


extern void setRelativeScale(CCNode *pNode, float fScaleX, float fScaleY, int nType, const char* pPropName);


NS_CC_EXT_END


#endif // __CCB_CCNODE_RELATIVEPOSITIONING_H__


0 0
原创粉丝点击