Closed eladm-ultrawis closed 11 months ago
Hi -- your issue is that the signature of BeginItem
changed. The second parameter is now ImPlotItemFlags. ImPlotCol_Fill needs to be passed as the third parameter if you intend to use it.
IMPLOT_API bool BeginItem(const char* label_id, ImPlotItemFlags flags=0, ImPlotCol recolor_from=IMPLOT_AUTO);
Sorry about this, but we don't make any guarantees about implot_internal.h
so beware when using these functions!
I am using ImPlot custom rendering quite a lot. when using the built-in plot functions (such as PlotLine, PlotImage) I get a legend with the item label.
However, when using BeginItem / EndItem I never get a legend.
Here is an example of a custom function that draws a dashed line:
I never get a legend no matter what I put in BeginItem first parameter. Is this a bug? If not what am I doing wrong?