Files
palladium/source/ultra/layout.cpp

19 lines
496 B
C++
Raw Normal View History

2026-04-02 23:29:53 +02:00
#include <pd/lithium/formatters.hpp>
2026-03-26 21:02:10 +01:00
#include <pd/ultra/layout.hpp>
namespace PD {
namespace Ultra {
PD_API void Layout::SetFont(PD::Li::Font& font) { pList.SetFont(&font); }
PD_API void Layout::Render() {
pList.Clear();
for (auto& it : GetElements()) {
2026-04-02 23:29:53 +02:00
it->Update();
2026-03-26 21:02:10 +01:00
it->Draw(pList);
}
2026-04-02 23:29:53 +02:00
pList.DrawText(PD::fvec2(5, GetBotLeft().y - 40),
std::format("Lyt: [{}]", GetRenderspace()).c_str(),
0xffff00ff);
2026-03-26 21:02:10 +01:00
}
} // namespace Ultra
} // namespace PD