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 palette_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, palette_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 61 of file palette_packer.hpp.

Member Data Documentation

◆ layer

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

Definition at line 65 of file palette_packer.hpp.

◆ metatile_index

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

Definition at line 64 of file palette_packer.hpp.

◆ palette_index

std::size_t porytiles::PackingParams::PrimaryTileRef::palette_index

Definition at line 63 of file palette_packer.hpp.

◆ subtile

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

Definition at line 66 of file palette_packer.hpp.

◆ tile

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

Definition at line 62 of file palette_packer.hpp.


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