mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 22:18:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
23
brutal.imgui/Brutal.ImPlot/Manual/PlotShaded.manual.cs
Normal file
23
brutal.imgui/Brutal.ImPlot/Manual/PlotShaded.manual.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue