Files
wc3re/PaletteDecoder.hh

25 lines
367 B
C++

#ifndef WC3RE_PALETTEDECODER_HH__
#define WC3RE_PALETTEDECODER_HH__
#include <cstdint>
#include <array>
#include "IffFile.hh"
class PaletteDecoder {
public:
PaletteDecoder(Resource const& res);
using Palette = std::array<uint8_t, 768>;
Palette const& getPalette() const {
return palette_;
}
private:
IffFile iff_;
Palette palette_;
};
#endif