| 4512 | } |
| 4513 | |
| 4514 | void PushColormap(ImPlotColormap colormap) { |
| 4515 | ImPlotContext& gp = *GImPlot; |
| 4516 | IM_ASSERT_USER_ERROR(colormap >= 0 && colormap < gp.ColormapData.Count, "The colormap index is invalid!"); |
| 4517 | gp.ColormapModifiers.push_back(gp.Style.Colormap); |
| 4518 | gp.Style.Colormap = colormap; |
| 4519 | } |
| 4520 | |
| 4521 | void PushColormap(const char* name) { |
| 4522 | ImPlotContext& gp = *GImPlot; |
no test coverage detected