CCNode+REDRelativePositioning.h 498 B

1234567891011121314
  1. #ifndef __RED_CCNODE_RELATIVEPOSITIONING_H__
  2. #define __RED_CCNODE_RELATIVEPOSITIONING_H__
  3. #include "REDReader.h"
  4. namespace redream {
  5. extern CC_DLL cocos2d::Vec2 getAbsolutePosition(const cocos2d::Vec2 &pt, REDReader::PositionType type, const cocos2d::Size &containerSize, const std::string&propName);
  6. extern CC_DLL void setRelativeScale(cocos2d::Node *node, float scaleX, float scaleY, REDReader::ScaleType type, const std::string& propName);
  7. }
  8. #endif // __RED_CCNODE_RELATIVEPOSITIONING_H__