21 void save(ImGuiTextBuffer& buf)
override;
26 void renderBitmap(std::span<const uint8_t> vram, std::span<const uint32_t, 16> palette16,
27 int mode,
int lines,
int page, uint32_t* output)
const;
33 enum BitmapScrnMode :
int { SCR5, SCR6, SCR7, SCR8, SCR11, SCR12, OTHER };
34 int bitmapScrnMode = 0;
37 int bitmapColor0 = 16;
39 gl::vec4 bitmapGridColor{0.0f, 0.0f, 0.0f, 0.5f};
40 gl::vec4 rasterBeamColor{1.0f, 0.0f, 0.0f, 0.8f};
41 bool overrideAll =
false;
42 bool overrideMode =
false;
43 bool overridePage =
false;
44 bool overrideLines =
false;
45 bool overrideColor0 =
false;
46 bool bitmapGrid =
true;
47 bool rasterBeam =
false;
49 std::optional<gl::Texture> bitmapTex;
50 std::optional<gl::Texture> bitmapGridTex;
52 static constexpr auto persistentElements = std::tuple{
59 PersistentElementMax{
"scrnMode", &ImGuiBitmapViewer::bitmapScrnMode, OTHER},
61 PersistentElementMax{
"lines", &ImGuiBitmapViewer::bitmapLines, 3},
62 PersistentElementMax{
"color0", &ImGuiBitmapViewer::bitmapColor0, 16 + 1},
63 PersistentElementMax{
"zoom", &ImGuiBitmapViewer::bitmapZoom, 8},