bmxconverter/palette.h

19 lines
413 B
C
Raw Permalink Normal View History

2023-11-17 12:30:24 -08:00
#pragma once
#include <stdint.h>
#include <Magick++.h>
#include <string>
2023-11-17 12:30:24 -08:00
using namespace Magick;
class PaletteEntry {
public:
uint8_t r;
uint8_t g;
uint8_t b;
uint16_t hash() const;
void write(uint8_t *ptr) const;
ColorRGB toColor() const;
std::string to_string() const;
2023-11-17 12:30:24 -08:00
PaletteEntry();
PaletteEntry(uint8_t *ptr);
PaletteEntry(uint8_t r, uint8_t g, uint8_t b);
PaletteEntry(const ColorRGB &color);
};