| 1194 | |
| 1195 | uint32_t MyAnimationCompleteCount = 0; |
| 1196 | void MyAnimationComplete(dmGui::HScene scene, |
| 1197 | dmGui::HNode node, |
| 1198 | bool finished, |
| 1199 | void* userdata1, |
| 1200 | void* userdata2) |
| 1201 | { |
| 1202 | MyAnimationCompleteCount++; |
| 1203 | dmhash_t property = dmGui::GetPropertyHash(dmGui::PROPERTY_POSITION); |
| 1204 | dmGui::AnimateNodeHash(scene, node, property, Vector4(2,0,0,0), dmEasing::Curve(dmEasing::TYPE_LINEAR), dmGui::PLAYBACK_ONCE_FORWARD, 1.0f, 0, 0, 0, 0); |
| 1205 | // Check that we reached target position |
| 1206 | *(Point3*)userdata2 = dmGui::GetNodePosition(scene, node); |
| 1207 | } |
| 1208 | |
| 1209 | TEST_F(dmGuiTest, AnimateComplete) |
| 1210 | { |
nothing calls this directly
no test coverage detected