This commit is contained in:
Jorijn van der Graaf 2025-05-03 06:51:33 +02:00
commit 98b775e33e
21 changed files with 361 additions and 5541 deletions

View file

@ -33,7 +33,7 @@ export namespace Crafter {
float relativeHeight;
float anchorOffsetX;
float anchorOffsetY;
std::vector<Pixel> buffer;
std::vector<Pixel_RU8_GU8_BU8_AU8> buffer;
ComponentRef<UiElement> parent;
ComponentRefVectorOwning<UiElement> children;
UiElement(float anchorX, float anchorY, std::uint32_t bufferWidth, std::uint32_t bufferHeight, std::uint32_t absoluteWidth, std::uint32_t absoluteHeight, float anchorOffsetX = 0.5, float anchorOffsetY = 0.5, float z = 0, bool ignoreScaling = false);