Porytiles
Loading...
Searching...
No Matches
porytiles::PackingOutput Struct Reference

The final palette assignments after a successful packing operation. More...

#include <packing_strategy.hpp>

Collaboration diagram for porytiles::PackingOutput:
[legend]

Public Attributes

std::vector< PackedPalettepals_
 The packed palettes with their colors and assigned tiles.
 
std::map< PackableTile::Id, std::size_t > tile_to_pal_
 Maps tile IDs to their assigned hardware palette indices.
 

Detailed Description

The final palette assignments after a successful packing operation.

Definition at line 84 of file packing_strategy.hpp.

Member Data Documentation

◆ pals_

std::vector<PackedPalette> porytiles::PackingOutput::pals_

The packed palettes with their colors and assigned tiles.

Each PackedPalette contains the accumulated colors and the map of tile IDs assigned to that palette.

Definition at line 91 of file packing_strategy.hpp.

◆ tile_to_pal_

std::map<PackableTile::Id, std::size_t> porytiles::PackingOutput::tile_to_pal_

Maps tile IDs to their assigned hardware palette indices.

This provides a quick lookup for finding which palette a specific tile was assigned to. The mapped value is the hardware palette index (i.e., PackedPalette::hardware_index()), NOT the index into the palettes_ vector.

Definition at line 100 of file packing_strategy.hpp.


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