MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / setScaleX

Method setScaleX

Source/GameObject.cpp:300–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298 _particle->setRotation(rotation);
299}
300void GameObject::setScaleX(float scalex)
301{
302 Sprite::setScaleX(scalex);
303 _parentMatrix = getNodeToParentTransform();
304 if (_hasGlow)
305 _glowSprite->setScaleX(scalex);
306 if (_hasParticle)
307 _particle->setRotation(scalex * (isFlippedX() ? -1.f : 1.f));
308}
309void GameObject::setScaleY(float scaley)
310{
311 Sprite::setScaleY(scaley);

Callers 15

drawPropertiesFunction · 0.80
loadLevelMethod · 0.80
applyEnterEffectMethod · 0.80
initMethod · 0.80
switchStateMethod · 0.80
initMethod · 0.80
from_jsonMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80

Calls 1

setRotationMethod · 0.80

Tested by

no test coverage detected