Actually implement ultra-rendering
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user