Porytiles
Loading...
Searching...
No Matches
porytiles::PaletteHint Class Reference

Represents a palette hint for the palette packing algorithm. More...

#include <palette_hint.hpp>

Public Member Functions

 PaletteHint (std::string name, Palette< Rgba32 > pal)
 Constructs a PaletteHint with a name and palette.
 
const std::string & name () const
 
const Palette< Rgba32 > & pal () const
 

Detailed Description

Represents a palette hint for the palette packing algorithm.

A PaletteHint contains a named palette that provides guidance to the packing algorithm about how colors should be grouped together. The name allows the hint to be identified and referenced.

Definition at line 22 of file palette_hint.hpp.

Constructor & Destructor Documentation

◆ PaletteHint()

porytiles::PaletteHint::PaletteHint ( std::string  name,
Palette< Rgba32 pal 
)
inline

Constructs a PaletteHint with a name and palette.

Parameters
nameThe name of this palette hint
palThe palette containing the hint colors

Definition at line 30 of file palette_hint.hpp.

Member Function Documentation

◆ name()

const std::string & porytiles::PaletteHint::name ( ) const
inline

Definition at line 32 of file palette_hint.hpp.

◆ pal()

const Palette< Rgba32 > & porytiles::PaletteHint::pal ( ) const
inline

Definition at line 37 of file palette_hint.hpp.


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