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;
34 enum BitmapScrnMode :
int { SCR5, SCR6, SCR7, SCR8, SCR11, SCR12, OTHER };
35 int bitmapScrnMode = 0;
38 int bitmapColor0 = 16;
40 bool bitmapGrid =
true;
41 gl::vec4 bitmapGridColor{0.0f, 0.0f, 0.0f, 0.5f};
43 std::optional<gl::Texture> bitmapTex;
44 std::optional<gl::Texture> bitmapGridTex;
46 static constexpr auto persistentElements = std::tuple{
48 PersistentElementMax{
"override", &ImGuiBitmapViewer::bitmapManual, 2},
49 PersistentElementMax{
"scrnMode", &ImGuiBitmapViewer::bitmapScrnMode, OTHER},
50 PersistentElementMax{
"page", &ImGuiBitmapViewer::bitmapPage, 4},
51 PersistentElementMax{
"lines", &ImGuiBitmapViewer::bitmapLines, 3},
52 PersistentElementMax{
"color0", &ImGuiBitmapViewer::bitmapColor0, 16 + 1},
53 PersistentElementMax{
"zoom", &ImGuiBitmapViewer::bitmapZoom, 8},