use CC_CONSTRUCTOR_ACCESS in ParallaxNode

This commit is contained in:
joshuastray 2014-07-16 11:40:09 +08:00
parent da9563f623
commit 190460018f
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public:
virtual void removeAllChildrenWithCleanup(bool cleanup) override; virtual void removeAllChildrenWithCleanup(bool cleanup) override;
virtual void visit(Renderer *renderer, const Mat4 &parentTransform, uint32_t parentFlags) override; virtual void visit(Renderer *renderer, const Mat4 &parentTransform, uint32_t parentFlags) override;
protected: CC_CONSTRUCTOR_ACCESS:
/** Adds a child to the container with a z-order, a parallax ratio and a position offset /** Adds a child to the container with a z-order, a parallax ratio and a position offset
It returns self, so you can chain several addChilds. It returns self, so you can chain several addChilds.
@since v0.8 @since v0.8
@ -83,6 +83,7 @@ protected:
*/ */
virtual ~ParallaxNode(); virtual ~ParallaxNode();
protected:
Vec2 absolutePosition(); Vec2 absolutePosition();
Vec2 _lastPosition; Vec2 _lastPosition;