MCPcopy Create free account
hub / github.com/axmolengine/axmol / update

Method update

tests/cpp-tests/Source/NodeTest/NodeTest.cpp:656–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656void CameraZoomTest::update(float dt)
657{
658 Node* sprite;
659 // Camera *cam;
660
661 _z += dt * 100;
662
663 sprite = getChildByTag(20);
664 // cam = sprite->getCamera();
665 // cam->setEye(0, 0, _z);
666
667 sprite = getChildByTag(40);
668 // cam = sprite->getCamera();
669 // cam->setEye(0, 0, -_z);
670}
671
672std::string CameraZoomTest::subtitle() const
673{

Callers

nothing calls this directly

Calls 12

getChildByTagFunction · 0.85
getInstanceFunction · 0.85
setWorldPositionMethod · 0.80
SizeFunction · 0.50
clampfFunction · 0.50
Vec2Function · 0.50
setGlobalZOrderMethod · 0.45
setPositionNormalizedMethod · 0.45
getVisibleSizeMethod · 0.45
getVisibleOriginMethod · 0.45
setPositionMethod · 0.45
setRotationMethod · 0.45

Tested by

no test coverage detected