Porytiles
Loading...
Searching...
No Matches
porytiles::PackingParams::PrimaryTileRef Struct Reference

A reconstructed RGBA tile from a compiled primary tileset, tagged with its first metatile slot location. More...

#include <palette_packer.hpp>

Collaboration diagram for porytiles::PackingParams::PrimaryTileRef:
[legend]

Public Attributes

PixelTile< Rgba32tile
 
std::size_t pal_index
 
std::size_t metatile_index
 
metatile::Layer layer
 
metatile::Subtile subtile
 

Detailed Description

A reconstructed RGBA tile from a compiled primary tileset, tagged with its first metatile slot location.

Each PrimaryTileRef bundles a decoded pixel tile, its hardware palette assignment, and the coordinates of the first metatile slot (in the paired primary's triple-layerized metatile entries) where this (tile_index, pal_index) pair was observed. The coordinates are used purely for diagnostic display; they let sharing remarks reference primary tiles in the same "metatile 0x3(3)|middle|northwest(0)" form used for secondary tiles.

Definition at line 78 of file palette_packer.hpp.

Member Data Documentation

◆ layer

metatile::Layer porytiles::PackingParams::PrimaryTileRef::layer

Definition at line 82 of file palette_packer.hpp.

◆ metatile_index

std::size_t porytiles::PackingParams::PrimaryTileRef::metatile_index

Definition at line 81 of file palette_packer.hpp.

◆ pal_index

std::size_t porytiles::PackingParams::PrimaryTileRef::pal_index

Definition at line 80 of file palette_packer.hpp.

◆ subtile

metatile::Subtile porytiles::PackingParams::PrimaryTileRef::subtile

Definition at line 83 of file palette_packer.hpp.

◆ tile

PixelTile<Rgba32> porytiles::PackingParams::PrimaryTileRef::tile

Definition at line 79 of file palette_packer.hpp.


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