123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #ifndef __CCATTACHNODE_H__
- #define __CCATTACHNODE_H__
- #include "math/CCMath.h"
- #include "2d/CCNode.h"
- NS_CC_BEGIN
- class Bone3D;
- class CC_DLL AttachNode : public Node
- {
- public:
-
- static AttachNode* create(Bone3D* attachBone);
-
-
- virtual Mat4 getWorldToNodeTransform() const override;
- virtual Mat4 getNodeToWorldTransform() const override;
- virtual const Mat4& getNodeToParentTransform() const override;
- virtual void visit(Renderer *renderer, const Mat4& parentTransform, uint32_t parentFlags) override;
- CC_CONSTRUCTOR_ACCESS:
-
- AttachNode();
- virtual ~AttachNode();
-
- protected:
- Bone3D* _attachBone;
- mutable Mat4 _transformToParent;
- };
- NS_CC_END
- #endif
|