cleaned up renderer
This commit is contained in:
parent
afe23851f0
commit
d661c88ee2
58 changed files with 3030 additions and 4722 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
Crafter®.Graphics
|
||||
Copyright (C) 2025 Catcrafts®
|
||||
Copyright (C) 2026 Catcrafts®
|
||||
catcrafts.net
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
|
|
@ -19,11 +19,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
export module Crafter.Graphics:GridElement;
|
||||
import std;
|
||||
import :Transform;
|
||||
import :Transform2D;
|
||||
import :Types;
|
||||
|
||||
export namespace Crafter {
|
||||
class GridElement : public Transform {
|
||||
class GridElement : public Transform2D {
|
||||
public:
|
||||
std::uint32_t columns;
|
||||
std::uint32_t rows;
|
||||
|
|
@ -31,9 +31,9 @@ export namespace Crafter {
|
|||
std::int32_t spacingY;
|
||||
std::int32_t paddingX;
|
||||
std::int32_t paddingY;
|
||||
GridElement(std::uint32_t columns, std::uint32_t rows, std::int32_t spacingX, std::int32_t spacingY, std::int32_t paddingX, std::int32_t paddingY, Anchor anchor);
|
||||
void UpdatePositionScaled(Window& window);
|
||||
void UpdatePosition(Window& window) override;
|
||||
void UpdatePosition(Window& window, Transform& parent) override;
|
||||
GridElement(std::uint32_t columns, std::uint32_t rows, std::int32_t spacingX, std::int32_t spacingY, std::int32_t paddingX, std::int32_t paddingY, Anchor2D anchor);
|
||||
void UpdatePositionScaled(Rendertarget& window);
|
||||
void UpdatePosition(Rendertarget& window) override;
|
||||
void UpdatePosition(Rendertarget& window, Transform2D& parent) override;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue