| 1847 | } |
| 1848 | |
| 1849 | static inline uint32_t FindAnimation(dmArray<Animation>& animations, float* value) |
| 1850 | { |
| 1851 | Animation* begin = animations.Begin(); |
| 1852 | Animation* end = animations.End(); |
| 1853 | Animation* anim = std::lower_bound(begin, end, value, AnimCompare); |
| 1854 | |
| 1855 | if (anim != end && anim->m_Value == value) |
| 1856 | { |
| 1857 | return (uint32_t)(anim - begin); |
| 1858 | } |
| 1859 | return 0xffffffff; |
| 1860 | } |
| 1861 | |
| 1862 | // This function assumes the size of the array has already grown 1 element |
| 1863 | static inline uint32_t InsertAnimation(dmArray<Animation>& animations, Animation* anim) |
no test coverage detected