X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fbinding%2Fc%2Flottieanimation_capi.cpp;h=2d7efc3337215c30ad5d444dbb4aa04e54d5c772;hb=01733cd6cda8a1195ab916d2e9a0c57affcccb41;hp=a619389dbe25a61418b5c27e46c83c8bb6140414;hpb=b0ff909587d21d1b5326da12faf5b5fa7b83ad21;p=platform%2Fcore%2Fuifw%2Flottie-player.git diff --git a/src/binding/c/lottieanimation_capi.cpp b/src/binding/c/lottieanimation_capi.cpp index a619389..2d7efc3 100644 --- a/src/binding/c/lottieanimation_capi.cpp +++ b/src/binding/c/lottieanimation_capi.cpp @@ -99,6 +99,16 @@ LOT_EXPORT const LOTNode* lottie_animation_get_node(const Lottie_Animation_S *an return animation->mAnimation->renderList(animation->mFrameNo, animation->mWidth, animation->mHeight)[idx]; } +LOT_EXPORT const LOTLayerNode * lottie_animation_render_tree(Lottie_Animation_S *animation, size_t frameNo, size_t w, size_t h) +{ + if (!animation) return nullptr; + + animation->mFrameNo = frameNo; + animation->mWidth = w; + animation->mHeight = h; + return animation->mAnimation->renderTree(frameNo, w, h); +} + LOT_EXPORT void lottie_animation_render_async(Lottie_Animation_S *animation, size_t frame_number,