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

Function GetNodeAnimationFrameCount

engine/gui/src/gui.cpp:1331–1339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1329 }
1330
1331 int32_t GetNodeAnimationFrameCount(HScene scene, HNode node)
1332 {
1333 TextureSetAnimDesc* anim_desc = GetNodeTextureSet(scene, node);
1334 if (anim_desc == 0)
1335 {
1336 return -1;
1337 }
1338 return anim_desc->m_State.m_End - anim_desc->m_State.m_Start;
1339 }
1340
1341
1342 static inline const float* GetNodeFlipbookAnimUVInternal(InternalNode* in)

Callers 1

SetNodeFunction · 0.50

Calls 1

GetNodeTextureSetFunction · 0.70

Tested by

no test coverage detected