From 0450048a41c95ac0771a3311d2eadd5a7763b34d Mon Sep 17 00:00:00 2001 From: walzer Date: Fri, 25 Mar 2011 09:48:43 +0800 Subject: [PATCH] [all] typo fixed, CCSprite::isTextureRectTotated -> CCSprite::isTextureRectRotated --- cocos2dx/include/CCSprite.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/cocos2dx/include/CCSprite.h b/cocos2dx/include/CCSprite.h index f38590d10c..dcf8ed2d15 100644 --- a/cocos2dx/include/CCSprite.h +++ b/cocos2dx/include/CCSprite.h @@ -109,7 +109,7 @@ public: inline ccV3F_C4B_T2F_Quad getQuad(void) { return m_sQuad; } /** returns whether or not the texture rectangle is rotated */ - inline bool isTextureRectTotated(void) { return m_bRectRotated; } + inline bool isTextureRectRotated(void) { return m_bRectRotated; } /** Set the index used on the TextureAtlas. */ inline unsigned int getAtlasIndex(void) { return m_uAtlasIndex; } @@ -222,20 +222,20 @@ public: virtual void setIsVisible(bool bVisible); void setFlipX(bool bFlipX); void setFlipY(bool bFlipY); - /** whether or not the sprite is flipped horizontally. - It only flips the texture of the sprite, and not the texture of the sprite's children. - Also, flipping the texture doesn't alter the anchorPoint. - If you want to flip the anchorPoint too, and/or to flip the children too use: - - sprite->setScaleX(sprite->getScaleX() * -1); + /** whether or not the sprite is flipped horizontally. + It only flips the texture of the sprite, and not the texture of the sprite's children. + Also, flipping the texture doesn't alter the anchorPoint. + If you want to flip the anchorPoint too, and/or to flip the children too use: + + sprite->setScaleX(sprite->getScaleX() * -1); */ bool isFlipX(void); - /** whether or not the sprite is flipped vertically. - It only flips the texture of the sprite, and not the texture of the sprite's children. - Also, flipping the texture doesn't alter the anchorPoint. - If you want to flip the anchorPoint too, and/or to flip the children too use: - - sprite->setScaleY(sprite->getScaleY() * -1); + /** whether or not the sprite is flipped vertically. + It only flips the texture of the sprite, and not the texture of the sprite's children. + Also, flipping the texture doesn't alter the anchorPoint. + If you want to flip the anchorPoint too, and/or to flip the children too use: + + sprite->setScaleY(sprite->getScaleY() * -1); */ bool isFlipY(void);