Transform.h 1004 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef TRANSFORM_H
  2. #define TRANSFORM_H
  3. #include "2d/CCNode.h"
  4. #include "rparticle/Utilities/Matrix3x3.h"
  5. NS_RRP_BEGIN
  6. class Transform
  7. {
  8. public:
  9. #if REDREAM_EDITOR
  10. static void SetContentLayerNode(cocos2d::Node* node);
  11. static Matrix4x4f GetContentToWorldMatrix();
  12. #endif
  13. static Matrix4x4f GetLocalToWorldMatrix (const cocos2d::Node* node);
  14. static const Matrix4x4f& GetLocalToWorldMatrix (const cocos2d::Node* node, Matrix4x4f& m);
  15. static Matrix4x4f GetLocalToWorldMatrixNoScale (const cocos2d::Node* node);
  16. static const Matrix4x4f& GetLocalToWorldMatrixNoScale (const cocos2d::Node* node, Matrix4x4f& m);
  17. static Matrix3x3f GetWorldScale (const cocos2d::Node* node);
  18. static Vector3f GetWorldScaleLossy (const cocos2d::Node* node);
  19. static Vector3f GetPosition (const cocos2d::Node* node);
  20. static Quaternionf GetRotation (const cocos2d::Node* node);
  21. static Matrix3x3f GetWorldRotationAndScale (const cocos2d::Node* node);
  22. };
  23. NS_RRP_END
  24. #endif