/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Lottie/LottiePlugin.cpp
36 строк
898 B
C-Core
Updated RmlUi to 6.2 and added some improvements (#1813)
10 фев 2026, 01:19
Не верифицирован
10 фев 2026, 01:19
58e2d41
Код
Авторство
О чём код?
#include "../../Include/RmlUi/Core/Core.h" #include "../../Include/RmlUi/Core/ElementInstancer.h" #include "../../Include/RmlUi/Core/Factory.h" #include "../../Include/RmlUi/Core/Log.h" #include "../../Include/RmlUi/Core/Plugin.h" #include "../../Include/RmlUi/Lottie/ElementLottie.h" namespace Rml { namespace Lottie { class LottiePlugin : public Plugin { public: void OnInitialise() override { instancer = MakeUnique<ElementInstancerGeneric<ElementLottie>>(); Factory::RegisterElementInstancer("lottie", instancer.get()); Log::Message(Log::LT_INFO, "Lottie plugin initialised."); } void OnShutdown() override { delete this; } int GetEventClasses() override { return Plugin::EVT_BASIC; } private: UniquePtr<ElementInstancerGeneric<ElementLottie>> instancer; }; void Initialise() { RegisterPlugin(new LottiePlugin); } } // namespace Lottie } // namespace Rml