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

Function PushStyleColor

implot3d.cpp:3048–3055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3046}
3047
3048void PushStyleColor(ImPlot3DCol idx, ImU32 col) {
3049 ImPlot3DContext& gp = *GImPlot3D;
3050 ImGuiColorMod backup;
3051 backup.Col = (ImGuiCol)idx;
3052 backup.BackupValue = gp.Style.Colors[idx];
3053 gp.ColorModifiers.push_back(backup);
3054 gp.Style.Colors[idx] = ImGui::ColorConvertU32ToFloat4(col);
3055}
3056
3057void PushStyleColor(ImPlot3DCol idx, const ImVec4& col) {
3058 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