mirror of https://github.com/axmolengine/axmol.git
add Sprite::setScale(float, float)
This commit is contained in:
parent
40c663f963
commit
b7173cd60d
|
@ -840,6 +840,12 @@ void Sprite::setScale(float fScale)
|
|||
SET_DIRTY_RECURSIVELY();
|
||||
}
|
||||
|
||||
void Sprite::setScale(float scaleX, float scaleY)
|
||||
{
|
||||
Node::setScale(scaleX, scaleY);
|
||||
SET_DIRTY_RECURSIVELY();
|
||||
}
|
||||
|
||||
void Sprite::setVertexZ(float fVertexZ)
|
||||
{
|
||||
Node::setVertexZ(fVertexZ);
|
||||
|
|
|
@ -494,6 +494,7 @@ public:
|
|||
/// @name Functions inherited from Node
|
||||
virtual void setScaleX(float scaleX) override;
|
||||
virtual void setScaleY(float scaleY) override;
|
||||
virtual void setScale(float scaleX, float scaleY) override;
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
Loading…
Reference in New Issue