Skip to content

Commit 6351e7e

Browse files
committed
build: update imgui/implot
1 parent fee8997 commit 6351e7e

13 files changed

Lines changed: 1842 additions & 839 deletions

thirdparty/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ remove it.
1717

1818
### Dear ImGui & ImPlot
1919

20-
These are not dependencies however, they are currently vendored since they are hardcoded into the experimental glfw backend. Once the current backends are further along to where Dear ImGui can be entirely integrated on the user side,
21-
these will most likely be removed. We are currently using v1.92.7 of Dear ImGui and v1.0 of ImPlot
20+
These are not dependencies however, they are currently vendored since we use our own backend. Newer versions should work as well.
2221

2322
[Dear ImGui Repository](https://github.com/ocornut/imgui/tree/docking)
2423

thirdparty/imgui/imgui.cpp

Lines changed: 389 additions & 105 deletions
Large diffs are not rendered by default.

thirdparty/imgui/imgui.h

Lines changed: 117 additions & 67 deletions
Large diffs are not rendered by default.

thirdparty/imgui/imgui_demo.cpp

Lines changed: 229 additions & 100 deletions
Large diffs are not rendered by default.

thirdparty/imgui/imgui_draw.cpp

Lines changed: 209 additions & 141 deletions
Large diffs are not rendered by default.

thirdparty/imgui/imgui_internal.h

Lines changed: 220 additions & 118 deletions
Large diffs are not rendered by default.

thirdparty/imgui/imgui_tables.cpp

Lines changed: 417 additions & 176 deletions
Large diffs are not rendered by default.

thirdparty/imgui/imgui_widgets.cpp

Lines changed: 220 additions & 116 deletions
Large diffs are not rendered by default.

thirdparty/imgui/implot.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
// SOFTWARE.
2323

24-
// ImPlot v1.0
24+
// ImPlot v1.1 WIP
2525

2626
/*
2727
@@ -219,6 +219,7 @@ You can read releases logs https://github.com/epezent/implot/releases for more d
219219
#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated
220220
#elif defined(__GNUC__)
221221
#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked
222+
#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated
222223
#endif
223224

224225
// Global plot context
@@ -307,6 +308,8 @@ const char* GetMarkerName(ImPlotMarker marker) {
307308
case ImPlotMarker_Cross: return "Cross";
308309
case ImPlotMarker_Plus: return "Plus";
309310
case ImPlotMarker_Asterisk: return "Asterisk";
311+
case ImPlotMarker_Vertical: return "Vertical";
312+
case ImPlotMarker_Horizontal: return "Horizontal";
310313
default: return "";
311314
}
312315
}
@@ -3171,8 +3174,13 @@ void EndPlot() {
31713174
}
31723175

31733176
// render border
3177+
#if IMGUI_VERSION_NUM < 19276
31743178
if (render_border)
3175-
DrawList.AddRect(plot.PlotRect.Min, plot.PlotRect.Max, GetStyleColorU32(ImPlotCol_PlotBorder), 0, ImDrawFlags_RoundCornersAll, gp.Style.PlotBorderSize);
3179+
DrawList.AddRect(plot.PlotRect.Min, plot.PlotRect.Max, GetStyleColorU32(ImPlotCol_PlotBorder), 0, ImDrawFlags_None, gp.Style.PlotBorderSize);
3180+
#else
3181+
if (render_border)
3182+
DrawList.AddRect(plot.PlotRect.Min, plot.PlotRect.Max, GetStyleColorU32(ImPlotCol_PlotBorder), 0, gp.Style.PlotBorderSize, ImDrawFlags_None);
3183+
#endif
31763184

31773185
// render tags
31783186
for (int i = 0; i < gp.Tags.Size; ++i) {

thirdparty/imgui/implot.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
// SOFTWARE.
2323

24-
// ImPlot v1.0
24+
// ImPlot v1.1 WIP
2525

2626
// Table of Contents:
2727
//
@@ -62,9 +62,9 @@
6262
#endif
6363

6464
// ImPlot version string.
65-
#define IMPLOT_VERSION "1.0"
65+
#define IMPLOT_VERSION "1.1 WIP"
6666
// ImPlot version integer encoded as XYYZZ (X=major, YY=minor, ZZ=patch).
67-
#define IMPLOT_VERSION_NUM 10000
67+
#define IMPLOT_VERSION_NUM 10100
6868
// Macro for templated plotting functions; keeps header clean.
6969
#define IMPLOT_TMP template <typename T> IMPLOT_API
7070

@@ -448,6 +448,8 @@ enum ImPlotMarker_ {
448448
ImPlotMarker_Cross, // a cross marker (not fill-able)
449449
ImPlotMarker_Plus, // a plus marker (not fill-able)
450450
ImPlotMarker_Asterisk, // a asterisk marker (not fill-able)
451+
ImPlotMarker_Vertical, // a vertical line marker (not fill-able)
452+
ImPlotMarker_Horizontal, // a horizontal line marker (not fill-able)
451453
ImPlotMarker_COUNT
452454
};
453455

0 commit comments

Comments
 (0)