Actually implement ultra-rendering

This commit is contained in:
2026-09-06 16:13:16 +02:00
parent 350cb752af
commit 3805e08b31
7 changed files with 23 additions and 10 deletions
+5
View File
@@ -1,3 +1,4 @@
#include <pd/lithium/formatters.hpp>
#include <pd/ultra/layout.hpp>
namespace PD {
@@ -7,8 +8,12 @@ PD_API void Layout::SetFont(PD::Li::Font& font) { pList.SetFont(&font); }
PD_API void Layout::Render() {
pList.Clear();
for (auto& it : GetElements()) {
it->Update();
it->Draw(pList);
}
pList.DrawText(PD::fvec2(5, GetBotLeft().y - 40),
std::format("Lyt: [{}]", GetRenderspace()).c_str(),
0xffff00ff);
}
} // namespace Ultra
} // namespace PD