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

Class GetterConstColor

implot3d_items.cpp:1024–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1022//-----------------------------------------------------------------------------
1023
1024struct GetterConstColor {
1025 GetterConstColor(ImU32 col) : Col(col) {}
1026 IMPLOT3D_INLINE ImU32 operator()(int) const { return Col; }
1027 ImU32 Col;
1028};
1029
1030struct GetterIdxColor {
1031 GetterIdxColor(const ImU32* data, int count, float alpha = 1.0f) : Data(data), Count(count), Alpha(alpha) {}

Callers 7

RenderMarkersFunction · 0.85
RenderColoredMarkersFunction · 0.85
PlotLineExFunction · 0.85
PlotTriangleExFunction · 0.85
PlotQuadExFunction · 0.85
PlotSurfaceExFunction · 0.85
PlotMeshExFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected