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.
References:
File last commit:
Show/Diff file:
Action:
ImGui.NET/Generated/ImFontAtlasCustomRect.gen.cs
45 lines | 2.1 KiB | text/x-csharp | CSharpLexer
45 lines | 2.1 KiB | text/x-csharp | CSharpLexer
r16 | using System; | |||
using System.Numerics; | ||||
using System.Runtime.CompilerServices; | ||||
using System.Text; | ||||
namespace ImGuiNET | ||||
{ | ||||
public unsafe partial struct ImFontAtlasCustomRect | ||||
{ | ||||
public ushort Width; | ||||
public ushort Height; | ||||
public ushort X; | ||||
public ushort Y; | ||||
public uint GlyphID; | ||||
public float GlyphAdvanceX; | ||||
public Vector2 GlyphOffset; | ||||
public ImFont* Font; | ||||
} | ||||
public unsafe partial struct ImFontAtlasCustomRectPtr | ||||
{ | ||||
public ImFontAtlasCustomRect* NativePtr { get; } | ||||
public ImFontAtlasCustomRectPtr(ImFontAtlasCustomRect* nativePtr) => NativePtr = nativePtr; | ||||
public ImFontAtlasCustomRectPtr(IntPtr nativePtr) => NativePtr = (ImFontAtlasCustomRect*)nativePtr; | ||||
public static implicit operator ImFontAtlasCustomRectPtr(ImFontAtlasCustomRect* nativePtr) => new ImFontAtlasCustomRectPtr(nativePtr); | ||||
public static implicit operator ImFontAtlasCustomRect* (ImFontAtlasCustomRectPtr wrappedPtr) => wrappedPtr.NativePtr; | ||||
public static implicit operator ImFontAtlasCustomRectPtr(IntPtr nativePtr) => new ImFontAtlasCustomRectPtr(nativePtr); | ||||
public ref ushort Width => ref Unsafe.AsRef<ushort>(&NativePtr->Width); | ||||
public ref ushort Height => ref Unsafe.AsRef<ushort>(&NativePtr->Height); | ||||
public ref ushort X => ref Unsafe.AsRef<ushort>(&NativePtr->X); | ||||
public ref ushort Y => ref Unsafe.AsRef<ushort>(&NativePtr->Y); | ||||
public ref uint GlyphID => ref Unsafe.AsRef<uint>(&NativePtr->GlyphID); | ||||
public ref float GlyphAdvanceX => ref Unsafe.AsRef<float>(&NativePtr->GlyphAdvanceX); | ||||
public ref Vector2 GlyphOffset => ref Unsafe.AsRef<Vector2>(&NativePtr->GlyphOffset); | ||||
public ImFontPtr Font => new ImFontPtr(NativePtr->Font); | ||||
public void Destroy() | ||||
{ | ||||
ImGuiNative.ImFontAtlasCustomRect_destroy((ImFontAtlasCustomRect*)(NativePtr)); | ||||
} | ||||
public bool IsPacked() | ||||
{ | ||||
byte ret = ImGuiNative.ImFontAtlasCustomRect_IsPacked((ImFontAtlasCustomRect*)(NativePtr)); | ||||
return ret != 0; | ||||
} | ||||
} | ||||
} | ||||