mirror of https://github.com/axmolengine/axmol.git
use updateQuadVertices function to update vertices since update transform is highly customized for BatchNode
This commit is contained in:
parent
f1ca3f9a8a
commit
bf53cc116b
|
@ -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);
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue