Actually implement ultra-rendering

This commit is contained in:
2026-04-02 23:29:53 +02:00
parent b5321ca1a1
commit 1cf3b6f8e6
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