MCPcopy Create free account
hub / github.com/arnaud-jamin/Cog / PushColormap

Function PushColormap

Plugins/Cog/Source/ThirdParty/ImPlot/implot.cpp:4514–4519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4512}
4513
4514void 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
4521void PushColormap(const char* name) {
4522 ImPlotContext& gp = *GImPlot;

Callers 7

Demo_BarStacksFunction · 0.85
Demo_PieChartsFunction · 0.85
Demo_HeatmapsFunction · 0.85
Demo_Histogram2DFunction · 0.85
Demo_TablesFunction · 0.85
Demo_OffsetAndStrideFunction · 0.85
Demo_CustomStylesFunction · 0.85

Calls 2

push_backMethod · 0.80
GetIndexMethod · 0.45

Tested by

no test coverage detected