Show More
Commit Description:
Add timers for Simulation and various engines...
Commit Description:
Add timers for Simulation and various engines Starting to add additional timers for different stages of the process of updating in order to get more insight into what is slowing it down. The update takes 9ms, which is much longer than it used to. Engine-specific timers are coming later.
File last commit:
Show/Diff file:
Action:
ImPlot.NET/Generated/ImPlotRange.gen.cs
39 lines | 1.4 KiB | text/x-csharp | CSharpLexer
Include implot.
r505 using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using ImGuiNET;
namespace ImPlotNET
{
public unsafe partial struct ImPlotRange
{
public double Min;
public double Max;
}
public unsafe partial struct ImPlotRangePtr
{
public ImPlotRange* NativePtr { get; }
public ImPlotRangePtr(ImPlotRange* nativePtr) => NativePtr = nativePtr;
public ImPlotRangePtr(IntPtr nativePtr) => NativePtr = (ImPlotRange*)nativePtr;
public static implicit operator ImPlotRangePtr(ImPlotRange* nativePtr) => new ImPlotRangePtr(nativePtr);
public static implicit operator ImPlotRange* (ImPlotRangePtr wrappedPtr) => wrappedPtr.NativePtr;
public static implicit operator ImPlotRangePtr(IntPtr nativePtr) => new ImPlotRangePtr(nativePtr);
public ref double Min => ref Unsafe.AsRef<double>(&NativePtr->Min);
public ref double Max => ref Unsafe.AsRef<double>(&NativePtr->Max);
public bool Contains(double value)
{
byte ret = ImPlotNative.ImPlotRange_Contains((ImPlotRange*)(NativePtr), value);
return ret != 0;
}
public void Destroy()
{
ImPlotNative.ImPlotRange_destroy((ImPlotRange*)(NativePtr));
}
public double Size()
{
double ret = ImPlotNative.ImPlotRange_Size((ImPlotRange*)(NativePtr));
return ret;
}
}
}