123456789101112131415161718192021222324252627282930313233 |
- #ifndef TRANSFORM_H
- #define TRANSFORM_H
- #include "2d/CCNode.h"
- #include "rparticle/Utilities/Matrix3x3.h"
- NS_RRP_BEGIN
- class Transform
- {
- public:
- #if REDREAM_EDITOR
- static void SetContentLayerNode(cocos2d::Node* node);
- static Matrix4x4f GetContentToWorldMatrix();
- #endif
-
- static Matrix4x4f GetLocalToWorldMatrix (const cocos2d::Node* node);
- static const Matrix4x4f& GetLocalToWorldMatrix (const cocos2d::Node* node, Matrix4x4f& m);
- static Matrix4x4f GetLocalToWorldMatrixNoScale (const cocos2d::Node* node);
- static const Matrix4x4f& GetLocalToWorldMatrixNoScale (const cocos2d::Node* node, Matrix4x4f& m);
-
- static Matrix3x3f GetWorldScale (const cocos2d::Node* node);
- static Vector3f GetWorldScaleLossy (const cocos2d::Node* node);
- static Vector3f GetPosition (const cocos2d::Node* node);
-
- static Quaternionf GetRotation (const cocos2d::Node* node);
- static Matrix3x3f GetWorldRotationAndScale (const cocos2d::Node* node);
- };
- NS_RRP_END
- #endif
|