Porytiles
Loading...
Searching...
No Matches
porytiles::ShapeGroupMember< PixelType > Struct Template Reference

A member of a ShapeGroup, representing one tile that shares a canonical shape with other members. More...

#include <shape_group.hpp>

Collaboration diagram for porytiles::ShapeGroupMember< PixelType >:
[legend]

Public Attributes

std::size_t tile_index
 
std::map< ShapeMask, PixelType > colors
 
bool h_flip
 
bool v_flip
 

Detailed Description

template<typename PixelType>
struct porytiles::ShapeGroupMember< PixelType >

A member of a ShapeGroup, representing one tile that shares a canonical shape with other members.

Each member records which input tile it corresponds to (via tile_index), its color assignment (the full ShapeMask -> PixelType mapping from its ShapeTile), and the flip flags needed to transform the canonical shape back to this member's original orientation.

Template Parameters
PixelTypeThe pixel type stored for each shape region (e.g., Rgba32)

Definition at line 23 of file shape_group.hpp.

Member Data Documentation

◆ colors

template<typename PixelType >
std::map<ShapeMask, PixelType> porytiles::ShapeGroupMember< PixelType >::colors

Definition at line 26 of file shape_group.hpp.

◆ h_flip

template<typename PixelType >
bool porytiles::ShapeGroupMember< PixelType >::h_flip

Definition at line 28 of file shape_group.hpp.

◆ tile_index

template<typename PixelType >
std::size_t porytiles::ShapeGroupMember< PixelType >::tile_index

Definition at line 24 of file shape_group.hpp.

◆ v_flip

template<typename PixelType >
bool porytiles::ShapeGroupMember< PixelType >::v_flip

Definition at line 30 of file shape_group.hpp.


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