/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Debugger/DebuggerFunctionTable.cpp
40 строк
923 B
C-Core
Load RmlDebugger dll dynamically (#1998)
22 июл 2026, 08:58
Не верифицирован
22 июл 2026, 08:58
bbeedd6
Код
Авторство
О чём код?
#include "../../Include/RmlUi/Debugger/Debugger.h" #include "../../Include/RmlUi/Debugger/DebuggerFunctionTable.h" namespace { bool InitWrapper(ContextPtr context) { return Rml::Debugger::Initialise(static_cast<Rml::Context*>(context)); } void ShutdownWrapper() { Rml::Debugger::Shutdown(); } bool SetContextWrapper(ContextPtr context) { return Rml::Debugger::SetContext(static_cast<Rml::Context*>(context)); } void SetVisibleWrapper(bool visible) { Rml::Debugger::SetVisible(visible); } bool IsVisibleWrapper() { return Rml::Debugger::IsVisible(); } } void Rml_Debugger_GetFunctions(Rml_Debugger_Functions* pFunctions) { pFunctions->m_InitFunc = InitWrapper; pFunctions->m_ShutdownFunc = ShutdownWrapper; pFunctions->m_SetContextFunc = SetContextWrapper; pFunctions->m_SetVisibleFunc = SetVisibleWrapper; pFunctions->m_IsVisibleFunc = IsVisibleWrapper; }