GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::resource::AtlasPackerOptions Struct Reference

Configuration options for an AtlasPacker. More...

#include <GREM/resource/AtlasPacker.hpp>

Public Member Functions

constexpr bool operator== (const AtlasPackerOptions &other) const =default
 Compare these options to another set of options for equality.

Public Attributes

uint32_t initialResolution = 128
 Initial width of the square atlas region, in pixels.
uint32_t padding = 0
 Empty space to reserve between inserted rectangles, in pixels.
uint32_t alignment = 1
 Align padded rectangles to a multiple of this number of pixels.

Detailed Description

Configuration options for an AtlasPacker.

Member Function Documentation

◆ operator==()

bool grem::resource::AtlasPackerOptions::operator== ( const AtlasPackerOptions & other) const
nodiscardconstexprdefault

Compare these options to another set of options for equality.

Parameters
otherthe options to compare these to.
Returns
true if the options are equal, false otherwise.

Member Data Documentation

◆ initialResolution

uint32_t grem::resource::AtlasPackerOptions::initialResolution = 128

Initial width of the square atlas region, in pixels.

Warning
Must be positive.

◆ padding

uint32_t grem::resource::AtlasPackerOptions::padding = 0

Empty space to reserve between inserted rectangles, in pixels.

◆ alignment

uint32_t grem::resource::AtlasPackerOptions::alignment = 1

Align padded rectangles to a multiple of this number of pixels.

Warning
Must be a power of 2.

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