/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Debugger/ElementContextHook.cpp
31 строка
693 B
C-Core
Updated RmlUi to 6.2 and added some improvements (#1813)
10 фев 2026, 01:19
Не верифицирован
10 фев 2026, 01:19
58e2d41
Код
Авторство
О чём код?
#include "ElementContextHook.h" #include "DebuggerPlugin.h" namespace Rml { namespace Debugger { ElementContextHook::ElementContextHook(const String& tag) : ElementDebugDocument(tag) { debugger = nullptr; } ElementContextHook::~ElementContextHook() {} void ElementContextHook::Initialise(DebuggerPlugin* _debugger) { SetId("rmlui-debug-hook"); SetProperty(PropertyId::ZIndex, Property(999'999, Unit::NUMBER)); debugger = _debugger; } void ElementContextHook::OnRender() { // Make sure we're in the front of the render queue for this context (at least next frame). PullToFront(); // Render the debugging elements. debugger->Render(); } } // namespace Debugger } // namespace Rml