17 void save(ImGuiTextBuffer& buf)
override;
25 bool overrideAll =
false;
26 bool overrideMode =
false;
27 bool overrideSize =
false;
28 bool overrideMag =
false;
29 bool overrideTrans =
false;
30 bool overridePat =
false;
31 bool overrideAtt =
false;
32 bool overrideScroll =
false;
33 bool overrideLines =
false;
37 int manualTransparent = 0;
38 int manualPatBase = 0;
39 int manualAttBase = 0;
40 int manualVerticalScroll = 0;
43 int checkerBoardSize = 4;
44 int boundingBoxOnAll = 0;
45 gl::vec4 gridColor{0.5f, 0.5f, 0.5f, 0.5f};
46 gl::vec4 checkerBoardColor1{0.2f, 0.2f, 0.2f, 0.8f};
47 gl::vec4 checkerBoardColor2{0.4f, 0.4f, 0.4f, 0.8f};
48 gl::vec4 boundingBoxColor {1.0f, 0.0f, 0.0f, 0.8f};
50 bool drawBoundingBox =
true;
51 bool enableLimitPerLine =
true;
52 bool enableStopY =
true;
60 static constexpr auto validSizes = {8, 16};
61 static constexpr auto persistentElements = std::tuple{
72 PersistentElementMinMax{
"mode", &ImGuiSpriteViewer::manualMode, 1, 3},
73 PersistentElementEnum{
"size", &ImGuiSpriteViewer::manualSize, validSizes},
74 PersistentElementMax{
"mag", &ImGuiSpriteViewer::manualMag, 2},
75 PersistentElementMax{
"transparent", &ImGuiSpriteViewer::manualTransparent, 2},
76 PersistentElementMax{
"patBase", &ImGuiSpriteViewer::manualPatBase, 0x20000},
77 PersistentElementMax{
"attBase", &ImGuiSpriteViewer::manualAttBase, 0x20000},
78 PersistentElementMax{
"verticalScroll", &ImGuiSpriteViewer::manualVerticalScroll, 256},
79 PersistentElementMax{
"lines", &ImGuiSpriteViewer::manualLines, 3},
80 PersistentElementMax{
"zoom", &ImGuiSpriteViewer::zoom, 8},
82 PersistentElementMax{
"checkerBoardSize", &ImGuiSpriteViewer::checkerBoardSize, 256},
83 PersistentElementMax{
"boundingBoxOnAll", &ImGuiSpriteViewer::boundingBoxOnAll, 2},
Most basic/generic texture: only contains a texture ID.