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

A single pixel modification within a tile. More...

#include <anim_key_frame_mangler.hpp>

Collaboration diagram for porytiles::PixelMangleChange:
[legend]

Public Attributes

std::size_t pixel_index {}
 Which pixel in the tile (0-63, linear index)
 
IndexPixel original_pixel
 The pixel value before mangling.
 
IndexPixel mangled_pixel
 The pixel value after mangling.
 

Detailed Description

A single pixel modification within a tile.

Records which pixel was changed and the before/after values. Multiple PixelMangleChange entries can exist per tile when multi-pixel mangling is required (e.g., for solid-color tiles where single-pixel swaps are insufficient).

Definition at line 28 of file anim_key_frame_mangler.hpp.

Member Data Documentation

◆ mangled_pixel

IndexPixel porytiles::PixelMangleChange::mangled_pixel

The pixel value after mangling.

Definition at line 31 of file anim_key_frame_mangler.hpp.

◆ original_pixel

IndexPixel porytiles::PixelMangleChange::original_pixel

The pixel value before mangling.

Definition at line 30 of file anim_key_frame_mangler.hpp.

◆ pixel_index

std::size_t porytiles::PixelMangleChange::pixel_index {}

Which pixel in the tile (0-63, linear index)

Definition at line 29 of file anim_key_frame_mangler.hpp.


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