/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Core/TemplateCache.h
36 строк
727 B
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/Types.h" namespace Rml { class Template; /** Manages requests for loading templates, caching as it goes. */ class TemplateCache { public: /// Initialisation and Shutdown static bool Initialise(); static void Shutdown(); /// Load the named template from the given path, if its already loaded get the cached copy static Template* LoadTemplate(const String& path); /// Get the template by id static Template* GetTemplate(const String& id); /// Clear the template cache. static void Clear(); private: TemplateCache(); ~TemplateCache(); using Templates = UnorderedMap<String, Template*>; Templates templates; Templates template_ids; }; } // namespace Rml