26 cocos2d::AffineTransform m_externalTransform;
27 cocos2d::AffineTransform m_childTransform;
28 void invalidateTransformCache();
31 bool m_useSeparateBlendFunc;
33 GLint m_blendEquation;
36 cocos2d::QuadCommand m_quadCommand;
37 cocos2d::V3F_C4B_T2F_Quad m_quad;
40 void setExternaTransform(
const cocos2d::AffineTransform& transform);
41 void setChildTransform(
const cocos2d::AffineTransform& transform);
43 unsigned int objectIdRef;
45 virtual void draw(cocos2d::Renderer *renderer,
const cocos2d::Mat4 &transform,
bool transformUpdated)
override;
46 virtual void setUniformsForFragmentShader();
48 inline const cocos2d::AffineTransform &childTransform()
const
50 return m_childTransform;
52 const cocos2d::AffineTransform& getExternalTransform()
const
54 return m_externalTransform;
56 inline void setLocator(
bool locator)
58 m_isLocator = locator;
60 void setAtlasScale(
float scale);
62 virtual const cocos2d::Mat4& getNodeToParentTransform()
const override;
63 cocos2d::AffineTransform getNodeToParentAffineTransform()
const;
65 void setTexture(cocos2d::Texture2D *texture);
66 bool initWithTexture(cocos2d::Texture2D *pTexture,
const cocos2d::Rect& rect,
bool rotated);
68 virtual bool initWithSpriteFrame(cocos2d::SpriteFrame *spriteFrame);
72 #endif // __GAF_SPRITE__
Definition: GAFSprite.h:23
Definition: GAFSprite.h:6