| 3075 | } |
| 3076 | |
| 3077 | void PushStyleVar(ImPlot3DStyleVar idx, float val) { |
| 3078 | ImPlot3DContext& gp = *GImPlot3D; |
| 3079 | const ImPlot3DStyleVarInfo* var_info = GetPlotStyleVarInfo(idx); |
| 3080 | if (var_info->Type == ImGuiDataType_Float && var_info->Count == 1) { |
| 3081 | float* pvar = (float*)var_info->GetVarPtr(&gp.Style); |
| 3082 | gp.StyleModifiers.push_back(ImGuiStyleMod((ImGuiStyleVar)idx, *pvar)); |
| 3083 | *pvar = val; |
| 3084 | return; |
| 3085 | } |
| 3086 | IM_ASSERT(0 && "Called PushStyleVar() float variant but variable is not a float!"); |
| 3087 | } |
| 3088 | |
| 3089 | void PushStyleVar(ImPlot3DStyleVar idx, int val) { |
| 3090 | ImPlot3DContext& gp = *GImPlot3D; |
no test coverage detected