17 void save(ImGuiTextBuffer& buf)
override;
22 static void renderPatterns(
int mode, std::span<const uint32_t, 16> palette,
23 int fgCol,
int bgCol,
int fgBlink,
int bgBlink,
34 bool nameTableOverlay =
false;
35 gl::vec4 gridColor{0.0f, 0.0f, 0.0f, 0.5f};
37 enum CharScrnMode :
int { TEXT40, TEXT80, SCR1, SCR2, SCR3, SCR4, OTHER };
41 int manualFgBlink = 14;
42 int manualBgBlink = 1;
44 int manualPatBase = 0;
45 int manualColBase = 0;
46 int manualNamBase = 0;
48 int manualColor0 = 16;
54 static constexpr auto persistentElements = std::tuple{
56 PersistentElementMax{
"override", &ImGuiCharacter::manual, 2},
57 PersistentElementMax{
"zoom", &ImGuiCharacter::zoom, 8},
61 PersistentElementMax{
"mode", &ImGuiCharacter::manualMode, OTHER},
62 PersistentElementMax{
"fgCol", &ImGuiCharacter::manualFgCol, 16},
63 PersistentElementMax{
"bgCol", &ImGuiCharacter::manualBgCol, 16},
64 PersistentElementMax{
"fgBlink", &ImGuiCharacter::manualFgBlink, 16},
65 PersistentElementMax{
"bgBlink", &ImGuiCharacter::manualBgBlink, 16},
67 PersistentElementMax{
"patBase", &ImGuiCharacter::manualPatBase, 0x20000},
68 PersistentElementMax{
"colBase", &ImGuiCharacter::manualColBase, 0x20000},
69 PersistentElementMax{
"namBase", &ImGuiCharacter::manualNamBase, 0x20000},
70 PersistentElementMax{
"rows", &ImGuiCharacter::manualRows, 3},
71 PersistentElementMax{
"color0", &ImGuiCharacter::manualColor0, 16 + 1}
Most basic/generic texture: only contains a texture ID.