1#ifndef YAZE_APP_GFX_SNES_COLOR_H_
2#define YAZE_APP_GFX_SNES_COLOR_H_
9#include "imgui/imgui.h"
21std::vector<snes_color>
Extract(
const char* data,
unsigned int offset,
22 unsigned int palette_size);
24std::vector<char>
Convert(
const std::vector<snes_color>& palette);
55 snes_(ConvertRgbToSnes(val)),
snes_color rom_color() const
SnesColor(const snes_color val)
void set_transparent(bool t)
SnesColor(const ImVec4 val)
void set_rgb(const ImVec4 val)
SnesColor(uint8_t r, uint8_t g, uint8_t b)
void set_modified(bool m)
SnesColor(const uint16_t val)
void set_snes(uint16_t val)
bool is_transparent() const
constexpr float kColorByteMaxF
SnesColor GetCgxColor(uint16_t color)
SnesColor ReadColorFromRom(int offset, const uint8_t *rom)
constexpr int NumberOfColors
std::vector< SnesColor > GetColFileData(uint8_t *data)
snes_color ConvertSnesToRgb(uint16_t color_snes)
std::vector< char > Convert(const std::vector< snes_color > &palette)
uint16_t ConvertRgbToSnes(const snes_color &color)
constexpr uint8_t kColorByteMax
std::vector< snes_color > Extract(const char *data, unsigned int offset, unsigned int palette_size)
Primitive of 16-bit RGB SNES color.