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

Function PopColormap

implot3d.cpp:3201–3210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3199}
3200
3201void PopColormap(int count) {
3202 ImPlot3DContext& gp = *GImPlot3D;
3203 IM_ASSERT_USER_ERROR(count <= gp.ColormapModifiers.Size, "You can't pop more modifiers than have been pushed!");
3204 while (count > 0) {
3205 const ImPlot3DColormap& backup = gp.ColormapModifiers.back();
3206 gp.Style.Colormap = backup;
3207 gp.ColormapModifiers.pop_back();
3208 count--;
3209 }
3210}
3211
3212ImU32 NextColormapColorU32() {
3213 ImPlot3DContext& gp = *GImPlot3D;

Callers 3

DemoSurfacePlotsFunction · 0.85
DemoOffsetAndStrideFunction · 0.85
DemoCustomStylesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected