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

Function RemoveAnimation

engine/gui/src/gui.cpp:1840–1847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1838 }
1839
1840 static inline void RemoveAnimation(dmArray<Animation>& animations, uint32_t i)
1841 {
1842 Animation* current = &animations[i];
1843 Animation* end = animations.End();
1844 // Move all one step to the "left"
1845 memmove(current, current+1, sizeof(Animation) * (end-current-1));
1846 animations.SetSize(animations.Size()-1);
1847 }
1848
1849 static inline uint32_t FindAnimation(dmArray<Animation>& animations, float* value)
1850 {

Callers 2

UpdateAnimationsFunction · 0.85
DeleteNodeFunction · 0.85

Calls 3

EndMethod · 0.45
SetSizeMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected