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

Function PopStyleColor

implot3d.cpp:3066–3075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3064}
3065
3066void PopStyleColor(int count) {
3067 ImPlot3DContext& gp = *GImPlot3D;
3068 IM_ASSERT_USER_ERROR(count <= gp.ColorModifiers.Size, "You can't pop more modifiers than have been pushed!");
3069 while (count > 0) {
3070 ImGuiColorMod& backup = gp.ColorModifiers.back();
3071 gp.Style.Colors[backup.Col] = backup.BackupValue;
3072 gp.ColorModifiers.pop_back();
3073 count--;
3074 }
3075}
3076
3077void PushStyleVar(ImPlot3DStyleVar idx, float val) {
3078 ImPlot3DContext& gp = *GImPlot3D;

Callers 4

ColormapSliderFunction · 0.85
ShowMetricsWindowMethod · 0.85
DemoMarkersAndTextFunction · 0.85
ColormapButtonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected