brutal/Brutal.ImPlot/Manual/PlotShaded.manual.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

23 lines
568 B
C#

namespace Brutal.ImPlotApi;
public partial class ImPlot
{
public static void PlotShaded(
ImString labelId,
ReadOnlySpan<float2> values,
double yref = 0d,
ImPlotShadedFlags flags = default,
int offset = 0
)
{
unsafe
{
fixed (float2* valuesPtr = values)
{
var xsPtr = (float*)valuesPtr;
var ysPtr = xsPtr + 1;
PlotShaded(labelId, xsPtr, ysPtr, values.Length, yref, flags, offset, sizeof(float2));
}
}
}
}