brutal/Brutal.ImGui/Generated/PInvoke/GetAllocatorFunctions.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

41 lines
1.8 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
public partial class ImGui
{
public unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1167">imgui.h:1167</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4035">imgui.cpp:4035</see>
/// <br/>
/// <c>void GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Memory Allocators
/// - Those functions are not reliant on the current context.
/// - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions()
/// for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details.
/// </code>
/// <para>
/// This is provided to facilitate copying allocators from one static/DLL boundary to another (e.g.
/// retrieve default allocator of your executable address space)
/// </para>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void GetAllocatorFunctions(
nint* p_alloc_func,
nint* p_free_func,
void** p_user_data
);
}
}
}