1#ifndef IMGUI_PALETTE_HH
2#define IMGUI_PALETTE_HH
21 void save(ImGuiTextBuffer& buf)
override;
32 static constexpr int PALETTE_VDP = 0;
33 static constexpr int PALETTE_CUSTOM = 1;
34 static constexpr int PALETTE_FIXED = 2;
35 int selectedColor = 0;
37 std::array<uint16_t, 16> customPalette;
39 static constexpr auto persistentElements = std::tuple{
void save(ImGuiTextBuffer &buf) override
std::array< uint32_t, 16 > getPalette(const VDP *vdp) const
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: