mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
23 lines
568 B
C#
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));
|
|
}
|
|
}
|
|
}
|
|
}
|