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

Function GetColormapSize

implot3d.cpp:3223–3228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3221ImVec4 NextColormapColor() { return ImGui::ColorConvertU32ToFloat4(NextColormapColorU32()); }
3222
3223int 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
3230ImU32 GetColormapColorU32(int idx, ImPlot3DColormap cmap) {
3231 ImPlot3DContext& gp = *GImPlot3D;

Callers 1

ShowStyleEditorFunction · 0.85

Calls 1

GetKeyCountMethod · 0.80

Tested by

no test coverage detected