render target improvements
This commit is contained in:
parent
1bc6293610
commit
789bb307d5
12 changed files with 368 additions and 428 deletions
|
|
@ -30,7 +30,7 @@ GridElement::GridElement(std::uint32_t columns, std::uint32_t rows, std::int32_t
|
|||
|
||||
}
|
||||
|
||||
void GridElement::UpdatePositionScaled(Rendertarget& window) {
|
||||
void GridElement::UpdatePositionScaled(RendertargetBase& window) {
|
||||
std::int32_t cellWidth = (paddingX * 2) - (spacingX * (columns - 1)) / columns;
|
||||
std::int32_t cellHeight = (paddingY * 2) - (spacingY * (rows - 1)) / rows;
|
||||
|
||||
|
|
@ -57,12 +57,12 @@ void GridElement::UpdatePositionScaled(Rendertarget& window) {
|
|||
}
|
||||
}
|
||||
|
||||
void GridElement::UpdatePosition(Rendertarget& window) {
|
||||
void GridElement::UpdatePosition(RendertargetBase& window) {
|
||||
ScaleElement(window.transform);
|
||||
UpdatePositionScaled(window);
|
||||
}
|
||||
|
||||
void GridElement::UpdatePosition(Rendertarget& window, Transform2D& parent) {
|
||||
void GridElement::UpdatePosition(RendertargetBase& window, Transform2D& parent) {
|
||||
ScaleElement(parent);
|
||||
UpdatePositionScaled(window);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue