MCPcopy Create free account
hub / github.com/axmolengine/axmol / addAnimation

Method addAnimation

core/3d/Animation3D.cpp:215–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void Animation3DCache::addAnimation(std::string_view key, Animation3D* animation)
216{
217 const auto& it = _animations.find(key);
218 if (it != _animations.end())
219 {
220 return; // already have this key
221 }
222 _animations.emplace(key, animation); //_animations[key] = animation;
223 animation->retain();
224}
225
226void Animation3DCache::removeAllAnimations()
227{

Callers 3

initWithFileMethod · 0.45
initMethod · 0.45
AnimationCacheTestMethod · 0.45

Calls 4

findMethod · 0.45
endMethod · 0.45
emplaceMethod · 0.45
retainMethod · 0.45

Tested by 2

initMethod · 0.36
AnimationCacheTestMethod · 0.36