mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
41 lines
2 KiB
C#
41 lines
2 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi.Internal
|
|
{
|
|
public unsafe partial class PInvoke
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3366">imgui_internal.h:3366</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9420">imgui.cpp:9420</see>
|
|
/// <br/>
|
|
/// <c>void SetCurrentFont(ImFont* font, float font_size_before_scaling, float font_size_after_scaling)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// <code>
|
|
/// Use ImDrawList::_SetTexture(), making our shared g.FontStack[] authoritative against window-local ImDrawList.
|
|
/// - Whereas ImDrawList::PushTexture()/PopTexture() is not to be used across Begin() calls.
|
|
/// - Note that we don't propagate current texture id when e.g. Begin()-ing into a new window, we never really did...
|
|
/// - Some code paths never really fully worked with multiple atlas textures.
|
|
/// - The right-ish solution may be to remove _SetTexture() and make AddText/RenderText lazily call PushTexture()/PopTexture()
|
|
/// the same way AddImage() does, but then all other primitives would also need to? I don't think we should tackle this problem
|
|
/// because we have a concrete need and a test bed for multiple atlas textures.
|
|
/// FIXME-NEWATLAS-V2: perhaps we can now leverage ImFontAtlasUpdateDrawListsTextures() ?
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void SetCurrentFont_internal(
|
|
ImFont* font,
|
|
float font_size_before_scaling,
|
|
float font_size_after_scaling
|
|
);
|
|
}
|
|
}
|