1#ifndef IMGUI_PALETTE_HH
2#define IMGUI_PALETTE_HH
21 void save(ImGuiTextBuffer& buf)
override;
25 std::span<const uint16_t, 16>
getPalette(
const VDP* vdp)
const;
26 static uint32_t
toRGBA(uint16_t msxColor);
33 static constexpr int PALETTE_VDP = 0;
34 static constexpr int PALETTE_CUSTOM = 1;
35 static constexpr int PALETTE_FIXED = 2;
36 int selectedColor = 0;
38 std::array<uint16_t, 16> customPalette;
40 static constexpr auto persistentElements = std::tuple{
void save(ImGuiTextBuffer &buf) override
std::span< const uint16_t, 16 > getPalette(const VDP *vdp) const
static uint32_t toRGBA(uint16_t msxColor)
zstring_view iniName() const override
void loadLine(std::string_view name, zstring_view value) override
void paint(MSXMotherBoard *motherBoard) override
Unified implementation of MSX Video Display Processors (VDPs).
Like std::string_view, but with the extra guarantee that it refers to a zero-terminated string.
This file implemented 3 utility functions: