MCPcopy Create free account
hub / github.com/brenocq/implot3d / PushColormap

Function PushColormap

implot3d.cpp:3187–3192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3185}
3186
3187void PushColormap(ImPlot3DColormap colormap) {
3188 ImPlot3DContext& gp = *GImPlot3D;
3189 IM_ASSERT_USER_ERROR(colormap >= 0 && colormap < gp.ColormapData.Count, "The colormap index is invalid!");
3190 gp.ColormapModifiers.push_back(gp.Style.Colormap);
3191 gp.Style.Colormap = colormap;
3192}
3193
3194void PushColormap(const char* name) {
3195 ImPlot3DContext& gp = *GImPlot3D;

Callers 3

DemoSurfacePlotsFunction · 0.85
DemoOffsetAndStrideFunction · 0.85
DemoCustomStylesFunction · 0.85

Calls 1

GetIndexMethod · 0.80

Tested by

no test coverage detected