| 4597 | } |
| 4598 | |
| 4599 | void PushColormap(ImPlotColormap colormap) { |
| 4600 | ImPlotContext& gp = *GImPlot; |
| 4601 | IM_ASSERT_USER_ERROR(colormap >= 0 && colormap < gp.ColormapData.Count, "The colormap index is invalid!"); |
| 4602 | gp.ColormapModifiers.push_back(gp.Style.Colormap); |
| 4603 | gp.Style.Colormap = colormap; |
| 4604 | } |
| 4605 | |
| 4606 | void PushColormap(const char* name) { |
| 4607 | ImPlotContext& gp = *GImPlot; |
no test coverage detected