- Added renderspace - Revision System (to not always update pRenderspace - added some test scene
12 lines
353 B
C++
12 lines
353 B
C++
#include <pd/ultra/elems/rect.hpp>
|
|
|
|
namespace PD {
|
|
namespace Ultra {
|
|
PD_API void Rect::Draw(PD::Li::Drawlist& l) {
|
|
l.PathRect(pRenderspace.TopLeft(), pRenderspace.BotRight(), pRounding);
|
|
l.PathFill(pColor);
|
|
l.DrawText(pRenderspace.BotRight(), std::to_string(pCanvasRev).c_str(),
|
|
0xff0000ff);
|
|
}
|
|
} // namespace Ultra
|
|
} // namespace PD
|