libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Result of the insertRectangle() function. More...
#include <donut/AtlasPacker.hpp>
Public Attributes | |
std::size_t | x |
The horizontal offset, in pixels, from the left edge of the atlas where the new rectangle was inserted. More... | |
std::size_t | y |
The vertical offset, in pixels, from the bottom edge of the atlas where the new rectangle was inserted. More... | |
bool | resized |
Whether the atlas needed to grow in order to accommodate the new rectangle or not. More... | |
Result of the insertRectangle() function.
std::size_t donut::AtlasPacker< InitialResolution, Padding >::InsertRectangleResult::x |
The horizontal offset, in pixels, from the left edge of the atlas where the new rectangle was inserted.
std::size_t donut::AtlasPacker< InitialResolution, Padding >::InsertRectangleResult::y |
The vertical offset, in pixels, from the bottom edge of the atlas where the new rectangle was inserted.
bool donut::AtlasPacker< InitialResolution, Padding >::InsertRectangleResult::resized |
Whether the atlas needed to grow in order to accommodate the new rectangle or not.
If true, the new required resolution can be queried by calling getResolution().