mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 13:38:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
5 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,265 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.FreeType
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L29">imgui_freetype.h:29</see>
|
||||
/// <br/><c>enum ImGuiFreeTypeLoaderFlags_</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hinting greatly impacts visuals (and glyph sizes).
|
||||
/// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter.
|
||||
/// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h
|
||||
/// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way.
|
||||
/// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer.
|
||||
/// You can set those flags globally in ImFontAtlas::FontLoaderFlags
|
||||
/// You can set those flags on a per font basis in ImFontConfig::FontLoaderFlags
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[Flags]
|
||||
public enum ImGuiFreeTypeLoaderFlags : int
|
||||
{
|
||||
/// No flags set.
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Disable hinting. This generally generates 'blurrier' bitmap glyphs when the glyph are rendered in any of
|
||||
/// the anti-aliased modes.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L31">imgui_freetype.h:31</see>
|
||||
/// <br/><c>ImGuiFreeTypeLoaderFlags_NoHinting = 1 << 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hinting greatly impacts visuals (and glyph sizes).
|
||||
/// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter.
|
||||
/// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h
|
||||
/// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way.
|
||||
/// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer.
|
||||
/// You can set those flags globally in ImFontAtlas::FontLoaderFlags
|
||||
/// You can set those flags on a per font basis in ImFontConfig::FontLoaderFlags
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
NoHinting = 1 << 0,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Disable auto-hinter.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L32">imgui_freetype.h:32</see>
|
||||
/// <br/><c>ImGuiFreeTypeLoaderFlags_NoAutoHint = 1 << 1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hinting greatly impacts visuals (and glyph sizes).
|
||||
/// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter.
|
||||
/// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h
|
||||
/// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way.
|
||||
/// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer.
|
||||
/// You can set those flags globally in ImFontAtlas::FontLoaderFlags
|
||||
/// You can set those flags on a per font basis in ImFontConfig::FontLoaderFlags
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
NoAutoHint = 1 << 1,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Indicates that the auto-hinter is preferred over the font's native hinter.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L33">imgui_freetype.h:33</see>
|
||||
/// <br/><c>ImGuiFreeTypeLoaderFlags_ForceAutoHint = 1 << 2</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hinting greatly impacts visuals (and glyph sizes).
|
||||
/// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter.
|
||||
/// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h
|
||||
/// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way.
|
||||
/// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer.
|
||||
/// You can set those flags globally in ImFontAtlas::FontLoaderFlags
|
||||
/// You can set those flags on a per font basis in ImFontConfig::FontLoaderFlags
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
ForceAutoHint = 1 << 2,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A lighter hinting algorithm for gray-level modes. Many generated glyphs are fuzzier but better resemble
|
||||
/// their original shape. This is achieved by snapping glyphs to the pixel grid only vertically (Y-axis), as
|
||||
/// is done by Microsoft's ClearType and Adobe's proprietary font renderer. This preserves inter-glyph
|
||||
/// spacing in horizontal text.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L34">imgui_freetype.h:34</see>
|
||||
/// <br/><c>ImGuiFreeTypeLoaderFlags_LightHinting = 1 << 3</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hinting greatly impacts visuals (and glyph sizes).
|
||||
/// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter.
|
||||
/// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h
|
||||
/// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way.
|
||||
/// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer.
|
||||
/// You can set those flags globally in ImFontAtlas::FontLoaderFlags
|
||||
/// You can set those flags on a per font basis in ImFontConfig::FontLoaderFlags
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
LightHinting = 1 << 3,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Strong hinting algorithm that should only be used for monochrome output.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L35">imgui_freetype.h:35</see>
|
||||
/// <br/><c>ImGuiFreeTypeLoaderFlags_MonoHinting = 1 << 4</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hinting greatly impacts visuals (and glyph sizes).
|
||||
/// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter.
|
||||
/// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h
|
||||
/// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way.
|
||||
/// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer.
|
||||
/// You can set those flags globally in ImFontAtlas::FontLoaderFlags
|
||||
/// You can set those flags on a per font basis in ImFontConfig::FontLoaderFlags
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
MonoHinting = 1 << 4,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Styling: Should we artificially embolden the font?
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L36">imgui_freetype.h:36</see>
|
||||
/// <br/><c>ImGuiFreeTypeLoaderFlags_Bold = 1 << 5</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hinting greatly impacts visuals (and glyph sizes).
|
||||
/// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter.
|
||||
/// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h
|
||||
/// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way.
|
||||
/// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer.
|
||||
/// You can set those flags globally in ImFontAtlas::FontLoaderFlags
|
||||
/// You can set those flags on a per font basis in ImFontConfig::FontLoaderFlags
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
Bold = 1 << 5,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Styling: Should we slant the font, emulating italic style?
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L37">imgui_freetype.h:37</see>
|
||||
/// <br/><c>ImGuiFreeTypeLoaderFlags_Oblique = 1 << 6</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hinting greatly impacts visuals (and glyph sizes).
|
||||
/// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter.
|
||||
/// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h
|
||||
/// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way.
|
||||
/// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer.
|
||||
/// You can set those flags globally in ImFontAtlas::FontLoaderFlags
|
||||
/// You can set those flags on a per font basis in ImFontConfig::FontLoaderFlags
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
Oblique = 1 << 6,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Disable anti-aliasing. Combine this with MonoHinting for best results!
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L38">imgui_freetype.h:38</see>
|
||||
/// <br/><c>ImGuiFreeTypeLoaderFlags_Monochrome = 1 << 7</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hinting greatly impacts visuals (and glyph sizes).
|
||||
/// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter.
|
||||
/// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h
|
||||
/// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way.
|
||||
/// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer.
|
||||
/// You can set those flags globally in ImFontAtlas::FontLoaderFlags
|
||||
/// You can set those flags on a per font basis in ImFontConfig::FontLoaderFlags
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
Monochrome = 1 << 7,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Enable FreeType color-layered glyphs
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L39">imgui_freetype.h:39</see>
|
||||
/// <br/><c>ImGuiFreeTypeLoaderFlags_LoadColor = 1 << 8</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hinting greatly impacts visuals (and glyph sizes).
|
||||
/// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter.
|
||||
/// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h
|
||||
/// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way.
|
||||
/// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer.
|
||||
/// You can set those flags globally in ImFontAtlas::FontLoaderFlags
|
||||
/// You can set those flags on a per font basis in ImFontConfig::FontLoaderFlags
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
LoadColor = 1 << 8,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Enable FreeType bitmap glyphs
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L40">imgui_freetype.h:40</see>
|
||||
/// <br/><c>ImGuiFreeTypeLoaderFlags_Bitmap = 1 << 9</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hinting greatly impacts visuals (and glyph sizes).
|
||||
/// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter.
|
||||
/// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h
|
||||
/// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way.
|
||||
/// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer.
|
||||
/// You can set those flags globally in ImFontAtlas::FontLoaderFlags
|
||||
/// You can set those flags on a per font basis in ImFontConfig::FontLoaderFlags
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
Bitmap = 1 << 9,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.FreeType
|
||||
{
|
||||
public partial class ImGuiFreeType
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L67">imgui_freetype.h:67</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L21595">imgui.cpp:21595</see>
|
||||
/// <br/><c>const ImFontLoader* GetFontLoader()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// This is automatically assigned when using '#define IMGUI_ENABLE_FREETYPE'.
|
||||
/// If you need to dynamically select between multiple builders:
|
||||
/// - you can manually assign this builder with 'atlas->SetFontLoader(ImGuiFreeType::GetFontLoader())'
|
||||
/// - prefer deep-copying this into your own ImFontLoader instance if you use hot-reloading that messes up static data.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontLoaderPtr GetFontLoader() => PInvoke.GetFontLoader();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L71">imgui_freetype.h:71</see>
|
||||
/// <br/>
|
||||
/// <c>void SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data = nullptr)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Override allocators. By default ImGuiFreeType will use IM_ALLOC()/IM_FREE()
|
||||
/// However, as FreeType does lots of allocations we provide a way for the user to redirect it to a separate memory heap if desired.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void SetAllocatorFunctions(
|
||||
ImGuiMemAllocFunc allocFunc,
|
||||
ImGuiMemFreeFunc freeFunc,
|
||||
Ptr userData = default
|
||||
) =>
|
||||
PInvoke.SetAllocatorFunctions(
|
||||
Marshal.GetFunctionPointerForDelegate(allocFunc),
|
||||
Marshal.GetFunctionPointerForDelegate(freeFunc),
|
||||
userData
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L71">imgui_freetype.h:71</see>
|
||||
/// <br/>
|
||||
/// <c>void SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data = nullptr)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Override allocators. By default ImGuiFreeType will use IM_ALLOC()/IM_FREE()
|
||||
/// However, as FreeType does lots of allocations we provide a way for the user to redirect it to a separate memory heap if desired.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void SetAllocatorFunctions(
|
||||
delegate* unmanaged[Cdecl]<nuint, void*, void*> allocFunc,
|
||||
delegate* unmanaged[Cdecl]<void*, void*, void> freeFunc,
|
||||
Ptr userData = default
|
||||
) => PInvoke.SetAllocatorFunctions((nint)allocFunc, (nint)freeFunc, userData);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L74">imgui_freetype.h:74</see>
|
||||
/// <br/><c>bool DebugEditFontLoaderFlags(ImGuiFreeTypeLoaderFlags* p_font_loader_flags)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Display UI to edit ImFontAtlas::FontLoaderFlags (shared) or ImFontConfig::FontLoaderFlags (single
|
||||
/// source)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe bool DebugEditFontLoaderFlags(ref ImGuiFreeTypeLoaderFlags pFontLoaderFlags)
|
||||
{
|
||||
fixed (ImGuiFreeTypeLoaderFlags* pFontLoaderFlags_fixed = &pFontLoaderFlags)
|
||||
{
|
||||
return PInvoke.DebugEditFontLoaderFlags(pFontLoaderFlags_fixed);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.FreeType
|
||||
{
|
||||
public partial class ImGuiFreeType
|
||||
{
|
||||
public unsafe partial class PInvoke
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L74">imgui_freetype.h:74</see>
|
||||
/// <br/><c>bool DebugEditFontLoaderFlags(ImGuiFreeTypeLoaderFlags* p_font_loader_flags)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Display UI to edit ImFontAtlas::FontLoaderFlags (shared) or ImFontConfig::FontLoaderFlags (single
|
||||
/// source)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("imgui_freetype")]
|
||||
public static unsafe partial Bool8 DebugEditFontLoaderFlags(ImGuiFreeTypeLoaderFlags* p_font_loader_flags);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.FreeType
|
||||
{
|
||||
public partial class ImGuiFreeType
|
||||
{
|
||||
public unsafe partial class PInvoke
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L67">imgui_freetype.h:67</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L21595">imgui.cpp:21595</see>
|
||||
/// <br/><c>const ImFontLoader* GetFontLoader()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// This is automatically assigned when using '#define IMGUI_ENABLE_FREETYPE'.
|
||||
/// If you need to dynamically select between multiple builders:
|
||||
/// - you can manually assign this builder with 'atlas->SetFontLoader(ImGuiFreeType::GetFontLoader())'
|
||||
/// - prefer deep-copying this into your own ImFontLoader instance if you use hot-reloading that messes up static data.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("imgui_freetype")]
|
||||
public static unsafe partial ImFontLoader* GetFontLoader();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.FreeType
|
||||
{
|
||||
public partial class ImGuiFreeType
|
||||
{
|
||||
public unsafe partial class PInvoke
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L71">imgui_freetype.h:71</see>
|
||||
/// <br/>
|
||||
/// <c>void SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data = nullptr)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Override allocators. By default ImGuiFreeType will use IM_ALLOC()/IM_FREE()
|
||||
/// However, as FreeType does lots of allocations we provide a way for the user to redirect it to a separate memory heap if desired.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("imgui_freetype")]
|
||||
public static unsafe partial void SetAllocatorFunctions(nint alloc_func, nint free_func, void* user_data);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue