26 void save(ImGuiTextBuffer& buf)
override;
31 void renderBitmap(std::span<const uint8_t> vram, std::span<const uint32_t, 16> palette16,
32 int mode,
int lines,
int page, uint32_t* output)
const;
40 int bitmapScrnMode = 0;
43 int bitmapColor0 = 16;
45 gl::vec4 bitmapGridColor{0.0f, 0.0f, 0.0f, 0.5f};
46 gl::vec4 rasterBeamColor{1.0f, 0.0f, 0.0f, 0.8f};
47 bool overrideAll =
false;
48 bool overrideMode =
false;
49 bool overridePage =
false;
50 bool overrideLines =
false;
51 bool overrideColor0 =
false;
52 bool bitmapGrid =
true;
53 bool rasterBeam =
false;
55 std::optional<gl::Texture> bitmapTex;
56 std::optional<gl::Texture> bitmapGridTex;
58 int showCmdOverlay = 0;
59 gl::vec4 colorSrcDone{0.0f, 1.0f, 0.0f, 0.66f};
60 gl::vec4 colorSrcTodo{0.0f, 1.0f, 0.0f, 0.33f};
61 gl::vec4 colorDstDone{1.0f, 0.0f, 0.0f, 0.66f};
62 gl::vec4 colorDstTodo{1.0f, 0.0f, 0.0f, 0.33f};
64 static constexpr auto persistentElements = std::tuple{
71 PersistentElementMax{
"scrnMode", &ImGuiBitmapViewer::bitmapScrnMode,
OTHER},
73 PersistentElementMax{
"lines", &ImGuiBitmapViewer::bitmapLines, 3},
74 PersistentElementMax{
"color0", &ImGuiBitmapViewer::bitmapColor0, 16 + 1},
75 PersistentElementMax{
"zoom", &ImGuiBitmapViewer::bitmapZoom, 8},
80 PersistentElementMax{
"showCmdOverlay", &ImGuiBitmapViewer::showCmdOverlay, 3},
static_vector< Rect, 2 > rectFromVdpCmd(int x, int y, int nx, int ny, bool dix, bool diy, ImGuiBitmapViewer::ScrnMode screenMode, bool byteMode)