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

Function MyPingPongComplete2

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

Source from the content-addressed store, hash-verified

1254}
1255
1256void MyPingPongComplete2(dmGui::HScene scene,
1257 dmGui::HNode node,
1258 bool finished,
1259 void* userdata1,
1260 void* userdata2)
1261{
1262 ++PingPongCount;
1263 dmhash_t property = dmGui::GetPropertyHash(dmGui::PROPERTY_POSITION);
1264 dmGui::AnimateNodeHash(scene, node, property, Vector4(1,0,0,0), dmEasing::Curve(dmEasing::TYPE_LINEAR), dmGui::PLAYBACK_ONCE_FORWARD, 1.0f, 0, &MyPingPongComplete1, (void*)(uintptr_t) node, 0);
1265}
1266
1267TEST_F(dmGuiTest, PingPong)
1268{

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