Make manual overloads for string-returning functinos

This commit is contained in:
Soreepeong 2025-08-04 19:29:18 +09:00
parent 334a02e69a
commit 4b1857e40d
12 changed files with 239 additions and 462 deletions

View file

@ -19,14 +19,14 @@ public static unsafe partial class ImGuiNative
}
}
[LibraryImport($"{LibraryName}.dll", EntryPoint = "ImDrawList_AddCallback")]
[LibraryImport(LibraryName, EntryPoint = "ImDrawList_AddCallback")]
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
public static partial void AddCallback(
ImDrawList* self,
delegate*<ImDrawList*, ImDrawCmd*, void> callback,
void* callbackData = null);
[LibraryImport($"{LibraryName}.dll", EntryPoint = "igInputTextEx")]
[LibraryImport(LibraryName, EntryPoint = "igInputTextEx")]
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
public static partial int InputTextEx(
byte* label,