libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::AtlasPacker< InitialResolution, Padding >::InsertRectangleResult Struct Reference

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...
 

Detailed Description

template<std::size_t InitialResolution, std::size_t Padding>
struct donut::AtlasPacker< InitialResolution, Padding >::InsertRectangleResult

Result of the insertRectangle() function.

Member Data Documentation

◆ x

template<std::size_t InitialResolution, std::size_t Padding>
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.

◆ y

template<std::size_t InitialResolution, std::size_t Padding>
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.

◆ resized

template<std::size_t InitialResolution, std::size_t Padding>
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().


The documentation for this struct was generated from the following file: