From fdc720d69047416ae7cd119f6be93ea879b21905 Mon Sep 17 00:00:00 2001 From: Churkin Aleksey Date: Wed, 24 Jun 2026 14:07:19 +0300 Subject: [PATCH 1/2] implot: regenerate binding for Dear ImGui 1.92.6 Re-ran bind/bind_implot.das against dasImgui's bumped 1.92.6 headers. PlotImage's texture param now resolves to ImTextureID (ImU64 in 1.92, was void*); plus enum underlying-type + dropped-constant deltas. Co-Authored-By: Claude Opus 4.8 --- src/dasIMPLOT.const.inc | 1 - src/dasIMPLOT.enum.class.inc | 62 ++++++++++++++++++------------------ src/dasIMPLOT.func_3.cpp | 2 +- 3 files changed, 32 insertions(+), 33 deletions(-) diff --git a/src/dasIMPLOT.const.inc b/src/dasIMPLOT.const.inc index f079fb1..44d19d5 100644 --- a/src/dasIMPLOT.const.inc +++ b/src/dasIMPLOT.const.inc @@ -1,4 +1,3 @@ // this file is generated via Daslang automatic binder // all user modifications will be lost after this file is re-generated -addConstant(*this,"ImGuiMod_None",int32_t(0)); diff --git a/src/dasIMPLOT.enum.class.inc b/src/dasIMPLOT.enum.class.inc index d075ae1..6daf05f 100644 --- a/src/dasIMPLOT.enum.class.inc +++ b/src/dasIMPLOT.enum.class.inc @@ -7,7 +7,7 @@ public: Enumeration_ImAxis_() : das::Enumeration("ImAxis") { external = true; cppName = "ImAxis_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("X1", "ImAxis_X1", int64_t(ImAxis_::ImAxis_X1), das::LineInfo()); addIEx("X2", "ImAxis_X2", int64_t(ImAxis_::ImAxis_X2), das::LineInfo()); addIEx("X3", "ImAxis_X3", int64_t(ImAxis_::ImAxis_X3), das::LineInfo()); @@ -24,7 +24,7 @@ public: Enumeration_ImPlotFlags_() : das::Enumeration("ImPlotFlags") { external = true; cppName = "ImPlotFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotFlags_None", int64_t(ImPlotFlags_::ImPlotFlags_None), das::LineInfo()); addIEx("NoTitle", "ImPlotFlags_NoTitle", int64_t(ImPlotFlags_::ImPlotFlags_NoTitle), das::LineInfo()); addIEx("NoLegend", "ImPlotFlags_NoLegend", int64_t(ImPlotFlags_::ImPlotFlags_NoLegend), das::LineInfo()); @@ -46,7 +46,7 @@ public: Enumeration_ImPlotAxisFlags_() : das::Enumeration("ImPlotAxisFlags") { external = true; cppName = "ImPlotAxisFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotAxisFlags_None", int64_t(ImPlotAxisFlags_::ImPlotAxisFlags_None), das::LineInfo()); addIEx("NoLabel", "ImPlotAxisFlags_NoLabel", int64_t(ImPlotAxisFlags_::ImPlotAxisFlags_NoLabel), das::LineInfo()); addIEx("NoGridLines", "ImPlotAxisFlags_NoGridLines", int64_t(ImPlotAxisFlags_::ImPlotAxisFlags_NoGridLines), das::LineInfo()); @@ -76,7 +76,7 @@ public: Enumeration_ImPlotSubplotFlags_() : das::Enumeration("ImPlotSubplotFlags") { external = true; cppName = "ImPlotSubplotFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotSubplotFlags_None", int64_t(ImPlotSubplotFlags_::ImPlotSubplotFlags_None), das::LineInfo()); addIEx("NoTitle", "ImPlotSubplotFlags_NoTitle", int64_t(ImPlotSubplotFlags_::ImPlotSubplotFlags_NoTitle), das::LineInfo()); addIEx("NoLegend", "ImPlotSubplotFlags_NoLegend", int64_t(ImPlotSubplotFlags_::ImPlotSubplotFlags_NoLegend), das::LineInfo()); @@ -98,7 +98,7 @@ public: Enumeration_ImPlotLegendFlags_() : das::Enumeration("ImPlotLegendFlags") { external = true; cppName = "ImPlotLegendFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotLegendFlags_None", int64_t(ImPlotLegendFlags_::ImPlotLegendFlags_None), das::LineInfo()); addIEx("NoButtons", "ImPlotLegendFlags_NoButtons", int64_t(ImPlotLegendFlags_::ImPlotLegendFlags_NoButtons), das::LineInfo()); addIEx("NoHighlightItem", "ImPlotLegendFlags_NoHighlightItem", int64_t(ImPlotLegendFlags_::ImPlotLegendFlags_NoHighlightItem), das::LineInfo()); @@ -116,7 +116,7 @@ public: Enumeration_ImPlotMouseTextFlags_() : das::Enumeration("ImPlotMouseTextFlags") { external = true; cppName = "ImPlotMouseTextFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotMouseTextFlags_None", int64_t(ImPlotMouseTextFlags_::ImPlotMouseTextFlags_None), das::LineInfo()); addIEx("NoAuxAxes", "ImPlotMouseTextFlags_NoAuxAxes", int64_t(ImPlotMouseTextFlags_::ImPlotMouseTextFlags_NoAuxAxes), das::LineInfo()); addIEx("NoFormat", "ImPlotMouseTextFlags_NoFormat", int64_t(ImPlotMouseTextFlags_::ImPlotMouseTextFlags_NoFormat), das::LineInfo()); @@ -130,7 +130,7 @@ public: Enumeration_ImPlotDragToolFlags_() : das::Enumeration("ImPlotDragToolFlags") { external = true; cppName = "ImPlotDragToolFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotDragToolFlags_None", int64_t(ImPlotDragToolFlags_::ImPlotDragToolFlags_None), das::LineInfo()); addIEx("NoCursors", "ImPlotDragToolFlags_NoCursors", int64_t(ImPlotDragToolFlags_::ImPlotDragToolFlags_NoCursors), das::LineInfo()); addIEx("NoFit", "ImPlotDragToolFlags_NoFit", int64_t(ImPlotDragToolFlags_::ImPlotDragToolFlags_NoFit), das::LineInfo()); @@ -145,7 +145,7 @@ public: Enumeration_ImPlotColormapScaleFlags_() : das::Enumeration("ImPlotColormapScaleFlags") { external = true; cppName = "ImPlotColormapScaleFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotColormapScaleFlags_None", int64_t(ImPlotColormapScaleFlags_::ImPlotColormapScaleFlags_None), das::LineInfo()); addIEx("NoLabel", "ImPlotColormapScaleFlags_NoLabel", int64_t(ImPlotColormapScaleFlags_::ImPlotColormapScaleFlags_NoLabel), das::LineInfo()); addIEx("Opposite", "ImPlotColormapScaleFlags_Opposite", int64_t(ImPlotColormapScaleFlags_::ImPlotColormapScaleFlags_Opposite), das::LineInfo()); @@ -159,7 +159,7 @@ public: Enumeration_ImPlotItemFlags_() : das::Enumeration("ImPlotItemFlags") { external = true; cppName = "ImPlotItemFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotItemFlags_None", int64_t(ImPlotItemFlags_::ImPlotItemFlags_None), das::LineInfo()); addIEx("NoLegend", "ImPlotItemFlags_NoLegend", int64_t(ImPlotItemFlags_::ImPlotItemFlags_NoLegend), das::LineInfo()); addIEx("NoFit", "ImPlotItemFlags_NoFit", int64_t(ImPlotItemFlags_::ImPlotItemFlags_NoFit), das::LineInfo()); @@ -172,7 +172,7 @@ public: Enumeration_ImPlotLineFlags_() : das::Enumeration("ImPlotLineFlags") { external = true; cppName = "ImPlotLineFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotLineFlags_None", int64_t(ImPlotLineFlags_::ImPlotLineFlags_None), das::LineInfo()); addIEx("Segments", "ImPlotLineFlags_Segments", int64_t(ImPlotLineFlags_::ImPlotLineFlags_Segments), das::LineInfo()); addIEx("Loop", "ImPlotLineFlags_Loop", int64_t(ImPlotLineFlags_::ImPlotLineFlags_Loop), das::LineInfo()); @@ -188,7 +188,7 @@ public: Enumeration_ImPlotScatterFlags_() : das::Enumeration("ImPlotScatterFlags") { external = true; cppName = "ImPlotScatterFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotScatterFlags_None", int64_t(ImPlotScatterFlags_::ImPlotScatterFlags_None), das::LineInfo()); addIEx("NoClip", "ImPlotScatterFlags_NoClip", int64_t(ImPlotScatterFlags_::ImPlotScatterFlags_NoClip), das::LineInfo()); } @@ -200,7 +200,7 @@ public: Enumeration_ImPlotStairsFlags_() : das::Enumeration("ImPlotStairsFlags") { external = true; cppName = "ImPlotStairsFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotStairsFlags_None", int64_t(ImPlotStairsFlags_::ImPlotStairsFlags_None), das::LineInfo()); addIEx("PreStep", "ImPlotStairsFlags_PreStep", int64_t(ImPlotStairsFlags_::ImPlotStairsFlags_PreStep), das::LineInfo()); addIEx("Shaded", "ImPlotStairsFlags_Shaded", int64_t(ImPlotStairsFlags_::ImPlotStairsFlags_Shaded), das::LineInfo()); @@ -213,7 +213,7 @@ public: Enumeration_ImPlotShadedFlags_() : das::Enumeration("ImPlotShadedFlags") { external = true; cppName = "ImPlotShadedFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotShadedFlags_None", int64_t(ImPlotShadedFlags_::ImPlotShadedFlags_None), das::LineInfo()); } }; @@ -224,7 +224,7 @@ public: Enumeration_ImPlotBarsFlags_() : das::Enumeration("ImPlotBarsFlags") { external = true; cppName = "ImPlotBarsFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotBarsFlags_None", int64_t(ImPlotBarsFlags_::ImPlotBarsFlags_None), das::LineInfo()); addIEx("Horizontal", "ImPlotBarsFlags_Horizontal", int64_t(ImPlotBarsFlags_::ImPlotBarsFlags_Horizontal), das::LineInfo()); } @@ -236,7 +236,7 @@ public: Enumeration_ImPlotBarGroupsFlags_() : das::Enumeration("ImPlotBarGroupsFlags") { external = true; cppName = "ImPlotBarGroupsFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotBarGroupsFlags_None", int64_t(ImPlotBarGroupsFlags_::ImPlotBarGroupsFlags_None), das::LineInfo()); addIEx("Horizontal", "ImPlotBarGroupsFlags_Horizontal", int64_t(ImPlotBarGroupsFlags_::ImPlotBarGroupsFlags_Horizontal), das::LineInfo()); addIEx("Stacked", "ImPlotBarGroupsFlags_Stacked", int64_t(ImPlotBarGroupsFlags_::ImPlotBarGroupsFlags_Stacked), das::LineInfo()); @@ -249,7 +249,7 @@ public: Enumeration_ImPlotErrorBarsFlags_() : das::Enumeration("ImPlotErrorBarsFlags") { external = true; cppName = "ImPlotErrorBarsFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotErrorBarsFlags_None", int64_t(ImPlotErrorBarsFlags_::ImPlotErrorBarsFlags_None), das::LineInfo()); addIEx("Horizontal", "ImPlotErrorBarsFlags_Horizontal", int64_t(ImPlotErrorBarsFlags_::ImPlotErrorBarsFlags_Horizontal), das::LineInfo()); } @@ -261,7 +261,7 @@ public: Enumeration_ImPlotStemsFlags_() : das::Enumeration("ImPlotStemsFlags") { external = true; cppName = "ImPlotStemsFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotStemsFlags_None", int64_t(ImPlotStemsFlags_::ImPlotStemsFlags_None), das::LineInfo()); addIEx("Horizontal", "ImPlotStemsFlags_Horizontal", int64_t(ImPlotStemsFlags_::ImPlotStemsFlags_Horizontal), das::LineInfo()); } @@ -273,7 +273,7 @@ public: Enumeration_ImPlotInfLinesFlags_() : das::Enumeration("ImPlotInfLinesFlags") { external = true; cppName = "ImPlotInfLinesFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotInfLinesFlags_None", int64_t(ImPlotInfLinesFlags_::ImPlotInfLinesFlags_None), das::LineInfo()); addIEx("Horizontal", "ImPlotInfLinesFlags_Horizontal", int64_t(ImPlotInfLinesFlags_::ImPlotInfLinesFlags_Horizontal), das::LineInfo()); } @@ -285,7 +285,7 @@ public: Enumeration_ImPlotPieChartFlags_() : das::Enumeration("ImPlotPieChartFlags") { external = true; cppName = "ImPlotPieChartFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotPieChartFlags_None", int64_t(ImPlotPieChartFlags_::ImPlotPieChartFlags_None), das::LineInfo()); addIEx("Normalize", "ImPlotPieChartFlags_Normalize", int64_t(ImPlotPieChartFlags_::ImPlotPieChartFlags_Normalize), das::LineInfo()); } @@ -297,7 +297,7 @@ public: Enumeration_ImPlotHeatmapFlags_() : das::Enumeration("ImPlotHeatmapFlags") { external = true; cppName = "ImPlotHeatmapFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotHeatmapFlags_None", int64_t(ImPlotHeatmapFlags_::ImPlotHeatmapFlags_None), das::LineInfo()); addIEx("ColMajor", "ImPlotHeatmapFlags_ColMajor", int64_t(ImPlotHeatmapFlags_::ImPlotHeatmapFlags_ColMajor), das::LineInfo()); } @@ -309,7 +309,7 @@ public: Enumeration_ImPlotHistogramFlags_() : das::Enumeration("ImPlotHistogramFlags") { external = true; cppName = "ImPlotHistogramFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotHistogramFlags_None", int64_t(ImPlotHistogramFlags_::ImPlotHistogramFlags_None), das::LineInfo()); addIEx("Horizontal", "ImPlotHistogramFlags_Horizontal", int64_t(ImPlotHistogramFlags_::ImPlotHistogramFlags_Horizontal), das::LineInfo()); addIEx("Cumulative", "ImPlotHistogramFlags_Cumulative", int64_t(ImPlotHistogramFlags_::ImPlotHistogramFlags_Cumulative), das::LineInfo()); @@ -325,7 +325,7 @@ public: Enumeration_ImPlotDigitalFlags_() : das::Enumeration("ImPlotDigitalFlags") { external = true; cppName = "ImPlotDigitalFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotDigitalFlags_None", int64_t(ImPlotDigitalFlags_::ImPlotDigitalFlags_None), das::LineInfo()); } }; @@ -336,7 +336,7 @@ public: Enumeration_ImPlotImageFlags_() : das::Enumeration("ImPlotImageFlags") { external = true; cppName = "ImPlotImageFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotImageFlags_None", int64_t(ImPlotImageFlags_::ImPlotImageFlags_None), das::LineInfo()); } }; @@ -347,7 +347,7 @@ public: Enumeration_ImPlotTextFlags_() : das::Enumeration("ImPlotTextFlags") { external = true; cppName = "ImPlotTextFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotTextFlags_None", int64_t(ImPlotTextFlags_::ImPlotTextFlags_None), das::LineInfo()); addIEx("Vertical", "ImPlotTextFlags_Vertical", int64_t(ImPlotTextFlags_::ImPlotTextFlags_Vertical), das::LineInfo()); } @@ -359,7 +359,7 @@ public: Enumeration_ImPlotDummyFlags_() : das::Enumeration("ImPlotDummyFlags") { external = true; cppName = "ImPlotDummyFlags_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotDummyFlags_None", int64_t(ImPlotDummyFlags_::ImPlotDummyFlags_None), das::LineInfo()); } }; @@ -370,7 +370,7 @@ public: Enumeration_ImPlotCond_() : das::Enumeration("ImPlotCond") { external = true; cppName = "ImPlotCond_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("None", "ImPlotCond_None", int64_t(ImPlotCond_::ImPlotCond_None), das::LineInfo()); addIEx("Always", "ImPlotCond_Always", int64_t(ImPlotCond_::ImPlotCond_Always), das::LineInfo()); addIEx("Once", "ImPlotCond_Once", int64_t(ImPlotCond_::ImPlotCond_Once), das::LineInfo()); @@ -383,7 +383,7 @@ public: Enumeration_ImPlotCol_() : das::Enumeration("ImPlotCol") { external = true; cppName = "ImPlotCol_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("Line", "ImPlotCol_Line", int64_t(ImPlotCol_::ImPlotCol_Line), das::LineInfo()); addIEx("Fill", "ImPlotCol_Fill", int64_t(ImPlotCol_::ImPlotCol_Fill), das::LineInfo()); addIEx("MarkerOutline", "ImPlotCol_MarkerOutline", int64_t(ImPlotCol_::ImPlotCol_MarkerOutline), das::LineInfo()); @@ -415,7 +415,7 @@ public: Enumeration_ImPlotStyleVar_() : das::Enumeration("ImPlotStyleVar") { external = true; cppName = "ImPlotStyleVar_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("LineWeight", "ImPlotStyleVar_LineWeight", int64_t(ImPlotStyleVar_::ImPlotStyleVar_LineWeight), das::LineInfo()); addIEx("Marker", "ImPlotStyleVar_Marker", int64_t(ImPlotStyleVar_::ImPlotStyleVar_Marker), das::LineInfo()); addIEx("MarkerSize", "ImPlotStyleVar_MarkerSize", int64_t(ImPlotStyleVar_::ImPlotStyleVar_MarkerSize), das::LineInfo()); @@ -453,7 +453,7 @@ public: Enumeration_ImPlotScale_() : das::Enumeration("ImPlotScale") { external = true; cppName = "ImPlotScale_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("Linear", "ImPlotScale_Linear", int64_t(ImPlotScale_::ImPlotScale_Linear), das::LineInfo()); addIEx("Time", "ImPlotScale_Time", int64_t(ImPlotScale_::ImPlotScale_Time), das::LineInfo()); addIEx("Log10", "ImPlotScale_Log10", int64_t(ImPlotScale_::ImPlotScale_Log10), das::LineInfo()); @@ -489,7 +489,7 @@ public: Enumeration_ImPlotColormap_() : das::Enumeration("ImPlotColormap") { external = true; cppName = "ImPlotColormap_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("Deep", "ImPlotColormap_Deep", int64_t(ImPlotColormap_::ImPlotColormap_Deep), das::LineInfo()); addIEx("Dark", "ImPlotColormap_Dark", int64_t(ImPlotColormap_::ImPlotColormap_Dark), das::LineInfo()); addIEx("Pastel", "ImPlotColormap_Pastel", int64_t(ImPlotColormap_::ImPlotColormap_Pastel), das::LineInfo()); @@ -515,7 +515,7 @@ public: Enumeration_ImPlotLocation_() : das::Enumeration("ImPlotLocation") { external = true; cppName = "ImPlotLocation_"; - baseType = (das::Type) das::ToBasicType::type; + baseType = (das::Type) das::ToBasicType::type; addIEx("Center", "ImPlotLocation_Center", int64_t(ImPlotLocation_::ImPlotLocation_Center), das::LineInfo()); addIEx("North", "ImPlotLocation_North", int64_t(ImPlotLocation_::ImPlotLocation_North), das::LineInfo()); addIEx("South", "ImPlotLocation_South", int64_t(ImPlotLocation_::ImPlotLocation_South), das::LineInfo()); diff --git a/src/dasIMPLOT.func_3.cpp b/src/dasIMPLOT.func_3.cpp index f633ed5..327e9d1 100644 --- a/src/dasIMPLOT.func_3.cpp +++ b/src/dasIMPLOT.func_3.cpp @@ -62,7 +62,7 @@ void Module_dasIMPLOT::initFunctions_3() { makeExtern< void (*)() , ImPlot::SetNextAxesToFit , SimNode_ExtFuncCall , implotTempFn>(lib,"SetNextAxesToFit","ImPlot::SetNextAxesToFit") ->addToModule(*this, SideEffects::worstDefault); // from implot.h:912:17 - makeExtern< void (*)(const char *,void *,const ImPlotPoint &,const ImPlotPoint &,const ImVec2 &,const ImVec2 &,const ImVec4 &,int) , ImPlot::PlotImage , SimNode_ExtFuncCall , implotTempFn>(lib,"PlotImage","ImPlot::PlotImage") + makeExtern< void (*)(const char *,ImTextureID,const ImPlotPoint &,const ImPlotPoint &,const ImVec2 &,const ImVec2 &,const ImVec4 &,int) , ImPlot::PlotImage , SimNode_ExtFuncCall , implotTempFn>(lib,"PlotImage","ImPlot::PlotImage") ->args({"label_id","user_texture_id","bounds_min","bounds_max","uv0","uv1","tint_col","flags"}) ->arg_type(7,makeType(lib)) ->arg_init(7,new ExprConstEnumeration(0,makeType(lib))) From 62cb22470b1f56d4c05b6d83af652a7f124d947d Mon Sep 17 00:00:00 2001 From: Churkin Aleksey Date: Wed, 24 Jun 2026 14:07:19 +0300 Subject: [PATCH 2/2] implot: patch vendored ImPlot v0.16 for Dear ImGui 1.92 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.92 dynamic-font rework + enum renames broke the vendored sources: - AddTextVertical: glyph data/size moved to ImFontBaked (g.FontBaked, baked->Size, baked->FindGlyph) — ImFont::FontSize/FindGlyph removed. - ShowStyleEditor: ImGuiColorEditFlags_AlphaPreview removed; remap the Opaque/Alpha radios to AlphaOpaque / default (alpha preview is now on by default in 1.92). Co-Authored-By: Claude Opus 4.8 --- implot/implot.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/implot/implot.cpp b/implot/implot.cpp index 773f340..35b6ec4 100644 --- a/implot/implot.cpp +++ b/implot/implot.cpp @@ -348,11 +348,11 @@ void AddTextVertical(ImDrawList *DrawList, ImVec2 pos, ImU32 col, const char *te if (!text_end) text_end = text_begin + strlen(text_begin); ImGuiContext& g = *GImGui; - ImFont* font = g.Font; + ImFontBaked* baked = g.FontBaked; // Align to be pixel perfect pos.x = IM_FLOOR(pos.x); pos.y = IM_FLOOR(pos.y); - const float scale = g.FontSize / font->FontSize; + const float scale = g.FontSize / baked->Size; const char* s = text_begin; int chars_exp = (int)(text_end - s); int chars_rnd = 0; @@ -369,7 +369,7 @@ void AddTextVertical(ImDrawList *DrawList, ImVec2 pos, ImU32 col, const char *te if (c == 0) // Malformed UTF-8? break; } - const ImFontGlyph * glyph = font->FindGlyph((ImWchar)c); + const ImFontGlyph * glyph = baked->FindGlyph((ImWchar)c); if (glyph == nullptr) { continue; } @@ -4913,8 +4913,8 @@ void ShowStyleEditor(ImPlotStyle* ref) { filter.Draw("Filter colors", ImGui::GetFontSize() * 16); static ImGuiColorEditFlags alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf; - if (ImGui::RadioButton("Opaque", alpha_flags == ImGuiColorEditFlags_None)) { alpha_flags = ImGuiColorEditFlags_None; } ImGui::SameLine(); - if (ImGui::RadioButton("Alpha", alpha_flags == ImGuiColorEditFlags_AlphaPreview)) { alpha_flags = ImGuiColorEditFlags_AlphaPreview; } ImGui::SameLine(); + if (ImGui::RadioButton("Opaque", alpha_flags == ImGuiColorEditFlags_AlphaOpaque)) { alpha_flags = ImGuiColorEditFlags_AlphaOpaque; } ImGui::SameLine(); + if (ImGui::RadioButton("Alpha", alpha_flags == ImGuiColorEditFlags_None)) { alpha_flags = ImGuiColorEditFlags_None; } ImGui::SameLine(); if (ImGui::RadioButton("Both", alpha_flags == ImGuiColorEditFlags_AlphaPreviewHalf)) { alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf; } ImGui::SameLine(); HelpMarker( "In the color list:\n"