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

Function FetchTextureSetAnim

engine/gui/src/gui.cpp:4186–4195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4184 }
4185
4186 static inline FetchTextureSetAnimResult FetchTextureSetAnim(HScene scene, InternalNode* n, dmhash_t anim)
4187 {
4188 FetchTextureSetAnimCallback fetch_anim_callback = scene->m_FetchTextureSetAnimCallback;
4189 if(fetch_anim_callback == 0x0)
4190 {
4191 dmLogError("PlayNodeFlipbookAnim called with node in scene with no FetchTextureSetAnimCallback set.");
4192 return FETCH_ANIMATION_CALLBACK_ERROR;
4193 }
4194 return fetch_anim_callback(n->m_Node.m_Texture, anim, &n->m_Node.m_TextureSetAnimDesc);
4195 }
4196
4197 static inline void UpdateTextureSetAnimData(HScene scene, InternalNode* n)
4198 {

Callers 2

UpdateTextureSetAnimDataFunction · 0.85
PlayNodeFlipbookAnimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected