mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
40
brutal.imgui/Brutal.ImPlot/Manual/PlotLine.manual.cs
Normal file
40
brutal.imgui/Brutal.ImPlot/Manual/PlotLine.manual.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
namespace Brutal.ImPlotApi;
|
||||
|
||||
public partial class ImPlot
|
||||
{
|
||||
public static void PlotLine(
|
||||
ImString labelId,
|
||||
ReadOnlySpan<float2> values,
|
||||
ImPlotLineFlags flags = default,
|
||||
int offset = 0
|
||||
)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
fixed (float2* valuesPtr = values)
|
||||
{
|
||||
var xs = (float*)valuesPtr;
|
||||
var ys = xs + 1;
|
||||
PlotLine(labelId, xs, ys, values.Length, flags, offset, sizeof(float2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void PlotLine(
|
||||
ImString labelId,
|
||||
ReadOnlySpan<double2> values,
|
||||
ImPlotLineFlags flags = default,
|
||||
int offset = 0
|
||||
)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
fixed (double2* valuesPtr = values)
|
||||
{
|
||||
var xs = (double*)valuesPtr;
|
||||
var ys = xs + 1;
|
||||
PlotLine(labelId, xs, ys, values.Length, flags, offset, sizeof(double2));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue