Show More
Commit Description:
Fix issue with simulation....
Commit Description:
Fix issue with simulation. Previously, if there was more than one tick being advanced at once, it would overshoot how many ticks it covered. So if it was covering 5 ticks and each tick happens every 100 units, rather than recording that it had simulated through t= 500, it would increase the cumulative time for each tick, recording that it had simulated through t=2500. Add error message, too.
File last commit:
Show/Diff file:
Action:
ImPlot.NET/Generated/ImPlotPoint.gen.cs
29 lines | 1.1 KiB | text/x-csharp | CSharpLexer
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using ImGuiNET;
namespace ImPlotNET
{
public unsafe partial struct ImPlotPoint
{
public double x;
public double y;
}
public unsafe partial struct ImPlotPointPtr
{
public ImPlotPoint* NativePtr { get; }
public ImPlotPointPtr(ImPlotPoint* nativePtr) => NativePtr = nativePtr;
public ImPlotPointPtr(IntPtr nativePtr) => NativePtr = (ImPlotPoint*)nativePtr;
public static implicit operator ImPlotPointPtr(ImPlotPoint* nativePtr) => new ImPlotPointPtr(nativePtr);
public static implicit operator ImPlotPoint* (ImPlotPointPtr wrappedPtr) => wrappedPtr.NativePtr;
public static implicit operator ImPlotPointPtr(IntPtr nativePtr) => new ImPlotPointPtr(nativePtr);
public ref double x => ref Unsafe.AsRef<double>(&NativePtr->x);
public ref double y => ref Unsafe.AsRef<double>(&NativePtr->y);
public void Destroy()
{
ImPlotNative.ImPlotPoint_destroy((ImPlotPoint*)(NativePtr));
}
}
}