/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Core/BoxShadowCache.h
35 строк
1 KB
C-Core
Updated RmlUi to 6.2 and added some improvements (#1813)
10 фев 2026, 01:19
Не верифицирован
10 фев 2026, 01:19
58e2d41
Код
Авторство
О чём код?
#pragma once #include "../../Include/RmlUi/Core/CallbackTexture.h" #include "../../Include/RmlUi/Core/Geometry.h" #include "../../Include/RmlUi/Core/Types.h" namespace Rml { namespace Style { class ComputedValues; } struct BoxShadowGeometryInfo; struct BoxShadowRenderable : NonCopyMoveable { BoxShadowRenderable(const BoxShadowGeometryInfo& geometry_info); ~BoxShadowRenderable(); CallbackTexture texture; Geometry geometry; Geometry background_border_geometry; const BoxShadowGeometryInfo& cache_key; }; class BoxShadowCache { public: static void Initialize(); static void Shutdown(); /// Returns a handle to BoxShadow renderable matching the element's style - creates new data if none is found. /// @param[in] element Element for which to calculate and cache the box shadow. /// @param[in] computed The computed style values of the element. /// @return A handle to the BoxShadow data, with automatic reference counting. static SharedPtr<BoxShadowRenderable> GetHandle(Element* element, const Style::ComputedValues& computed); }; } // namespace Rml