| 3221 | ImVec4 NextColormapColor() { return ImGui::ColorConvertU32ToFloat4(NextColormapColorU32()); } |
| 3222 | |
| 3223 | int GetColormapSize(ImPlot3DColormap cmap) { |
| 3224 | ImPlot3DContext& gp = *GImPlot3D; |
| 3225 | cmap = cmap == IMPLOT3D_AUTO ? gp.Style.Colormap : cmap; |
| 3226 | IM_ASSERT_USER_ERROR(cmap >= 0 && cmap < gp.ColormapData.Count, "Invalid colormap index!"); |
| 3227 | return gp.ColormapData.GetKeyCount(cmap); |
| 3228 | } |
| 3229 | |
| 3230 | ImU32 GetColormapColorU32(int idx, ImPlot3DColormap cmap) { |
| 3231 | ImPlot3DContext& gp = *GImPlot3D; |
no test coverage detected