19 void save(ImGuiTextBuffer& buf)
override;
29 bool overrideAll =
false;
30 bool overrideMode =
false;
31 bool overrideSize =
false;
32 bool overrideMag =
false;
33 bool overrideTrans =
false;
34 bool overridePat =
false;
35 bool overrideAtt =
false;
36 bool overrideScroll =
false;
37 bool overrideLines =
false;
41 int manualTransparent = 0;
42 int manualPatBase = 0;
43 int manualAttBase = 0;
44 int manualVerticalScroll = 0;
47 int checkerBoardSize = 4;
48 int boundingBoxOnAll = 0;
49 gl::vec4 gridColor{0.5f, 0.5f, 0.5f, 0.5f};
50 gl::vec4 checkerBoardColor1{0.2f, 0.2f, 0.2f, 0.8f};
51 gl::vec4 checkerBoardColor2{0.4f, 0.4f, 0.4f, 0.8f};
52 gl::vec4 boundingBoxColor {1.0f, 0.0f, 0.0f, 0.8f};
54 bool drawBoundingBox =
true;
55 bool enableLimitPerLine =
true;
56 bool enableStopY =
true;
64 static constexpr auto validSizes = {8, 16};
65 static constexpr auto persistentElements = std::tuple{
76 PersistentElementMinMax{
"mode", &ImGuiSpriteViewer::manualMode, 1, 3},
77 PersistentElementEnum{
"size", &ImGuiSpriteViewer::manualSize, validSizes},
78 PersistentElementMax{
"mag", &ImGuiSpriteViewer::manualMag, 2},
79 PersistentElementMax{
"transparent", &ImGuiSpriteViewer::manualTransparent, 2},
80 PersistentElementMax{
"patBase", &ImGuiSpriteViewer::manualPatBase, 0x20000},
81 PersistentElementMax{
"attBase", &ImGuiSpriteViewer::manualAttBase, 0x20000},
82 PersistentElementMax{
"verticalScroll", &ImGuiSpriteViewer::manualVerticalScroll, 256},
83 PersistentElementMax{
"lines", &ImGuiSpriteViewer::manualLines, 3},
84 PersistentElementMax{
"zoom", &ImGuiSpriteViewer::zoom, 8},
86 PersistentElementMax{
"checkerBoardSize", &ImGuiSpriteViewer::checkerBoardSize, 256},
87 PersistentElementMax{
"boundingBoxOnAll", &ImGuiSpriteViewer::boundingBoxOnAll, 2},
Most basic/generic texture: only contains a texture ID.