use updateQuadVertices function to update vertices since update transform is highly customized for BatchNode

This commit is contained in:
Nite Luo 2013-11-26 17:01:32 -08:00
parent f1ca3f9a8a
commit bf53cc116b
2 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ bool NewSprite::initWithTexture(Texture2D *texture, const Rect &rect, bool rotat
return result;
}
void NewSprite::updateQuadVerties()
void NewSprite::updateQuadVertices()
{
#ifdef CC_USE_PHYSICS
@ -131,7 +131,7 @@ void NewSprite::updateQuadVerties()
void NewSprite::draw(void)
{
updateQuadVerties();
updateQuadVertices();
//TODO implement z order
QuadCommand* renderCommand = new QuadCommand(0, _vertexZ, _texture->getName(), _shaderProgram, _blendFunc, &_quad, 1);

View File

@ -26,7 +26,7 @@ public:
virtual bool initWithTexture(Texture2D *texture, const Rect& rect, bool rotated);
virtual void updateQuadVerties();
virtual void updateQuadVertices();
virtual void draw(void) override;
protected: