Porytiles
Loading...
Searching...
No Matches
porytiles::FilePaletteLoader Class Referenceabstract

A service interface that loads a fixed-length Palette from a given file. More...

#include <file_palette_loader.hpp>

Inheritance diagram for porytiles::FilePaletteLoader:
[legend]

Public Member Functions

virtual ~FilePaletteLoader ()=default
 
virtual ChainableResult< Palette< Rgba32, palette::max_size > > load (const std::filesystem::path &path) const =0
 
virtual ChainableResult< Palette< Rgba32, palette::max_size > > load_with_wildcards (const std::filesystem::path &path) const =0
 

Detailed Description

A service interface that loads a fixed-length Palette from a given file.

The FilePaletteLoader interface is file-format-agnostic. Different implementations can load from various palette file formats (e.g., JASC, .gbapal, etc.).

Definition at line 16 of file file_palette_loader.hpp.

Constructor & Destructor Documentation

◆ ~FilePaletteLoader()

virtual porytiles::FilePaletteLoader::~FilePaletteLoader ( )
virtualdefault

Member Function Documentation

◆ load()

virtual ChainableResult< Palette< Rgba32, palette::max_size > > porytiles::FilePaletteLoader::load ( const std::filesystem::path &  path) const
pure virtual

◆ load_with_wildcards()

virtual ChainableResult< Palette< Rgba32, palette::max_size > > porytiles::FilePaletteLoader::load_with_wildcards ( const std::filesystem::path &  path) const
pure virtual

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