/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <time.h>
#include <cmath>
#include <cstring> // for strlen()
-#include <rive/node.hpp>
#include <rive/file.hpp>
-#include <rive/tvg_renderer.hpp>
-#include <rive/shapes/paint/fill.hpp>
-#include <rive/shapes/paint/stroke.hpp>
+#include <rive/node.hpp>
#include <rive/shapes/paint/color.hpp>
+#include <rive/shapes/paint/fill.hpp>
#include <rive/shapes/paint/solid_color.hpp>
+#include <rive/shapes/paint/stroke.hpp>
+#include <rive/tvg_renderer.hpp>
// INTERNAL INCLUDES
#include <dali-extension/internal/rive-animation-view/animation-renderer/rive-animation-renderer-manager.h>
for(unsigned int i = 0; i < mArtboard->animationCount(); i++)
{
- auto animation = mArtboard->animation(i);
- const std::string& name = animation->name();
+ auto animation = mArtboard->animation(i);
+ const std::string& name = animation->name();
mAnimations.emplace_back(Animation(new rive::LinearAnimationInstance(animation), name, false));
}
{
mSwCanvas = tvg::SwCanvas::gen();
mSwCanvas->mempool(tvg::SwCanvas::MempoolPolicy::Individual);
-
}
mSwCanvas->clear();
mSwCanvas->target((uint32_t*)buffer, info.planes[0].stride / 4, info.width, info.height, tvg::SwCanvas::ARGB8888);
RiveAnimationRendererManager::Get().TriggerEvent(*this);
- DALI_LOG_INFO(gRiveAnimationLogFilter, Debug::Verbose, "RiveAnimationRenderer::Render: Resource ready [current = %d] [%p]\n", frameNumber, this);
+ DALI_LOG_INFO(gRiveAnimationLogFilter, Debug::Verbose, "RiveAnimationRenderer::Render: Resource ready [%p]\n", this);
}
return true;
void RiveAnimationRenderer::SetNodeRotation(const std::string& nodeName, Degree degree)
{
Dali::Mutex::ScopedLock lock(mMutex);
- auto node = mArtboard->find(nodeName.c_str());
+ auto node = mArtboard->find(nodeName.c_str());
if(!node)
{
return;