26 lines
418 B
C++
26 lines
418 B
C++
#ifndef WC3RE_PALETTEDECODER_HH__
|
|
#define WC3RE_PALETTEDECODER_HH__
|
|
|
|
#include <cstdint>
|
|
#include <array>
|
|
|
|
#include "IffFile.hh"
|
|
|
|
class PaletteDecoder {
|
|
public:
|
|
PaletteDecoder(std::string const& path);
|
|
PaletteDecoder(IffFile::Handle iff);
|
|
|
|
using Palette = std::array<uint8_t, 768>;
|
|
|
|
Palette const& getPalette() const {
|
|
return palette_;
|
|
}
|
|
|
|
private:
|
|
IffFile::Handle iff_;
|
|
Palette palette_;
|
|
};
|
|
|
|
#endif
|