OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
PaletteManager Class Reference

#include <PaletteManager.h>

Public Member Functions

void load (LodTextureCache *lod)
 
int paletteIndex (int paletteId)
 
std::span< ColorpaletteData ()
 

Static Public Member Functions

static Palette createGrayscalePalette ()
 
static Palette createLoadedPalette (const Palette &palette)
 

Private Attributes

std::vector< int > _paletteIds
 
std::vector< Palette_palettes
 

Member Function Documentation

◆ createGrayscalePalette()

Palette PaletteManager::createGrayscalePalette ( )
static

◆ createLoadedPalette()

Palette PaletteManager::createLoadedPalette ( const Palette palette)
static

◆ load()

void PaletteManager::load ( LodTextureCache lod)

◆ paletteData()

std::span< Color > PaletteManager::paletteData ( )
Returns
Span containing contiguous data for all loaded palettes.

◆ paletteIndex()

int PaletteManager::paletteIndex ( int  paletteId)
Parameters
paletteIdPalette identifier, a number in [0, 999].
Returns
Index for the provided palette identifier. Returned index can then be used for getting palette data from the return value of paletteData function.

Member Data Documentation

◆ _paletteIds

std::vector<int> PaletteManager::_paletteIds
private

◆ _palettes

std::vector<Palette> PaletteManager::_palettes
private

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