MCPcopy Create free account
hub / github.com/defold/defold / MyPingPongComplete1

Function MyPingPongComplete1

engine/gui/src/test/test_gui.cpp:1245–1254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1243
1244uint32_t PingPongCount = 0;
1245void MyPingPongComplete1(dmGui::HScene scene,
1246 dmGui::HNode node,
1247 bool finished,
1248 void* userdata1,
1249 void* userdata2)
1250{
1251 ++PingPongCount;
1252 dmhash_t property = dmGui::GetPropertyHash(dmGui::PROPERTY_POSITION);
1253 dmGui::AnimateNodeHash(scene, node, property, Vector4(0,0,0,0), dmEasing::Curve(dmEasing::TYPE_LINEAR), dmGui::PLAYBACK_ONCE_FORWARD, 1.0f, 0, &MyPingPongComplete2, (void*)(uintptr_t) node, 0);
1254}
1255
1256void MyPingPongComplete2(dmGui::HScene scene,
1257 dmGui::HNode node,

Callers

nothing calls this directly

Calls 4

CurveClass · 0.85
GetPropertyHashFunction · 0.50
AnimateNodeHashFunction · 0.50
Vector4Class · 0.50

Tested by

no test coverage detected